Skip to main content

PrepareCustomAvatarUpload

Prepares a custom avatar image upload.

Complete upload with rivet.api.cloud#CompleteCustomAvatarUpload.

Path Parameters
  • game_id string required

    Possible values: Value must match regular expression ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

    A universally unique identifier.

Request Body required
  • path string required

    The path/filename of the custom avatar.

  • mime string

    The MIME type of the custom avatar.

  • content_length int64 required

    Unsigned 64 bit integer.

Responses

PrepareCustomAvatarUpload 200 response

Schema
  • upload_id string required

    Possible values: Value must match regular expression ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

    A universally unique identifier.

  • presigned_request object required

    A presigned request used to upload files. Upload your file to the given URL via a PUT request.

    • path string required

      The name of the file to upload. This is the same as the one given in the upload prepare file.

    • url string required

      The URL of the presigned request for which to upload your file to.