Browse the help center

Labels API endpoints

Endpoint reference for the Labels tag (8 endpoints): Labels attached to campaigns, banners and placements

Reference network manager admin

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

Request examples

Get label by ID.

ParameterInTypeRequiredDescription
labelIdpathintegeryesUnique 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

Request examples

Delete a label.

ParameterInTypeRequiredDescription
labelIdpathintegeryesUnique 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

Request examples

Update an existing label.

ParameterInTypeRequiredDescription
labelIdpathintegeryesUnique 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

Request examples

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

Request examples

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

Request examples

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

Request examples

List all labels.

ParameterInTypeRequiredDescription
activeOnlyquerybooleannoWhen true, return only active (non-deleted) records
dirquerystringnoSort direction: ASC or DESC
labelsqueryarray<integer>noFilter by label IDs
limitqueryintegernoMaximum number of records to return per page
multisortqueryarray<object>noMulti-column sort configuration as a JSON array of objects with ‘property’ and ‘direction’ fields
namequerystringnoFilter by entity name
onlyDataquerybooleannoWhen true, return only data rows without metadata
onlyTotalquerybooleannoWhen true, return only the total count without data rows
queryquerystringnoSearch query string to filter results by name or other searchable fields
rolequeryintegernoFilter by user role ID
sortquerystringnoField name to sort results by
startqueryintegernoPagination 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

Request examples

List all labels (deprecated) (deprecated)

No parameters beyond authentication.

Responses: 200 — Successfully retrieved labels. Errors follow the shared conventions.

Related pages

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.