Update Auth Config for Gateway
Endpoint: POST /api/config/auth/{id}
Updates an authentication configuration of a gateway service.
Request body
| Parameter | Description | Type | Required/ Optional |
|---|---|---|---|
| id | The unique identifier for the authentication configuration. | string | Required. |
| authenticationType | The type of authentication. Supported values:
|
string | Required. |
| apiKeys | A unique API key for authentication. | string | Required. |
| applicationId | The unique identifier of the application, which generates an access key and JWT token. The Gateway will use this token to authenticate with the Conductor. The service using this authentication will inherit the application’s permissions. The application must already exist in Conductor, and you can retrieve its ID using Get All Applications, and get the id field for your application. |
string | Required. |
Response
Returns 200 OK, indicating that the auth config was updated successfully.
Examples
Update an auth config for Gateway
Request
curl -X 'PUT' \
'https://<YOUR-SERVER-URL>/api/gateway/config/auth/test-env' \
-H 'accept: */*' \
-H 'X-Authorization: <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"applicationId": "default-orkes-application",
"authenticationType": "NONE",
"id": "test-env"
}'
Response
Returns 200 OK, indicating that the auth config was updated successfully.