v1

Add labels to a Niche

Changed on

Puts the Niche in the given labels, from GET /v1/labels. A delta: labels you do not list are left as they are, and so are assignee tags. Ids already attached are counted in added / alreadyPresent, never errors.

All or nothing: if any id is not a label of your organization the call fails with 404 and unknownIds, and nothing changes. The acting member needs Manage access to the Niche; x-api-key calls act as the owner.

Rate limited to 2 requests per minute per Niche.

post/v1/niches/{nicheId}/labels

Request

  • Base URL
    https://api.datadive.tools
  • URL
    https://api.datadive.tools/v1/niches/{nicheId}/labels
  • Auth
    API key in header x-api-key

Path parameters

nicheIdstring required

The unique identifier of the Niche

Request body

labelIdsnumber[] required

Ids of the labels to change, from GET /v1/labels. 1-100, unique.

Example request

{
  "labelIds": [
    7,
    9
  ]
}

Response

messagestring

Example response

{
  "data": {
    "added": 1,
    "alreadyPresent": 1
  }
}

Changes