API Method: /api/photo/attachment/upload
Upload an attachment to a photo object.
Parameters
Parameter | Description |
---|---|
photo_id (required) | The ID of the video to fetch attachments for. |
file (required) | The file to upload. (Note that this parameter − neither the filename nor the file content − shouldn't be included in the api signature). |
Permission level
The minimum required permission level is:
write
Example XML Response
<?xml version="1.0" encoding="UTF-8"?>
<response status="ok" permission_level="write"
message="The attachment was successfully uploaded" cached="0">
</response>
Example JSON Response
{
"status": "ok",
"message":"The attachment was successfully uploaded",
"permission_level":"write",
"cached":"0",
"attachment":{},
"p": "1",
"size": "1",
"site": { ...},
"endpoint": "/api/photo/upload"
}