Update details of department

This API allows you to update the details of particular department.

Sample Request

curl --request PUT \
     --url https://api.servetel.in/v1/department/id \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "ring_strategy": "simultaneous"
}
'

📘 Important!

Before we begin, note that the * sign denotes the mandatory variables in each table.

Request Variables (Path Params)

The following parameter is required to update the details of particular department.

Variable NameDescriptionData Type
id*Unique ID of the department.string

Request Variables (Body Params)

The following parameter is required to update the details of particular department.

Variable NameDescriptionData Type
name*Name for department.String
description*Description for department.String
ring_strategy*Order in which the agents under this department will receive calls.String
timeout_dest_typeDestination type where the call lands in case of timeout.String
timeoutTime in seconds for which the call tries to connect for each agent in this department.Array of strings
destinationNumber of the agent in the department where the call should land. Example: extension|eid, eid: agents's eid eg: 050160000Array of strings

Response Variables

The response returned is as following:

Variable NameDescriptionData Type
SuccessThe request success status, the possible values are: True (default) for success. False for failure.Boolean
MessageThe message corresponding to the success status. For example, in 400 Response where the "success" variable pops as True, the message displayed is shown here.String
Language
Click Try It! to start a request and see the response here!