Skip to content

Latest commit

 

History

History
80 lines (59 loc) · 2.33 KB

File metadata and controls

80 lines (59 loc) · 2.33 KB

Delete an SLA

Delete an SLA.

{% hint style="info" %} You are required to have the manage-livechat-sla permission. {% endhint %}

URLRequires AuthHTTP Method
api/v1/livechat/sla/:slaIdYESDELETE

Headers

ArgumentExampleRequiredDescription
X-User-Idmyuser-nameRequiredThe authenticated user ID.
X-Auth-Tokenmyauth-tokenRequiredAuth token.

Path Parameters

ArgumentExampleRequiredDescription
slaId641daf3d7718f90c810429c8RequiredThe Id of the SLA to delete.

Example Call

curl --location --request DELETE 'http://localhost:3000/api/v1/livechat/sla/641daf3d7718f90c810429c8' \
--header 'X-Auth-Token: q2zjkgQt_OmYaBY4nEp50-r7yUAqVIoAqgo0jjBIws5' \
--header 'X-User-Id: rYhzFRd2QZjNwAAXX'

Example Result

Success

{
    "success": true
}

Error

Any of the following errors can occur on the endpoint.

  • Authorization: Requires an authentication token for the request to be made.
  • No Permission: This occurs when the authenticated user doesn't have manage-livechat-sla permission.
  • Not Found: This error gets returned when no SLA is found with the Id provided.

{% tabs %} {% tab title=" Authorization" %}

{
    "status": "error",
    "message": "You must be logged in to do this."
}

{% endtab %}

{% tab title="No Permission" %}

{
    "success": false,
    "error": "error-not-authorized"
}

{% endtab %}

{% tab title="Not Found" %}

{
    "success": false,
    "error": "SLA with id gfgfg56g429c8 not found"
}

{% endtab %} {% endtabs %}

Change Log

Version Description
6.0.0 Added