API Collection Delete Asset

From unroole CMS wiki
Jump to: navigation, search

Summary

Allows for deleting an asset from the collection.

URI

https://api.unroole.com/collections/[collection-id]/delete_item

HTTP Method

DELETE / POST

Required Paramaters

Paramater Default Maximum Length Accepted Values Description
token API Persistence Token that identifies this user and its permissions.
collection_item_id This is the id of the collection item, not the id of the item itself. Refer to API_Collection_Fields for the id of each item in the collection.

Response

Field Type Description
http_status integer API Status Code
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
error Rails default

Examples

these example require jQuery

Delete an item in the collection

Paramater Value
token 1f0qpLwoV5oIcfnU2yvO
collection_item_id 20

Delete an item that is not in the collection

Paramater Value
token 1f0qpLwoV5oIcfnU2yvO
collection_item_id 99