For the complete documentation index, see llms.txt. This page is also available as Markdown.

Labels

Operations related to Labels for categorizing and organizing platform resources with custom tags. Enable flexible resource organization, filtering, and grouping across segments, campaigns, feeds, and other entities for improved management, reporting, and governance of complex platform configurations across teams and use cases.

Search label by Id

get
/labels/{label_id}
Path parameters
label_idinteger · int64Required

The label id

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/labels/{label_id}
GET /v1/labels/{label_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "id": "text",
    "organisation_id": "text",
    "name": "text",
    "creation_ts": 0
  }
}

Update label

put
/labels/{label_id}
Path parameters
label_idinteger · int64Required

The label id

Body
idstringRead-onlyRequired
organisation_idstringRequired
namestringRequired
creation_tsinteger · int64Read-onlyRequiredDefault: 0
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
put/labels/{label_id}
PUT /v1/labels/{label_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 40

{
  "organisation_id": "text",
  "name": "text"
}
{
  "status": "ok",
  "data": {
    "id": "text",
    "organisation_id": "text",
    "name": "text",
    "creation_ts": 0
  }
}

Delete label by Id

delete
/labels/{label_id}
Path parameters
label_idinteger · int64Required

The label id

Responses
200

Success response

application/json
statusstring · enumRequiredPossible values:
delete/labels/{label_id}
DELETE /v1/labels/{label_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok"
}

Search labels

get
/labels
Query parameters
organisation_idinteger · int64Optional

The organisation owning the label

community_idinteger · int64Optional

The community owning the label

label_namestringOptional

The name of the label to search

labelable_idinteger · int64Optional

The id the labelable item

first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
totalintegerRequired
countintegerRequired
max_resultsintegerRequired
statusstring · enumRequiredPossible values:
first_resultintegerRequired
get/labels
GET /v1/labels HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "total": 1,
  "count": 1,
  "max_results": 1,
  "status": "ok",
  "data": [
    {
      "id": "text",
      "organisation_id": "text",
      "name": "text",
      "creation_ts": 0
    }
  ],
  "first_result": 1
}

Create label

post
/labels
Body
idstringRead-onlyRequired
organisation_idstringRequired
namestringRequired
creation_tsinteger · int64Read-onlyRequiredDefault: 0
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/labels
POST /v1/labels HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 40

{
  "organisation_id": "text",
  "name": "text"
}
{
  "status": "ok",
  "data": {
    "id": "text",
    "organisation_id": "text",
    "name": "text",
    "creation_ts": 0
  }
}

Last updated

Was this helpful?