URL: v3/api/label

Method: POST

Query Parameters

Parameter Type Possible Values Required/Optional Description
visible_to array  agents, team_lead, dept_mngr Required This field provides access, who can see the tags. Multiple user visibility can be selected from drop down.

Response :

{
    "success": true,
    "message": "Label saved successfully"
}


URL: v3/api/label-update/7

Method: PATCH

Query Parameters

Parameter Type Possible Values Required/Optional Description
visible_to array  agents, team_lead, dept_mngr Required This field provides access, who can see the tags. Multiple user visibility can be selected from drop down.

Response :

{
    "success": true,
    "message": "Label updated successfully"
}

 

URL: v3/api/dependency/labels

Method: GET

Query Parameters: Above parameter mentioned in POST method is used.

Response:

{
    "success": true,
    "data": {
        "labels": [
            {
               "id": 1,
               "name": "Normal Label",
               "color": "#0A5606",
               "visible_to": "agents"
            },
            {
               "id": 2,
               "name": "Emergency",
               "color": "#F30707",
               "visible_to": "agents"
            },
        ]
    }
}

 

Leave a Reply

Your email address will not be published.