Labels

Labels represent labels associated with a group. They can be used to categorize groups and filter them in the groups list.

The Label object

Properties

  • colorstring

    The color of the label.

  • idstring

    The id of the label.

  • namestring

    The name of the label.

Client object

{
  "id": "6654468b366ad245719322f4",
  "name": "VIP",
  "color": "#991b1b"
}

POST/v2/groups/:id/labels/:labelId

Add a label

This endpoint allows you to add a label.

Parameters

    Request

    POST
    /v2/groups/:id/labels
    curl https://api.lsp.expert/v2/groups/6548c72a13162e1d7ade0290/labels/6654468b366ad245719322f4 \
      -u {key}:
    

    Response

    {
      "id": "6548c72a13162e1d7ade0290",
      "name": "Demo group",
      "labels": [
        {
          "id": "6654468b366ad245719322f4",
          "name": "VIP",
          "color": "#991b1b"
        }
      ]
      // ...
    }
    
    

    DELETE/v2/groups/:id/labels/:labelId

    Delete a label

    This endpoint allows you to delete a label.

    Request

    DELETE
    /v2/groups/:id/labels/:labelId
    curl -X DELETE https://api.lsp.expert/v2/groups/66f1313f9e477f90664d1ad8/labels/6654468b366ad245719322f4 \
      -u {key}:
    

    Response

    {
      "id": "6548c72a13162e1d7ade0290",
      "name": "Demo group",
      "labels": []
      // ...
    }