Skip to content

Unauthorized

Type: response

Description

Not authorized for given operation on the Resource

TypeScript Definition

typescript
Unauthorized: {{
            headers: {
                [name: string]: unknown;
            };
            content: {
                "application/json": {
                    /** @example Not authorized for given operation on the Resource. */
                    message: string;
                    /** @default false */
                    success: boolean;
                    /** @example unauthorized */
                    code: string;
                };
            };
        };
        /** @description Payload accepted */
}

OpenAPI Schema

json
{
  "description": "Not authorized for given operation on the Resource",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "required": [
          "message",
          "success",
          "code"
        ],
        "properties": {
          "message": {
            "type": "string",
            "examples": [
              "Not authorized for given operation on the Resource."
            ],
            "x-speakeasy-error-message": true
          },
          "success": {
            "type": "boolean",
            "default": false
          },
          "code": {
            "type": "string",
            "examples": [
              "unauthorized"
            ]
          }
        }
      }
    }
  }
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: