TikTok for Developers

Developer Docs

Last updated November 24, 2026

Set the Online Version of a Mini Drama

Sets an approved version as the online version of a mini drama. The online version is the version viewers play after you list the mini drama.

Endpoint

HTTP URL

https://open.tiktokapis.com/v2/sg/shortdrama/album/online_version/

HTTP method

POST

Scopes

None

Content type

application/json

Request

Headers

Field

Type

Description

Required

Example

Authorization

string

The client access token of your mini app, prefixed with Bearer.

Yes

Bearer clt.example12345Example12345Example

Content-Type

string

The media type of the request body.

Yes

application/json

Request body

Field

Type

Description

Required

Example

album_id

int64

The ID of the mini drama.

Yes

7300000000000000001

version

int32

The version to set as the online version. The version must have passed review.

Yes

2

Request example

curl --location 'https://open.tiktokapis.com/v2/sg/shortdrama/album/online_version/' \
--header 'Authorization: Bearer CLIENT_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "album_id": 7300000000000000001,
  "version": 2
}'

Replace CLIENT_ACCESS_TOKEN with your mini app's client access token.

Response

Response body

Field

Type

Description

data

OnlineVersionData

The online version. Also returned in a failed response when videos in the version have been deleted from BytePlus.

error

ErrorStruct

The error object.

OnlineVersionData

Field

Type

Description

Example

album_id

int64

The ID of the mini drama.

7300000000000000001

online_version

int32

The online version number.

2

missing_vid_list

list<string>

The IDs of videos in the version that have been deleted from BytePlus. Returned only when the request fails for that reason.

["v0d000example0000000000000000000"]

ErrorStruct

Field

Type

Description

code

string

The error code. Omitted on success.

message

string

A human-readable description of the error.

log_id

string

The unique identifier for the request. Include this value when contacting support.

Response example

{
  "data": {
    "album_id": 7300000000000000001,
    "online_version": 2
  },
  "error": {
    "log_id": "202508010000000000000000000000000"
  }
}

Response example: Videos deleted from BytePlus

{
  "data": {
    "album_id": 7300000000000000001,
    "online_version": 2,
    "missing_vid_list": ["v0d000example0000000000000000000"]
  },
  "error": {
    "code": "22103",
    "message": "Album version references missing BytePlus videos",
    "log_id": "202508010000000000000000000000000"
  }
}

Error codes

Error code

Description

Resolution

5001

The service is temporarily unavailable.

Retry later. If the error persists, contact support with the log_id.

2121006

The request is invalid.

Provide a valid client_key, album_id, and version.

2121103

The version references videos that are missing from BytePlus.

Replace or upload the missing videos.

2121105

The mini drama wasn't found.

Verify the album_id.

2121106

The version wasn't found.

Verify the version.

2121701

The version hasn't passed review.

Wait for the version to be approved before you set it online.

2123205

Your client key doesn't own this mini drama.

Use the owner's client key and retry.

TikTok for Developers