---
updatedAt: 2026-05-11T14:55:41.000Z
agentTools:
  projectIndex: https://api.authaction.com/llms.txt
---

# Enable apiserver for specific client

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/api/v1/apiserver/{apiServerId}/enable/{clientId}": {
      "patch": {
        "operationId": "ApiServerController_enableClient",
        "summary": "Enable apiserver for specific client",
        "parameters": [
          {
            "name": "apiServerId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "clientId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Request successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "number",
                      "example": 200
                    },
                    "message": {
                      "type": "string",
                      "example": "success"
                    },
                    "data": {
                      "$ref": "#/components/schemas/ApiServerObject"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid api server id"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "User not member of tenant"
          }
        },
        "tags": [
          "ApiServers"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    }
  },
  "info": {
    "title": "AuthAction",
    "description": "authentication and authorization",
    "version": "1.0",
    "contact": {}
  },
  "tags": [
    {
      "name": "ApiServers",
      "description": "Endpoints for API Servers"
    }
  ],
  "servers": [
    {
      "url": "https://{tenant}.{region}.authaction.com",
      "description": "Dynamic server based on tenant",
      "variables": {
        "tenant": {
          "default": "your-tenant-name",
          "description": "The tenant identifier"
        },
        "region": {
          "default": "eu",
          "description": "The tenant region (au|ca|cn|eu|in|jp|us)"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "type": "http",
        "description": "Obtain a Bearer token by passing M2M client app credential through the /oauth2/m2m/token endpoint"
      }
    },
    "schemas": {
      "ApiServerObject": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "example": "662baf9b1ae06c2c71676e44"
          },
          "name": {
            "type": "string",
            "example": "Myapp"
          },
          "identifier": {
            "type": "string",
            "example": "https://backend.com"
          },
          "tenant": {
            "type": "string",
            "example": "662baf9b1ae06c2c71676e44"
          },
          "clients": {
            "example": [
              "client1",
              "client2"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "allowDynamicClients": {
            "type": "boolean",
            "example": false,
            "description": "Whether dynamically registered clients can access this API server"
          },
          "dynamicClientConnections": {
            "example": [
              "662baf9b1ae06c2c71676e33",
              "662baf9b1ae06c2c71676e55"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "domain": {
            "type": "string",
            "example": "tenant1.eu.authaction.com"
          },
          "createdAt": {
            "type": "string",
            "example": "2025-01-22T10:00:00.000Z",
            "description": "Creation timestamp"
          },
          "updatedAt": {
            "type": "string",
            "example": "2025-01-23T15:00:00.000Z",
            "description": "Last updated timestamp"
          }
        },
        "required": [
          "id",
          "name",
          "identifier",
          "tenant",
          "clients",
          "allowDynamicClients",
          "dynamicClientConnections",
          "domain",
          "createdAt",
          "updatedAt"
        ]
      }
    }
  }
}
```