Remove one or many docs from an album
- This method call must be authenticated and signed.
- This method requires "write" permission on docs.
URL
HTTP POSThttp://www.ipernity.com/api/album.docs.remove
Parameters
api_key
|
∗ |
Your api_key.
|
album_id
|
∗ |
The Album ID you wish to remove a document from.
|
doc_id
|
∗ |
A document ID or a comma separated list of document IDs. (List may contain a maximum of 20 IDs)
|
∗ : this parameter is required.
Response
<album album_id="123" total="219" removed="2" skipped="1">
<doc doc_id="1235658" removed="1"/>
<doc doc_id="1235659" removed="1"/>
<doc doc_id="1235660" removed="0"/>
</album>
When all documents are removed from an album (e.g. total=0), the album will be automatically destroyed.
Error codes
| 1 |
Album not found |
| 2 |
Document not found |
|
| 100 |
API Key is missing |
| 101 |
API Key is invalid |
| 102 |
Invalid format |
| 103 |
Method not found |
| 104 |
Signature missing |
| 105 |
Signature is invalid |
| 106 |
Token missing |
| 107 |
Token invalid |
| 108 |
Account closed |
| 109 |
Action blocked |
| 110 |
Insufficient permissions |
| 111 |
IP not allowed |
| 112 |
Application Quota Error |
| 113 |
Client IP Quota Error |
| 120 |
HTTP POST required |
| 121 |
Invalid SOAP envelope |
| 122 |
Invalid XML-RPC envelope |
| 500 |
Service error |
| 501 |
Maintenance mode |
| 503 |
Service unavailable |
Changelog
- 2008-12-01: Method created.
See also