POST /api/logos/{logo_id}/authors

Path parameters

  • logo_id integer Required

    Minimum value is 0, maximum value is 2147483647.

application/json

Body Required

  • author_id integer Required

    Minimum value is 0.0, maximum value is 2147483647.0.

Responses

  • 200 application/json

    Successful Response

    Hide response attributes Show response attributes object
    • logo_author_id integer Required
    • logo_id integer Required
    • author_id integer Required
  • 503 application/json

    Database connection error

    Hide response attribute Show response attribute object
    • detail string

      Default value is Can't connect to MySQL server on '[SERVER]'.

  • 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/logos/{logo_id}/authors
curl \
 -X POST https://lztup.toil.cc/api/logos/{logo_id}/authors \
 -H "Content-Type: application/json" \
 -d '{"author_id":42}'
Request example
{
  "author_id": 42
}
Request examples
{
  "author_id": 42
}
Response examples (200)
{
  "logo_author_id": 42,
  "logo_id": 42,
  "author_id": 42
}
Response examples (503)
{
  "detail": "Can't connect to MySQL server on '[SERVER]'"
}
Response examples (422)
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}