List or Delist a Mini Drama
Lists or delists a mini drama. A listed mini drama's online version is playable. Before you list a mini drama, set its online version.
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 listing status to set. One of: | Yes |
|
Request example
curl --location 'https://open.tiktokapis.com/v2/sg/shortdrama/album/status/' \
--header 'Authorization: Bearer CLIENT_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"album_id": 7300000000000000001,
"status": 1
}'Replace the following:
CLIENT_ACCESS_TOKEN: your mini app's client access token.CLIENT_KEY: your mini app's client key.
Response
Response body
Field | Type | Description |
| The listing status. Also returned in a failed response when videos in the online version have been deleted from BytePlus. | |
| The error object. |
AlbumStatusData
Field | Type | Description | Example |
|
| The ID of the mini drama. |
|
|
| The listing status. One of: |
|
|
| The IDs of videos 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,
"status": 1
},
"error": {
"log_id": "202508010000000000000000000000000"
}
}Response example: Videos deleted from BytePlus
{
"data": {
"album_id": 7300000000000000001,
"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 online version references videos that are missing from BytePlus. | Replace or upload the missing videos. |
| The mini drama wasn't found. | Verify the |
| The mini drama has no online version. | Set an online version, then retry. |
| The mini drama is already in the requested status. | Check the current status and retry. |
| Your client key doesn't own this mini drama. | Use the owner's client key and retry. |