Create

POST /api/attachments

Create an attachment

Query parameters

  • public boolean

    Default value is false.

multipart/form-data

Body

  • image string(binary) | null
  • file string(binary) | null

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
      • loc array[string | integer] Required
      • msg string Required
      • type string Required
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"
    }
  ]
}