Remove Business Hour

Prev Next
Post
/api/v1/livechat/business-hours.remove

Remove an Omnichannel business hour.

Header parameters
X-Auth-Token
stringRequired

The authToken of the authenticated user.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-Id
stringRequired

The userId of the authenticated user.

ExamplerbAXPnMktTFbNpwtJ
Body parameters
Example 1
{
  "_id": "6953aca46ff48667974be88c",
  "type": "custom"
}
object
_id
string Required

Enter the business hour ID that you want to delete.

Example6953aca46ff48667974be88c
type
string Required

Enter the type of the business hour. It can be default or custom.

Exampledefault
Responses
200

OK

Success
{
  "success": true
}
object
success
boolean
400

Bad Request

Example 1
{
  "success": false,
  "errorType": "invalid-params",
  "error": "must have required property '_id'"
}
object
success
boolean
errorType
string
error
string
401

Unauthorized

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