Delete an SLA

HTTP MethodURLRequires Auth

DELETE

/api/v1/livechat/sla/:slaId

Permission required: manage-livechat-sla

Path Parameters

KeyExample ValueDescription

slaId*

641daf3d7718f90c810429c8

The 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 Response

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.

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

Change Log

VersionDescription

6.0.0

Added

Last updated

Rocket.Chat versions receive support for six months after release.