From Bright Pattern Documentation
Add Record
This method adds a single new record to the specified calling list. It returns an error if a record with the same values of unique keys as configured in the list definition already exists.
Request
URL
http[s]://<host>/configapi/v2/callinglist/add/<list_name>
Method
POST
Body Content Type
JSON object
Body
{
"fieldName_1":"value_1",
...
"fieldName_n":"value_n"
}
Notes
- Field names are provided as they were defined during list creation.
- Key fields and required fields are mandatory.
Response Codes
| Code | Description |
| 200 | Success (response body is empty) |
| 400 | Bad request (missing required fields or format not understood) |
| 401 | Authentication failed |
| 403 | User authenticated but does not have sufficient privileges |
| 404 | Calling List is not found or invalid URL |
| 500 | Duplicate key error |