Add one or many docs to a group
- This method call must be authenticated and signed.
- This method requires "write" permission on docs.
URL
HTTP POSThttp://www.ipernity.com/api/group.docs.add
Parameters
api_key
|
∗ |
Your api_key.
|
group_id
|
∗ |
The group ID you wish to add documents in.
|
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
<group group_id="10551" total="552" added="2" skipped="2" pending="2">
<doc doc_id="396419" added="1" pending="0" error="0"/>
<doc doc_id="396414" added="1" pending="1" error="0"/>
<doc doc_id="396413" added="0" pending="1" error="0"/>
<doc doc_id="396433" added="0" pending="0" error="1"/>
</group>
A document is skipped (marked added="0") when it is already a member of this group. A document is marked as pending when it needs to be approved by the group moderators.
When a doc is marked added="0" and pending="1", it means the doc has been added previously and is still waiting for approval.
Document
error codes:
error="1": The document has been previously added to the maximum allowed groups. error="2": The document type (photo/audio/video/other) does not match the group restrictions
Error codes
| 1 |
Group not found |
| 2 |
Documents not found |
| 3 |
Quota limit reached |
| 4 |
Group closed or 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