From Bright Pattern Documentation
< 3.18:List-management-api-specification
Revision as of 22:55, 17 September 2018 by Tracy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 3.10 • 3.11 • 3.12 • 3.13 • 3.14 • 3.15 • 3.16 • 3.17 • 3.18

Update a record

This updates fields of an existing record in the specified calling list. The request can contain either a full or a partial set of fields. All unique keys must be present and their values cannot be changed.

Note: Updating a list record requires internal reprocessing of the entire calling list. Thus, if this method is applied to a list within a running campaign, the use of this list within the given campaign will be suspended until list reprocessing is complete. The suspension time will depend on the list size and, for long lists, may amount to tens of minutes. Other lists associated with the same campaign will not be affected.

URL

http[s]://<host>/admin/ws/t/<tenant_url>/callinglist/update/<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 updated

Errors

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

401 – Authentication failed

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

404 – Calling list is not found, or record is not found, or URL is invalid



< Previous | Next >