PATCH
/api/authors/{author_id}
curl \
-X PATCH https://lztup.toil.cc/api/authors/{author_id} \
-H "Content-Type: application/json" \
-d '{"user_id":42,"username":"string"}'
Request example
{
"user_id": 42,
"username": "string"
}
Request examples
{
"user_id": 42,
"username": "string"
}
Response examples (200)
{
"author_id": 42,
"user_id": 42,
"username": "string",
"created_at": 42
}
Response examples (503)
{
"detail": "Can't connect to MySQL server on '[SERVER]'"
}
Response examples (400)
{
"detail": "Duplicate entry '...' for key '...'"
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}