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