POST /Services/{serviceId}/Clone
Description:
Creates a clone of an existing IVR service. The clone replicates all properties of the original (including managers list and tenantId). This function is useful for:
-
Cloning an IVR template for a new tenant (by using a null tenantId and no managers).
-
Cloning for the same tenant while preserving the managers list.
Path Parameter:
-
serviceId (required)
Type: integer
Description: The identifier of the IVR service to clone.
Example:561814
Request Body:
The request must be sent as JSON with:
-
name (string, required):
The name for the cloned IVR service (max 50 characters).
Example:"IVR-IT" -
phoneNumber (string, required):
The phone number for the cloned IVR service (max 50 characters).
Example:"668001"
Security:
Requires Basic Authentication.
Responses:
-
201 Created:
Returns a JSON object containing theidof the newly cloned IVR service. -
400 Bad Request:
For validation errors, with reason codes:-
0: Some required parameters are missing. -
1: Given service id is not valid. -
2: Given name is too long. -
3: Given phone number is not valid or too long.
-
-
401 Unauthorized, 403 Forbidden, 404 Not Found, 409 Conflict, 500 Internal Server Error, 504 Gateway Timeout:
Standard error responses.