Create

POST /api/attachments

Create an attachment

Query parameters

  • public boolean

    Default value is false.

multipart/form-data

Body

Responses

  • 201 application/json

    Successful Response

  • 422 application/json

    Validation Error

    Hide response attribute Show response attribute object
    • detail array[object]
      Hide detail attributes Show detail attributes object
POST /api/attachments
curl \
 -X POST https://metropolitanabogota.org/api/attachments \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: multipart/form-data" \
 -F "image=@file" \
 -F "file=@file"
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}