diff --git a/spec.json b/spec.json index fe541f10..8d452026 100644 --- a/spec.json +++ b/spec.json @@ -7540,84 +7540,28 @@ "tags": [ "hidden" ], - "summary": "OPTIONS endpoint.", - "description": "This is necessary for some preflight requests, specifically POST, PUT, and DELETE.", + "summary": "Preflight `/oauth2/token` for browser-based OAuth clients.", "operationId": "options_oauth2_token", + "parameters": [ + { + "in": "query", + "name": "client_id", + "description": "The OAuth app client ID.\n\nBrowser preflight requests cannot include the form-encoded token request body, so callers that need a preflight can include this in the query string to let us keep CORS app-scoped.", + "schema": { + "nullable": true, + "type": "string", + "format": "uuid" + } + } + ], "responses": { - "204": { - "description": "resource updated", - "headers": { - "Access-Control-Allow-Credentials": { - "description": "Access-Control-Allow-Credentials header.", - "style": "simple", - "schema": { - "nullable": true, - "type": "string" - } - }, - "Access-Control-Allow-Headers": { - "description": "Access-Control-Allow-Headers header. This is a comma-separated list of headers.", - "style": "simple", - "schema": { - "nullable": true, - "type": "string" - } - }, - "Access-Control-Allow-Methods": { - "description": "Access-Control-Allow-Methods header.", - "style": "simple", - "schema": { - "nullable": true, - "type": "string" - } - }, - "Access-Control-Allow-Origin": { - "description": "Access-Control-Allow-Origin header.", - "style": "simple", - "schema": { - "nullable": true, - "type": "string" - } - }, - "Content-Location": { - "description": "The Content-Location header for responses that are not the final destination. This is used to indicate where the resource can be found, when it is finished.", - "style": "simple", - "schema": { - "nullable": true, - "type": "string" - } - }, - "Location": { - "description": "The location header for redirects and letting users know if there is a websocket they can listen to for status updates on their operation.", - "style": "simple", - "schema": { - "nullable": true, - "type": "string" - } - }, - "Set-Cookie": { - "description": "Set-Cookie header.", - "style": "simple", - "schema": { - "nullable": true, - "type": "string" - } - }, - "X-Api-Call-Id": { - "description": "ID for this request. We return it so that users can report this to us and help us debug their problems.", - "style": "simple", - "required": true, - "schema": { - "type": "string" - } + "default": { + "description": "", + "content": { + "*/*": { + "schema": {} } } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" } } }