Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

fix: add notice for required content-type header on update tokens #252

Merged
merged 2 commits into from
Dec 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions source/includes/api-reference/_tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,13 @@ func main() {

Update an existing token for the Tenant.

<aside class="notice">
<span>The Update Tokens endpoint uses a different content-type to support merge-patch operations.
Requests need the <code>Content-Type</code> header to be set to <code>application/merge-patch+json</code>.
Requests made with a different Content-Type header value will receive a <code>415 Unsupported Media Type</code> response code.
For more information on merge-patch, see <a href="https://datatracker.ietf.org/doc/html/rfc7386" target="_blank">RFC 7386</a>.</span>
</aside>

### Permissions

<p class="scopes">
Expand Down