Endpoint
Authentication
Requires a Personal API Access Token.Header
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer | Yes |
| Content-Type | application/json | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| apiProxyName | string | Yes | API Proxy name |
Request Body
Full JSON Body Example
Request Body Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| enableTraceLog | boolean | No | false | Enable or disable trace logging |
| startTime | string | No | - | Start time for trace logging in ISO 8601 format (e.g., 2025-01-01T00:00:00Z) |
| stopTime | string | No | - | Stop time for trace logging in ISO 8601 format (e.g., 2025-01-02T00:00:00Z) |
| environmentName | string | No | - | Target environment name for trace logging |
Response
Success Response (200 OK)
Response Fields
| Field | Type | Description |
|---|---|---|
| success | boolean | Indicates if the request was successful |
Error Response (401 Unauthorized)
Error Response (400 Bad Request)
cURL Example
Example 1: Enable Trace Logging with Time Window
Example 2: Disable Trace Logging
Example 3: Update Only Environment
Permissions
User must haveAPI_MANAGEMENT + MANAGE permission in the project.
Notes and Warnings
- Partial Update: Only provided fields are updated. You can send just the fields you want to change
- Time Format:
startTimeandstopTimemust be in ISO 8601 format with timezone (e.g.,2025-01-01T00:00:00Z) - Time Window: Trace logging is active only between
startTimeandstopTime. Outside this window, trace logging is automatically inactive - Environment-Specific: Trace logging is scoped to a specific environment. Set
environmentNameto target the desired environment - Performance Impact: Trace logging captures detailed request/response data and may impact performance. Use time-bounded windows for production environments
Related Documentation
- Update Traffic Log Settings - Configure traffic logging settings
- Update Maintenance Mode - Configure maintenance mode
- Get API Proxy Detail - Get API proxy details
- Deploy API Proxy - Deploy API proxy to apply changes

