メインコンテンツまでスキップ

Create redeem codes

POST 

/bv/cms/v1/redeem-codes

Creates multiple redeem codes that can be used to access a live or VOD.


  • Returns a 400/BadRequest error if the request body is invalid.
  • Returns a 404/NotFound error if the requested resource is not found.

Request

Body

required
    id stringrequired

    Required. The unique id of live or VOD.

    type stringrequired

    Possible values: [RESOURCE_TYPE_LIVE, RESOURCE_TYPE_VOD, RESOURCE_TYPE_LIVE_EVENT, RESOURCE_TYPE_LIVE_EVENT_RECORDING, RESOURCE_TYPE_VOD_EVENT, RESOURCE_TYPE_AUDIO_EVENT, RESOURCE_TYPE_VOD_ENCODING]

    Required. Indicates the resource type for the redeem codes.

    amount int32required

    Required. Specify the amount of the redeem codes to be created. Min: 1. Max: 1000. The total amount of the redeem codes (including the existing ones) must not exceed 1000.

Responses

A successful response.

Schema
    redeem_codes object[]
  • Array [
  • code string

    Output only. The redeem code.

  • ]
Loading...