API
cloud.games.avatars.prepareCustomAvatarUpload
API
cloud.games.avatars.prepareCustomAvatarUpload
Prepares a custom avatar image upload.
Complete upload with rivet.api.cloud#CompleteCustomAvatarUpload
.
POST https://cloud.api.rivet.gg/v1/games/{game_id}/prepare
curl -X POST -d '@body.json' 'https://cloud.api.rivet.gg/v1/games/{game_id}/prepare'
Authorizations
Authorization[header]required
string
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
game_idrequired
string
Body
pathrequired
string
The path/filename of the custom avatar.
mime
string
The MIME type of the custom avatar.
content_length
integer
Unsigned 64 bit integer.
Response
upload_idrequired
string
presigned_requestrequired
object
A presigned request used to upload files. Upload your file to the given URL via a PUT request.
curl -X POST -d '@body.json' 'https://cloud.api.rivet.gg/v1/games/{game_id}/prepare'