Labels API endpoints
Endpoint reference for the Labels tag (8 endpoints): Labels attached to campaigns, banners and placements
Labels attached to campaigns, banners and placements. 8 endpoints, generated from the OpenAPI spec. Authentication, the response envelope, pagination and error codes are shared by all endpoints — see REST API overview. Parameters marked form go in an application/x-www-form-urlencoded request body.
GET /rest-api/label/{labelId}.do
Get label by ID.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
labelId | path | integer | yes | Unique numeric identifier of the label to retrieve |
Responses: 200 — Label retrieved successfully · 404 — Label not found. Errors follow the shared conventions.
DELETE /rest-api/label/{labelId}/delete.do
Delete a label.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
labelId | path | integer | yes | Unique numeric identifier of the label to delete |
Responses: 200 — Label deleted successfully · 404 — Label not found. Errors follow the shared conventions.
POST /rest-api/label/{labelId}/update.do
Update an existing label.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
labelId | path | integer | yes | Unique numeric identifier of the label to update |
Request body (application/json, required): JSON object with fields defaultLabel, defaultLabelObjectType, defaultLabelPlacementTypes, id, value.
Responses: 200 — Label updated successfully · 404 — Label not found. Errors follow the shared conventions.
POST /rest-api/label/create.do
Create a new label.
Request body (application/json, required): JSON object with fields defaultLabel, defaultLabelObjectType, defaultLabelPlacementTypes, id, value.
Responses: 200 — Label created successfully. Errors follow the shared conventions.
GET /rest-api/label/defaultObjectTypes.do
Get default object types.
No parameters beyond authentication.
Responses: 200 — Default object types retrieved successfully. Errors follow the shared conventions.
GET /rest-api/label/defaultPlacementTypes.do
Get default placement types.
No parameters beyond authentication.
Responses: 200 — Default placement types retrieved successfully. Errors follow the shared conventions.
GET /rest-api/label/list.do
List all labels.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
activeOnly | query | boolean | no | When true, return only active (non-deleted) records |
dir | query | string | no | Sort direction: ASC or DESC |
labels | query | array<integer> | no | Filter by label IDs |
limit | query | integer | no | Maximum number of records to return per page |
multisort | query | array<object> | no | Multi-column sort configuration as a JSON array of objects with ‘property’ and ‘direction’ fields |
name | query | string | no | Filter by entity name |
onlyData | query | boolean | no | When true, return only data rows without metadata |
onlyTotal | query | boolean | no | When true, return only the total count without data rows |
query | query | string | no | Search query string to filter results by name or other searchable fields |
role | query | integer | no | Filter by user role ID |
sort | query | string | no | Field name to sort results by |
start | query | integer | no | Pagination offset (0-based index of the first record to return) |
Responses: 200 — Labels retrieved successfully. Errors follow the shared conventions.
GET /rest-api/labels.do
List all labels (deprecated) (deprecated)
No parameters beyond authentication.
Responses: 200 — Successfully retrieved labels. Errors follow the shared conventions.
Related
- REST API overview — authentication and conventions
- API endpoint reference by tag