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 |
|
HTTP method |
|
Scopes |
|
Content type |
|
Request
Headers
Field | Type | Description | Required | Example |
|
| The client access token of your mini app, prefixed with | Yes |
|
|
| The media type of the request body. | Yes |
|
Request body
Field | Type | Description | Required | Example |
|
| The ID of the mini drama. | Yes |
|
|
| The version to set as the online version. The version must have passed review. | Yes |
|
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 |
| The online version. Also returned in a failed response when videos in the version have been deleted from BytePlus. | |
| The error object. |
OnlineVersionData
Field | Type | Description | Example |
|
| The ID of the mini drama. |
|
|
| The online version number. |
|
|
| The IDs of videos in the version that have been deleted from BytePlus. Returned only when the request fails for that reason. |
|
ErrorStruct
Field | Type | Description |
|
| The error code. Omitted on success. |
|
| A human-readable description of the error. |
|
| 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 |
| The service is temporarily unavailable. | Retry later. If the error persists, contact support with the |
| The request is invalid. | Provide a valid |
| The version references videos that are missing from BytePlus. | Replace or upload the missing videos. |
| The mini drama wasn't found. | Verify the |
| The version wasn't found. | Verify the |
| The version hasn't passed review. | Wait for the version to be approved before you set it online. |
| Your client key doesn't own this mini drama. | Use the owner's client key and retry. |