API
group.prepareAvatarUpload
API
group.prepareAvatarUpload
Prepares an avatar image upload.
Complete upload with rivet.api.group#CompleteAvatarUpload
.
POST https://group.api.rivet.gg/v1/groups/avatar-upload/prepare
curl -X POST -d '@body.json' 'https://group.api.rivet.gg/v1/groups/avatar-upload/prepare'
Authorizations
Authorization[header]required
string
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
content_lengthrequired
integer
Unsigned 64 bit integer.
mime
string
The MIME type of the group avatar.
pathrequired
string
The path/filename of the group avatar.
Response
presigned_requestrequired
object
A presigned request used to upload files. Upload your file to the given URL via a PUT request.
upload_idrequired
string
curl -X POST -d '@body.json' 'https://group.api.rivet.gg/v1/groups/avatar-upload/prepare'