mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Document Content-Type requirement for API
This commit is contained in:
parent
a7e071eb24
commit
ab39ebc512
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
missing fields from the JSON request will be ignored and preserved as is, but on `POST` endpoints will
|
||||||
be set to `null` or cleared.
|
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
|
||||||
Authentication is done with a simple "system token". You can get your system token by running `pk;token` using the
|
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
|
Discord bot, either in a channel with the bot or in DMs. Then, pass this token in the `Authorization` HTTP header
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue