publ betaReference (MCP guide)
Open publ console

course_labels_apply

# course_labels_apply

Creates, renames, deletes or orders topic and age-rating labels in the Course app (pApp C00007). Shows a preview first; the change runs only after confirmation. Called without confirmToken it previews and returns a confirmToken; repeating the same input with it executes once.

## Inputs

| Field | Required here | Contract |
| --- | --- | --- |
| `action` | Yes | one of: `create`, `rename`, `delete`, `order` (by `kind`) |
| `action.type` | Yes | When `action.kind` is `create`: `COUNTRY`, `GENRE`, `AGE_RATING`, `TOPIC`, `GENERAL` |
| `action.name` | Yes | When `action.kind` is `create`: string; min length 1; max length 30 |
| `action.labelId` | Yes | When `action.kind` is `rename`: integer; greater than 0 |
| `action.name` | Yes | When `action.kind` is `rename`: string; min length 1; max length 30 |
| `action.labelId` | Yes | When `action.kind` is `delete`: integer; greater than 0 |
| `action.confirmation` | Yes | When `action.kind` is `delete`: `DELETE_MEDIA_LABEL` |
| `action.type` | Yes | When `action.kind` is `order`: `COUNTRY`, `GENRE`, `AGE_RATING`, `TOPIC`, `GENERAL` |
| `action.labelIds` | Yes | When `action.kind` is `order`: array; items: integer; greater than 0; min items 1; max items 100 |
| `confirmToken` | No | string; pattern `^ct[a-f\d]{32}$`; The confirmToken from this tool's preview result. Omit it to preview; repeat the same input with it to execute. |