From Bright Pattern Documentation
Jump to: navigation, search
 
 
Line 3: Line 3:
  
 
== URL ==
 
== URL ==
http[s]://<host>:<port>/admin/ws/t/<tenant_url>/callinglist/add/<list_name>
+
http[s]://<host>/admin/ws/t/<tenant_url>/callinglist/add/<list_name>
  
 
== Method ==
 
== Method ==
Line 12: Line 12:
  
 
=== Example ===
 
=== Example ===
{|border="1" style="border-collapse:collapse" cellpadding="5"
+
{
|
+
        "fieldName_1":"value_1",
{<br />
+
        ...
        &quot;fieldName_1&quot;:&quot;value_1&quot;,<br />
+
        "fieldName_n":"value_n"
        ...<br />
+
}
        &quot;fieldName_n&quot;:&quot;value_n&quot;<br />
 
}
 
|}
 
  
 
== Returns ==
 
== Returns ==
Line 38: Line 35:
  
  
<center>[[list-management-api-specification/Getcampaigns|< Previous]]  |  [[list-management-api-specification/Addanumberofrecords|Next >]]</center>
+
 
 
</translate>
 
</translate>

Latest revision as of 22:48, 17 September 2018

• 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 >