From Bright Pattern Documentation
Jump to: navigation, search
• 3.10 • 3.11 • 3.12 • 3.13 • 3.14 • 3.15 • 3.16 • 3.17 • 3.18

Add a record

Add a record adds a single new record to the specified calling list. In addition, it returns an error if a record with the same values of unique keys already exists in the specified list.

URL

http[s]://<host>/admin/ws/t/<tenant_url>/callinglist/add/<list_name>

Method

POST

Request body

Names and values of record fields (content type: application/json)

Example

{
        "fieldName_1":"value_1",
        ...
        "fieldName_n":"value_n"
}

Returns

204 – Record added

Errors

400 – Bad request (missing mandatory fields or incorrect format)

401 – Authentication failed

403 – Authentication succeeded, but authorization failed (no privileges)

404 – Calling list not found

500 – Duplicate key (record with same values of unique keys already exists)



< Previous | Next >