Skip to main content
PATCH
/
v1
/
organizations
/
me
/
{org_id}
/
applications
/
{app_id}
Update Application
curl --request PATCH \
  --url https://auth.contra.id/v1/organizations/me/{org_id}/applications/{app_id}

Request

curl -X PATCH https://auth.contra.id/v1/organizations/me/$ORG_ID/applications/$APP_ID \
  -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" \
  -d '{ "name": "production-eu", "rotate_api_key": true }'
BodyTypeDescription
namestringNew display name.
rotate_api_keybooleantrue → generate a new api_key (old one immediately invalidated).
environmentenumMove between "live" and "test".

Response · 200

{
  "uuid":        "app_5b9c…",
  "api_key":     "ctr_NEW_KEY_HERE",
  "name":        "production-eu",
  "environment": "live"
}
If you rotate the api_key, the old one stops working immediately — update every deployment before rotating.