Edit (in fact replace) the tags for a document owned by the calling user.
- This method call must be authenticated and signed.
- This method requires "write" permission on docs.
URL
HTTP POSThttp://www.ipernity.com/api/doc.tags.edit
Parameters
api_key
|
∗ |
Your api_key.
|
doc_id
|
∗ |
The ID of the document you wish to edit the tags for.
|
keywords
|
|
The new keyword tags to set on the document.
|
members
|
|
The new member tags to set in the document.
|
∗ : this parameter is required.
At least one of the keywords or members parameter is required. Send the parameter with an empty value to remove the tags.
Response
<tags added="2" dropped="0">
<tag type="keyword" id="125652" user_id="123" tag="car!" />
<tag type="member" id="856524" user_id="123" tag="Johnathan" />
</tags>
Error codes
| 1 |
Document not found |
| 2 |
Parameter missing |
| 3 |
Maximum tags 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