Edit a document title and description.
- This method call must be authenticated and signed.
- This method requires "write" permission on docs.
URL
HTTP POSThttp://www.ipernity.com/api/doc.set
Parameters
api_key
|
∗ |
Your api_key.
|
doc_id
|
∗ |
The ID of the document you wish to edit
|
title
|
|
The new title for this document
|
description
|
|
The new description for this document
|
∗ : this parameter is required.
The doc.set method can also be used to set the document permissions, license and safety. Additional parameters are described in the
doc.setPerms and
doc.setLicense methods.
Response
<doc doc_id="12345" title="A new title">
<description>Well...</description>
</doc>
When setting other properties than title or content the API response will return a status and a possible error.
Error codes
| 1 |
Document not found |
| 2 |
No parameters were sent |
| 3 |
Invalid arguments |
|
| 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