Endpoint
Authentication
Requires a Personal API Access Token.Header
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| apiProxyName | string | Yes | API Proxy name |
| hideSpecFile | boolean | Yes | Hide spec file (true or false) |
Request Body
Full JSON Body Example
Request Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
| hideSpecFile | boolean | No | Enable/disable hiding of specification file. When set to true, the OpenAPI/Swagger specification file will be hidden from public access. When set to false, the spec file will be publicly accessible |
Query Parameters
NoneRequest Body
This endpoint does not require a request body.Response
Success Response (200 OK)
Response Fields
| Field | Type | Description |
|---|---|---|
| success | boolean | Indicates if the request was successful |
Error Response (400 Bad Request)
Error Response (401 Unauthorized)
Error Response (404 Not Found)
cURL Example
Example 1: Hide Spec File
Example 2: Show Spec File
Notes and Warnings
- Path Parameter:
hideSpecFilemust betrueorfalse(boolean as string in URL) - Public Access: When
hideSpecFile=false, spec file is accessible via public endpoints - Security: Hiding spec file prevents public access to API structure/endpoints
- Use Cases:
- Hide internal API specifications
- Protect API structure from public view
Permissions
User must haveAPI_MANAGEMENT + MANAGE permission in the project.
Related Documentation
- Get API Proxy - Get API proxy details

