Replace all the documents and the cover of 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.setList
Parameters
api_key
|
∗ |
Your api_key.
|
album_id
|
∗ |
The Album ID you wish to set its document list.
|
doc_ids
|
∗ |
A comma separated list of document IDs. This list of documents will replace the album existing list. Document will appear in the album the order sent.
|
cover_id
|
∗ |
The document ID to use as the album cover. This document must belong to the doc_ids list.
|
∗ : this parameter is required.
Response
<album album_id="123" cover_id="1235659" total="219" added="217" skipped="2">
<doc doc_id="1235658" added="1" error="0"/>
<doc doc_id="1235659" added="1" error="0"/>
<doc doc_id="1235660" added="0" error="1"/>
<doc doc_id="1256852" added="0" error="0"/>
(...)
</album>
A document is skipped when:
added="0": it is already a member of this album.error="X": there was an error when adding the document to this album.
Document
error codes:
error="1": The document has been previously added in the maximum allowed albums.
Error codes
| 1 |
Album not found |
| 2 |
Documents not found |
| 3 |
Cover document not found |
| 4 |
Album limit reached |
|
| 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