跳到主要内容

Upload cover in the sticker pack

POST 

/bv/chatroom/v1/stickerpacks/:id:cover-upload

Uploads a cover image into the sticker pack. Authorization requires either the chatroom token with admin role or the sticker token.

Request

Path Parameters

    id stringrequired

    Required. The unique id of the sticker pack.

Header Parameters

    authorization string

    This API should be invoked with the chatroom token or sticker token.

Body

required
    sticker_pack objectrequired

    Required.

    cover_image objectrequired

    Required.

    name stringrequired

    Required. The name of the image.

    size_in_bytes int64required

    Required. Immutable. The size of image in bytes.

Responses

A successful response.

Schema
    sticker_pack object
    id string

    Output only. The uuid of the sticker pack.

    name stringrequired

    Required. The name of the sticker pack.

    default boolean

    Output only. Indicates it'll be or it was a default sticker pack that can not be modified or deleted.

    count int32

    Output only. Indicates the total count of the stickers in the sticker pack.

    cover_image object

    Output only. The cover image of the sticker pack.

    id string

    Output only. The unique id of the image.

    name string

    Output only. The name of the image.

    size_in_bytes int64

    Output only. The size of image in bytes.

    format string

    Possible values: [IMAGE_FORMAT_PNG, IMAGE_FORMAT_JPEG, IMAGE_FORMAT_GIF]

    Output only. The format of the image.

    thumbnails object[]

    Output only.

  • Array [
  • uri string

    Output only. Indicates the URI of the image that the browser could be rendered.

    width int32

    Output only. Indicates the width of the image.

    height int32

    Output only. Indicates the height of the image.

  • ]
  • created_at date-time

    Output only. Indicates the time that the sticker pack created.

    updated_at date-time

    Output only. Indicates the time that the sticker pack last updated.

    upload_data object
    cloud_provider string

    Possible values: [CLOUD_PROVIDER_AWS, CLOUD_PROVIDER_AZURE]

    The cloud provider of the upload file.

    presigned_url string

    The presigned URL allows the user to directly upload a file to the file resource.

Loading...