Replace a file.
- This method call must be authenticated and signed.
- This method requires "write" permission on docs.
URL
HTTP POSThttp://www.ipernity.com/api/upload.replace
Parameters
api_key
|
∗ |
Your api_key.
|
file
|
∗ |
The file data. Use a url-encoded post. Do not include this parameter when signing the query.
|
doc_id
|
|
The document ID to be replaced with this file.
|
∗ : this parameter is required.
Response
<ticket>12345445-98829</ticket>
Once the upload is complete, use the
upload.checkTickets method to check when the documents have been processed.
Error codes
| 1 |
File is missing or empty |
| 2 |
File size exeeded limits |
| 3 |
User exeeded upload limits |
| 4 |
Document not found |
| 5 |
File media type differs from the existing file |
| 6 |
PRO account feature |
|
| 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