PUT /v1/applications/{id}/providers/oauth
PUT
Secret API key operationId: upsert_oauth/v1/applications/{id}/providers/oauth Authorization
Server-to-server. Send a secret key as a Bearer token plus the x-application-id header.
Path parameters
idstring<uuid> requiredApplication id
Request body · required
client_idstringclient_secretstringPlaintext secret; stored encrypted. Omit to keep the existing secret.
enabledboolean requiredproviderstring requiredscopesstring[]use_shared_dev_credentialsboolean
Responses
200 Saved
{
"data": {
"client_id": "string",
"enabled": false,
"has_secret": false,
"provider": "string",
"scopes": [
"string"
],
"updated_at": "2026-01-15T09:30:00Z",
"use_shared_dev_credentials": false
},
"error": {
"code": "string",
"message": "string"
},
"meta": {
"timestamp": "string"
},
"success": false
} 422 Production requires own credentials
Request
curl -X PUT "http://localhost:8080/v1/applications/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/providers/oauth" \
-H "Content-Type: application/json" \
-d '{
"client_id": "string",
"client_secret": "string",
"enabled": false,
"provider": "string",
"scopes": [
"string"
],
"use_shared_dev_credentials": false
}'Try it
live requestPUT
http://localhost:8080/v1/applications/018f3c4a-7b2e-7c1d-9e0a-1f2b3c4d5e6f/providers/oauth