SIP Registration API

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

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjE5MCwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc3MjIxMjAwOX0.k5Q9eILYB2AkQ5zZN-P1Y8ZXnBwNNe8Xj8jVKqlp5z4
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/registrations/9

Body

{"data":{"type":"registrations","id":9,"attributes":{"name":"test_name"}}}

Response

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
vary: Accept
etag: W/"becec11f8d12d14d569b9ffd90be410c"
cache-control: max-age=0, private, must-revalidate
x-request-id: 4e7bc3ec-2a7c-4568-a9d5-7349e480bb65
x-runtime: 0.013079
content-length: 1022

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"
        }
      }
    }
  }
}