Document Content-Type requirement for API

This commit is contained in:
Ske 2020-02-03 14:47:08 +01:00
parent a7e071eb24
commit ab39ebc512

View File

@ -13,6 +13,8 @@ Endpoints will always return all fields, using `null` when a value is missing. O
missing fields from the JSON request will be ignored and preserved as is, but on `POST` endpoints will
be set to `null` or cleared.
Endpoints taking JSON bodies (eg. most `PATCH` and `PUT` endpoints) require the `Content-Type: application/json` header set.
## Authentication
Authentication is done with a simple "system token". You can get your system token by running `pk;token` using the
Discord bot, either in a channel with the bot or in DMs. Then, pass this token in the `Authorization` HTTP header