API Auth
Update organization API client
Updates an existing organization API client. Only specified fields are modified.
patch/api/v1/organizations/{organization_id}/clients/{client_id}
Path parameters
organization_idstring required
Unique identifier of the organization
client_idstring required
Unique identifier of the client
Request body
Example request
{
"audience": [
"https://api.example.com/api/analytics",
"https://deployment-api.acmecorp.com"
],
"custom_claims": [
{
"key": "environment",
"value": "production"
},
{
"key": "service",
"value": "deployment"
}
],
"description": "Service account for GitHub Actions to deploy resources to production",
"name": "GitHub Actions Deployment Service",
"scopes": [
"deploy:resources",
"read:deployments"
]
}Response
Returns the updated organization API client with all current details reflected in the response, including modified scopes, audience values, and custom claims.
Example response
{
"client": {
"audience": [
"https://api.example.com"
],
"client_id": "m2morg_1231234233424344",
"create_time": "2024-01-05T14:48:00Z",
"custom_claims": [
{
"key": "environment",
"value": "production"
}
],
"description": "Service account for automated deployment processes",
"metadata_uri": "https://example.com/client-metadata.json",
"name": "GitHub Actions Deployment Service",
"organization_id": "org_1231234233424344",
"redirect_uris": [
"https://example.com/callback"
],
"resource_id": "app_1231234233424344",
"scopes": [
"deploy:resources",
"read:deployments"
],
"secrets": [
{
"create_time": "2024-01-05T14:48:00Z",
"created_by": "user_12345",
"expire_time": "2025-01-05T14:48:00Z",
"id": "sec_1234abcd5678efgh",
"last_used_time": "2024-02-15T10:30:00Z",
"plain_secret": "sec_1234567890abcdefghijklmnopqrstuvwxyz",
"secret_suffix": "xyzw",
"update_time": "2024-01-10T09:12:00Z"
}
],
"update_time": "2024-01-05T14:48:00Z"
}
}