Puts a service code on one user or one device, replacing the code it carries now. The code must be one the domain can use: its own or a system-wide one. Codes that start with system- cannot be assigned, and a resource that carries one, such as a call queue, cannot be changed here. Requires Office Manager scope for your own domain, Reseller scope for a domain in your reseller, or Super User scope. The token must also be able to update the user or device.
Request
Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params
Responses
🟢202Accepted
application/json
The change is accepted and applied shortly after this response. Also returned when the resource already carries the code.
Bodyapplication/json
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request PUT 'https://awqacore01.crexendocloud.com/ns-api/v2/domains//servicecode/subscriber/gold-seat/resources/1001' \
--header'Authorization: Bearer <token>'