Create a new attachment for a particular object

POST /attachments

Query parameters

  • owner_type string Required

    Type of owner (casting, booking, contact, model)

  • owner_id integer(int32) Required

    ID of owner (casting_id, booking_id, contact_id, model_id)

  • filename string Required

    Name/extension of upload file

  • filetype string Required

    MIME type of uploaded file

  • filesize string(int32) Required

    Size (in bytes) of uploaded file

Responses

  • 201 application/json

    New attachment created

  • 400 application/json

    Validation error occurred

    Hide response attributes Show response attributes object
    • code integer(int32) Required
    • message string Required
  • 405 application/json

    Method not allowed

    Hide response attributes Show response attributes object
    • code integer(int32) Required
    • message string Required
  • 500 application/json

    An unexpected error occurred

    Hide response attributes Show response attributes object
    • code integer(int32) Required
    • message string Required
POST /attachments
curl \
 --request POST 'https://*.syngency.com/admin/api/attachments?owner_type=string&owner_id=42&filename=string&filetype=string&filesize=string'
Response examples (201)
[
  [
    []
  ]
]
Response examples (400)
{
  "code": 42,
  "message": "string"
}
Response examples (405)
{
  "code": 42,
  "message": "string"
}
Response examples (500)
{
  "code": 42,
  "message": "string"
}