Skip to content

Commit

Permalink
Updated token header config
Browse files Browse the repository at this point in the history
  • Loading branch information
rjshanahan authored Dec 23, 2024
1 parent 0641c86 commit 61ef2e0
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions XaiValidatePublicApiDefinition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,19 +107,23 @@ paths:
Keep your credentials safe and secure. Don't share your credentials or publish them to publicly accessible locations such as your client-side code or GitHub.
operationId: getToken

requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
grant_type:
type: string
example: client_credentials
required:
- grant_type
parameters:
- name: grant_type
in: query
required: true
schema:
type: string
enum:
- client_credentials
description: OAuth2 grant type (must be `client_credentials`)
- name: Content-Type
in: header
required: true
schema:
type: string
enum:
- application/x-www-form-urlencoded
description: The content type of the request, must be `application/x-www-form-urlencoded`
responses:
200:
description: Success
Expand Down

0 comments on commit 61ef2e0

Please sign in to comment.