Difference between revisions of "API Collection Delete Asset"
Tommy.leung (Talk | contribs) |
Tommy.leung (Talk | contribs) |
||
Line 98: | Line 98: | ||
</blockquote> | </blockquote> | ||
|} | |} | ||
− | |||
=== Delete an item that is not in the collection === | === Delete an item that is not in the collection === |
Latest revision as of 09:10, 3 July 2012
Contents
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 |
jQuery ajax call |
---|
|
JSON |
---|
|
XML |
---|
|
Delete an item that is not in the collection
Paramater | Value |
---|---|
token | 1f0qpLwoV5oIcfnU2yvO |
collection_item_id | 99 |
jQuery ajax call |
---|
|
JSON |
---|
|
XML |
---|
|