API
identity.prepareAvatarUpload
POST https://identity.api.rivet.gg/v1/identities/avatar-upload/prepare
curl -X POST -d '@body.json' 'https://identity.api.rivet.gg/v1/identities/avatar-upload/prepare'

Authorizations

Authorization[header]required
string

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

pathrequired
string
mimerequired
string

See https://www.iana.org/assignments/media-types/media-types.xhtml

content_lengthrequired
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.