Deprecation Update
This API will be deprecated by 30th April 2025.
We recommend to start using the new version of the APIs:
This API is used to edit existing phone number details in CloudAgent. The user has to update the ‘action’ parameter with the 'edit' function. For example, if the action parameter = edit along with the following parameters, this API edits the edits phone number.
To access this API the following parameters MUST be passed
Parameter | Description |
---|---|
action* | "edit" |
apiKey* | Available in CloudAgent admin login |
userName* | CloudAgent user name |
phoneNumber* | Existing phone number that is to be edited |
phoneName* | Existing phone name which is to be edited |
phoneNumberNew* | New number to be updated |
PhoneNameNew | New name to be updated |
assignSkill | To assign skills while editing the phone Number |
unAssignSkill | To un assign skills while editing the phone Number |
Note
- Parameters with ‘*’ are considered to be mandatory parameters.
- phoneNumber with special characters(+1, +91 etc.,) are to be encoded(add %2B instead of ‘+’) while passing in the request.
- The ‘phoneName’ parameter is not case-sensitive.
Possible responses
Success response | "status": "success" |
Invalid api_key | "status": "error" |
Invalid action | "status": "error" |
Invalid phoneNumber | "status": "error" |
Invalid username | "status": "error" |
Empty phoneName | "status": "error" |
Empty phoneNumber | "status": "error" |
Number/Name exists | "status": "error" |
If the phone number creation limit exceeded | "status": "error" |
Invalid Skill Key | "status": "success" |
Missing Skill Value | "status": "success" |
Further Insights
By default, the domain name is https://in1-ccaas-api.ozonetel.com. Please refer here to change based on the need.