Skip to Content

TwentyThree™ API

API Method: /api/photo/attachment/upload

Upload an attachment to a photo object.


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:


Example XML Response

<?xml version="1.0" encoding="UTF-8"?>
<response status="ok" permission_level="write" 
  message="The attachment was successfully uploaded" cached="0">

Example JSON Response

  "status": "ok", 
  "message":"The attachment was successfully uploaded",
  "p": "1",
  "size": "1",
  "site": { ...},
  "endpoint": "/api/photo/upload"