CreatorHero
CreatorHero API

Script Categories

Categories that group a creator's scripts. Scripts without a category are in the built-in Uncategorized category (ID 0). Requires permission to modify the creator's settings.


Rename script category

PUT
https://backend.creatorhero.com
/dashboard/api/v1/scripts-category

Body: name, required. Names are unique per creator, ignoring case.

Rename script category › query Parameters

creatorId
​integer · int64 · required

ID of the creator

id
​integer · int32 · required

ID of the category

Rename script category › Request Body

Script category to create or rename
name
​string

Name of the category; unique per creator, ignoring case

Rename script category › Responses

Updated category

Script category
id
​integer · int32

ID of the category; 0 for the built-in Uncategorized category

name
​string

Name of the category

orderNumber
​integer · int32

Display position, ascending; Uncategorized is always last


Create script category

POST
https://backend.creatorhero.com
/dashboard/api/v1/scripts-category

Body: name, required. Names are unique per creator, ignoring case. The new category is placed after the existing ones.

Create script category › query Parameters

creatorId
​integer · int64 · required

ID of the creator

Create script category › Request Body

Script category to create or rename
name
​string

Name of the category; unique per creator, ignoring case

Create script category › Responses

Created category

Script category
id
​integer · int32

ID of the category; 0 for the built-in Uncategorized category

name
​string

Name of the category

orderNumber
​integer · int32

Display position, ascending; Uncategorized is always last


Delete script category

DELETE
https://backend.creatorhero.com
/dashboard/api/v1/scripts-category

Deletes the category. contentPolicy decides what happens to its scripts: UNLINK moves them to Uncategorized, DELETE deletes them. Also succeeds when the category does not exist.

Delete script category › query Parameters

creatorId
​integer · int64 · required

ID of the creator

id
​integer · int32 · required

ID of the category

contentPolicy
​string · enum

UNLINK (default) or DELETE

Enum values:
UNLINK
DELETE

Delete script category › Responses

200

Category deleted

No data returned

Reorder script categories

PUT
https://backend.creatorhero.com
/dashboard/api/v1/scripts-category/move

Body: array of category IDs in the new order, e.g. [5, 3, 8]. Categories missing from the array go to the end. Returns all categories in the new order, Uncategorized (ID 0) last.

Reorder script categories › query Parameters

creatorId
​integer · int64 · required

ID of the creator

Reorder script categories › Request Body

​integer[]

Reorder script categories › Responses

200

Categories in the new order

Script category
id
​integer · int32

ID of the category; 0 for the built-in Uncategorized category

name
​string

Name of the category

orderNumber
​integer · int32

Display position, ascending; Uncategorized is always last