publ betaReference (MCP guide)
Open publ console

ticket_policy_labels_get

# ticket_policy_labels_get

Checks a management label change on an event's discount screen before it is made: create, rename, delete, or attach labels to discounts. Read only.

## Inputs

| Field | Required here | Contract |
| --- | --- | --- |
| `eventId` | Yes | string; min length 1; max length 160; pattern `^[A-Za-z0-9_-]+$`; Exact resource identifier returned by this operation, never a title, unrelated row ID or URL. |
| `operation` | Yes | one of: `create`, `edit`, `delete`, `attach` (by `kind`) |
| `operation.title` | Yes | When `operation.kind` is `create`: string |
| `operation.labelId` | Yes | When `operation.kind` is `edit`: string; min length 1; max length 160; pattern `^[A-Za-z0-9_-]+$`; Exact resource identifier returned by this operation, never a title, unrelated row ID or URL. |
| `operation.title` | Yes | When `operation.kind` is `edit`: string |
| `operation.labelIds` | Yes | When `operation.kind` is `delete`: array; items: string; min length 1; max length 160; pattern `^[A-Za-z0-9_-]+$`; Exact resource identifier returned by this operation, never a title, unrelated row ID or URL.; min items 1; max items 30 |
| `operation.confirmation` | Yes | When `operation.kind` is `delete`: `DELETE_MANAGEMENT_LABELS` |
| `operation.labelIds` | Yes | When `operation.kind` is `attach`: array; items: string; min length 1; max length 160; pattern `^[A-Za-z0-9_-]+$`; Exact resource identifier returned by this operation, never a title, unrelated row ID or URL.; min items 1; max items 10 |
| `operation.policyIds` | Yes | When `operation.kind` is `attach`: array; items: string; min length 1; max length 160; pattern `^[A-Za-z0-9_-]+$`; Exact resource identifier returned by this operation, never a title, unrelated row ID or URL.; min items 1; max items 100 |
| `operation.confirmation` | Yes | When `operation.kind` is `attach`: `ATTACH_MANAGEMENT_LABELS` |

## Usage

Give the `eventId` of the discount screen and one operation:

- `create`: one `title` of 2–20 characters (saved as both name and public name, as the console does), while fewer than 30 labels exist.
- `edit`: an existing `labelId` and its new `title`.
- `delete`: 1–30 existing `labelIds` with `confirmation:"DELETE_MANAGEMENT_LABELS"`.
- `attach`: 1–10 existing `labelIds`, 1–100 active discount `policyIds` of this event and `confirmation:"ATTACH_MANAGEMENT_LABELS"`. Every label is attached to every selected discount; a discount may end up with at most 10 labels.

```json
{"eventId": "event-example", "operation": {"kind": "attach", "labelIds": ["label-example"], "policyIds": ["discount-example"], "confirmation": "ATTACH_MANAGEMENT_LABELS"}}
```

## Results

The check reads the complete label catalog for event policies and the event's active discounts (at most 500) and returns the request that would be sent. Nothing is saved; [ticket_policy_label_apply](ticket_policy_label_apply.md) runs the same check in its preview.