Add item(s)
POST /lists/{list_id}/items
Adds or updates an item in an existing list.
Parameters
List ID without the "@" prefix.
Request body
item object
Item content. Validated according to the list type.
Optional item description for display in the admin panel.
Number of hours for automatic expiration. Leave blank to register the item permanently.
Responses
201Item(s) created successfully.
Response body
List of created items
items[] item
Item ID.
Item content.
Optional item description.
Item expiration date and time. If the item is permanent, this field will be null.
401Invalid access credentials
Response body
errors[] item
Request field where the error occurred
Error type code
Error message
422Invalid parameters
Response body
errors[] item
Request field where the error occurred
Error type code
Error message
404Object not found
Response body
errors[] item
Request field where the error occurred
Error type code
Error message
{
"item": {
"values": null,
"description": "string",
"expiration_in_hours": 6
}
}