OutgoingNumberlistItem API

create multiple entries

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

Parameters

Name Description
data[type] Resource type (outgoing-numberlist-items)
data[attributes][batch-key] Batch 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.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjo0NCwiZXhwIjoxNzY3MzU4MDM2fQ.H80ZBEK_vCeY8m8UloYkiNF12phEm2nQxv3hdvu6UK8
Host: example.org
Cookie: 

Route

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

Body

{"data":{"type":"outgoing-numberlist-items","attributes":{"batch-key":"key1, key2, key3","action-id":2},"relationships":{"outgoing-numberlist":{"data":{"type":"outgoing-numberlists","id":"17"}}}}}

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/13
vary: Accept
etag: W/"b29014cef7219f7857d604baa13ebec9"
cache-control: max-age=0, private, must-revalidate
x-request-id: 2a9dae6d-954a-4cf1-b4bf-95c4b2f031ab
x-runtime: 0.029431
content-length: 450

Status

201 Created

Body

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