Update a Mini Drama
Creates or updates the draft of a mini drama, including its metadata and episodes. Each call creates a new version and leaves earlier versions unchanged. A version can contain up to 400 episodes.
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 client key of your mini app. | Yes |
|
|
| The ID of the mini drama. | Yes |
|
|
| The operation to perform. Pass | No |
|
|
| The version you expect to edit. If it isn't the latest version, the request fails, which protects against concurrent edits. | No |
|
|
| OpenAPI does not use this field. The production status of the mini drama is written in | No |
|
| Required the first time you upload the mini drama's metadata. The mini drama's metadata. | Conditional | See AlbumInfoInput. | |
| The episodes in this version. Required when | Conditional | See EpisodeInfoInput. |
AlbumInfoInput
Field | Type | Description | Required | Example |
|
| The original language of the mini drama, as a language code. | Yes |
|
|
| The title of the mini drama. | Yes |
|
|
| The total number of episodes in the mini drama. | Yes |
|
|
| The cover image IDs returned by Upload a Mini Drama Image. Minimum: | Yes |
|
|
| The release year. | Yes |
|
|
| The production status of the mini drama. One of: | Yes |
|
|
| The description of the mini drama. | Yes |
|
|
| The production type. One of: | Yes |
|
|
| The IDs of the mini drama's tags. The API only validates 1 to 3 tags, and each must be greater than 0; it does not reject values outside the list based on the tag list below. | Yes |
|
Tag list
ID | Type |
1 | Divine Healer |
2 | Live-in Son-in-Law |
3 | Treasure Appraisal |
4 | God of War |
5 | Entertainment / Celebrities |
6 | Miracle Doctor |
7 | Rebirth |
8 | Workplace |
9 | Comeback |
10 | Revenge |
11 | Youth |
12 | Officialdom |
13 | Family Relationships |
14 | Rural Life |
15 | Positive Energy |
16 | Growth |
17 | Ethics |
18 | Urban Romance |
19 | Social Topics |
20 | Paranormal |
21 | Mystery & Detective |
22 | Angsty Romance |
23 | Sweet Romance |
24 | Military Romance |
25 | Period Setting |
26 | Adorable Kids |
27 | Scheming |
28 | CEO |
29 | Palace and Household Intrigue |
30 | Time Travel / Transmigration |
31 | Farming and Business |
33 | Folklore |
34 | Costume Drama |
35 | Time-Travel War Stories |
36 | Modern Military |
37 | Fantasy |
38 | Science Fiction |
39 | Xuanhuan |
40 | Passion |
41 | History |
42 | Comedy |
43 | Xianxia |
44 | Wuxia |
45 | Anime / ACG |
46 | Other |
EpisodeInfoInput
Field | Type | Description | Required | Example |
|
| Required when you update an existing episode. Omit it for a new episode. The ID of the episode. | Conditional |
|
|
| The title of the episode. | Yes |
|
|
| The episode number. | Yes |
|
|
| The episode cover image IDs. Minimum: | Yes |
|
|
| The | Yes |
|
Request example
curl --location 'https://open.tiktokapis.com/v2/sg/shortdrama/album/update/' \
--header 'Authorization: Bearer CLIENT_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"client_key": "CLIENT_KEY",
"album_id": 7300000000000000001,
"operation_type": 1,
"version": 1,
"album_info": {
"language": "en",
"title": "Example Drama",
"seq_num": 40,
"cover_list": ["b4c45eb643861b84b3b678a2f20e7acd"],
"year": 2026,
"album_status": 3,
"desp": "An example description.",
"drama_type": 2,
"tag_list": [1]
},
"episode_info_list": [
{
"title": "episode_01",
"seq": 1,
"cover_list": ["b4c45eb643861b84b3b678a2f20e7acd"],
"byteplus_vid": "v0d000example0000000000000000000"
}
]
}'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 new version. | |
| The error object. |
UpdateAlbumData
Field | Type | Description | Example |
|
| The ID of the mini drama. |
|
|
| The number of the new version. |
|
|
| The IDs of new episodes. Each key is the |
|
|
| The production status. One of: |
|
|
| The listing status. One of: |
|
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,
"version": 2,
"episode_id_map": {
"seq:1": "7300000000000000002"
},
"album_status": 3,
"publish_status": 0
},
"error": {
"log_id": "202508010000000000000000000000000"
}
}Error codes
Error code | Description | Resolution |
| The service is temporarily unavailable. | Retry later. If the error persists, contact support with the |
| A required field is missing or a field is invalid. | Check the required fields and field limits, then retry. |
|
| Add |
| The mini drama wasn't found. | Verify the |
| The | Query the latest version and retry. |
| Your client key doesn't own this mini drama. | Use the owner's client key and retry. |
| Your client key doesn't own the cover image. | Upload or select an image you own. |
| The operation isn't allowed. | Use |