OutgoingNumberlistItem API

create new entry

POST /api/rest/customer/v1/outgoing-numberlist-items

Parameters

Name Description
data[type] Resource type (outgoing-numberlist-items)
data[attributes][key] Key
data[attributes][action-id] Action id
data[relationships][outgoing-numberlist] Outgoing numberlist

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjo0MywiZXhwIjoxNzY3MzU4MDM1fQ.7Ms7lNZjhWCyTsuLSxNTZ7ZsDLGUP6-7OGCXb3o7rSw
Host: example.org
Cookie: 

Route

POST /api/rest/customer/v1/outgoing-numberlist-items

Body

{"data":{"type":"outgoing-numberlist-items","attributes":{"key":"key","action-id":2},"relationships":{"outgoing-numberlist":{"data":{"type":"outgoing-numberlists","id":"16"}}}}}

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
location: http://example.org/api/rest/customer/v1/outgoing-numberlist-items/9
vary: Accept
etag: W/"15b5cf202ffd29047e7e83f9646b8685"
cache-control: max-age=0, private, must-revalidate
x-request-id: 846f63be-d230-4940-a79a-63e661aff6c7
x-runtime: 0.017187
content-length: 445

Status

201 Created

Body

{
  "data": {
    "id": "9",
    "type": "outgoing-numberlist-items",
    "links": {
      "self": "http://example.org/api/rest/customer/v1/outgoing-numberlist-items/9"
    },
    "attributes": {
      "key": "key",
      "action-id": 2
    },
    "relationships": {
      "outgoing-numberlist": {
        "links": {
          "self": "http://example.org/api/rest/customer/v1/outgoing-numberlist-items/9/relationships/outgoing-numberlist",
          "related": "http://example.org/api/rest/customer/v1/outgoing-numberlist-items/9/outgoing-numberlist"
        }
      }
    }
  }
}