update values
PUT /api/rest/admin/registrations/:id
Parameters
| Name |
Description |
|
data[type]
|
Resource type (registrations)
|
|
data[id]
|
Registration ID
|
|
data[attributes][domain]
|
Domain
|
|
data[attributes][name]
|
Name
|
|
data[attributes][contact]
|
Contact
|
|
data[attributes][username]
|
Username
|
|
data[attributes][sip-schema-id]
|
Sip schema id
|
|
data[attributes][auth-password]
|
Auth password
|
|
data[attributes][auth-user]
|
Auth user
|
|
data[attributes][contact]
|
Contact
|
|
data[attributes][display-username]
|
Display username
|
|
data[attributes][domain]
|
Domain
|
|
data[attributes][enabled]
|
Enabled
|
|
data[attributes][expire]
|
Expire
|
|
data[attributes][force-expire]
|
Force expire
|
|
data[attributes][max-attempts]
|
Max attempts
|
|
data[attributes][route-set]
|
Route set
|
|
data[attributes][retry-delay]
|
Retry delay
|
|
data[attributes][sip-interface-name]
|
Sip interface name
|
|
data[relationships][transport-protocol]
|
Transport protocol
|
|
data[relationships][node]
|
Node
|
|
data[relationships][pop]
|
Pop
|
Request
Headers
Route
PUT /api/rest/admin/registrations/9
Body
{"data":{"type":"registrations","id":9,"attributes":{"name":"test_name"}}}
Response
Headers
Status
200 OK
Body
{
"data": {
"id": "9",
"type": "registrations",
"links": {
"self": "http://example.org/api/rest/admin/registrations/9"
},
"attributes": {
"auth-password": null,
"auth-user": null,
"contact": "sip:user@domain",
"display-username": null,
"domain": "localhost",
"enabled": true,
"expire": null,
"force-expire": false,
"max-attempts": null,
"name": "test_name",
"route-set": [
"sip:user@proxy-domain1",
"sip:user@proxy-domain2"
],
"retry-delay": 5,
"sip-interface-name": null,
"username": "user name",
"sip-schema-id": 1
},
"relationships": {
"transport-protocol": {
"links": {
"self": "http://example.org/api/rest/admin/registrations/9/relationships/transport-protocol",
"related": "http://example.org/api/rest/admin/registrations/9/transport-protocol"
}
},
"pop": {
"links": {
"self": "http://example.org/api/rest/admin/registrations/9/relationships/pop",
"related": "http://example.org/api/rest/admin/registrations/9/pop"
}
},
"node": {
"links": {
"self": "http://example.org/api/rest/admin/registrations/9/relationships/node",
"related": "http://example.org/api/rest/admin/registrations/9/node"
}
}
}
}
}