diff --git a/api-reference/openapi.json b/api-reference/openapi.json index 5bf00d1..bdba801 100644 --- a/api-reference/openapi.json +++ b/api-reference/openapi.json @@ -2528,9 +2528,6 @@ "in": "header", "schema": { "type": "string", - "enum": [ - "text/tab-separated-values" - ], "default": "text/tab-separated-values" }, "description": "The requested format of the returned glossary entries. Currently, supports only `text/tab-separated-values`.", @@ -2707,6 +2704,30 @@ } } } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "413": { + "$ref": "#/components/responses/PayloadTooLarge" + }, + "415": { + "description": "Unsupported Content-Type. Use `application/json` or `application/x-www-form-urlencoded`." + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "456": { + "$ref": "#/components/responses/QuotaExceeded" + }, + "500": { + "$ref": "#/components/responses/InternalServerError" + }, + "504": { + "$ref": "#/components/responses/ServiceUnavailable" } }, "security": [ diff --git a/api-reference/openapi.yaml b/api-reference/openapi.yaml index 8edf293..79be3e3 100644 --- a/api-reference/openapi.yaml +++ b/api-reference/openapi.yaml @@ -1781,8 +1781,6 @@ paths: in: header schema: type: string - enum: - - text/tab-separated-values default: text/tab-separated-values description: The requested format of the returned glossary entries. Currently, supports only `text/tab-separated-values`. @@ -1901,6 +1899,22 @@ paths: description: The improved text. type: string example: This is a sample sentence to improve. + 400: + $ref: '#/components/responses/BadRequest' + 403: + $ref: '#/components/responses/Forbidden' + 413: + $ref: '#/components/responses/PayloadTooLarge' + 415: + description: Unsupported Content-Type. Use `application/json` or `application/x-www-form-urlencoded`. + 429: + $ref: '#/components/responses/TooManyRequests' + 456: + $ref: '#/components/responses/QuotaExceeded' + 500: + $ref: '#/components/responses/InternalServerError' + 504: + $ref: '#/components/responses/ServiceUnavailable' security: - auth_header: [ ] /v2/write/correct: