Skip to content

Deletes a work schedule.

Method delete.schedules
Description Deletes a work schedule.
Who has access Agents and clients

Request parameters

Name Type Required Description
access_token string yes Access token used to authenticate the request.
id number yes Unique ID of the work schedule to delete.
user_id number no Unique ID of the client user on whose behalf the agent is making the request. Required for agents. To retrieve a list of client users, use "get.customer_users".

Example request

{
  "jsonrpc":"2.0",
  "id":"number",
  "method":"delete.schedules",
  "params":{
    "access_token":"string",
    "id":"number",
    "user_id":"number"
  }
}

Example response

{
  "jsonrpc":"2.0",
  "id":"number",
  "result":{
  }
}

Possible errors

See the "Errors for delete methods" section.