TikTok for Developers

Developer Docs

Last updated December 3, 2026

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

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

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

client_key

string

The client key of your mini app.

Yes

mnexample12345

album_id

int64

The ID of the mini drama.

Yes

7300000000000000001

operation_type

int32

The operation to perform. Pass 1 to create or update the draft. Default: 1.

No

1

version

int32

The version you expect to edit. If it isn't the latest version, the request fails, which protects against concurrent edits.

No

1

album_status

int

OpenAPI does not use this field. The production status of the mini drama is written in album_info.album_status. One of:
• 1: Not released.
• 2: Updating.
• 3: Completed.

No

3

album_info

AlbumInfoInput

Required the first time you upload the mini drama's metadata. The mini drama's metadata.

Conditional

See AlbumInfoInput.

episode_info_list

list<EpisodeInfoInput>

The episodes in this version. Required when operation_type= 1.

Conditional

See EpisodeInfoInput.

AlbumInfoInput

Field

Type

Description

Required

Example

language

string

The original language of the mini drama, as a language code.

Yes

en

title

string

The title of the mini drama.

Yes

Example Drama

seq_num

int32

The total number of episodes in the mini drama.

Yes

40

cover_list

list<string>

The cover image IDs returned by Upload a Mini Drama Image. Minimum: 1. Maximum: 5.

Yes

["b4c45eb643861b84b3b678a2f20e7acd"]

year

int32

The release year.

Yes

2026

album_status

int32

The production status of the mini drama. One of:
• 1: Not released.
• 2: Updating.
• 3: Completed.

Yes

3

desp

string

The description of the mini drama.

Yes

An example description.

drama_type

int32

The production type. One of:
• 1: AIGC. AI-generated live action.
• 2: Comic drama. AI-generated comic.
• 3: Live-action dubbing. Translated live action.
• 4: Live-action localization. Locally produced live action.

Yes

2

tag_list

list<int32>

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

[1]

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

episode_id

string

Required when you update an existing episode. Omit it for a new episode. The ID of the episode.

Conditional

7300000000000000002

title

string

The title of the episode.

Yes

episode_01

seq

int32

The episode number.

Yes

1

cover_list

list<string>

The episode cover image IDs. Minimum: 1. Maximum: 5.

Yes

["b4c45eb643861b84b3b678a2f20e7acd"]

byteplus_vid

string

The vid of the episode video, returned by Query a Mini Drama Video.

Yes

v0d000example0000000000000000000

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

data

UpdateAlbumData

The new version.

error

ErrorStruct

The error object.

UpdateAlbumData

Field

Type

Description

Example

album_id

int64

The ID of the mini drama.

7300000000000000001

version

int32

The number of the new version.

2

episode_id_map

object

The IDs of new episodes. Each key is the episode_id you passed, or seq: followed by the episode number when you didn't pass one. Each value is the new episode ID.

{"seq:1": "7300000000000000002"}

album_status

int32

The production status. One of:
• 1: Not released.
• 2: Updating.
• 3: Completed.

3

publish_status

int32

The listing status. One of:
• 0: Default.
• 1: Listed.
• 2: Delisted.

0

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,
    "version": 2,
    "episode_id_map": {
      "seq:1": "7300000000000000002"
    },
    "album_status": 3,
    "publish_status": 0
  },
  "error": {
    "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.

2121001

A required field is missing or a field is invalid.

Check the required fields and field limits, then retry.

2121002

album_info is required the first time you upload metadata.

Add album_info and retry.

2121104

The mini drama wasn't found.

Verify the album_id.

2121202

The version in the request isn't the latest version.

Query the latest version and retry.

2123201

Your client key doesn't own this mini drama.

Use the owner's client key and retry.

2123202

Your client key doesn't own the cover image.

Upload or select an image you own.

2123203

The operation isn't allowed.

Use operation_type 1.

TikTok for Developers