1. Docs
  2. API Reference
  3. Update the Application name or settings

Update the Application name or settings

PATCH/portal/v1/accounts/{accountSlug}/applications/{appSlug}

Patches the active Application's mutable fields (currently name); omitted fields are left unchanged. Supply the Application's current version in the If-Match header for optimistic concurrency — a stale value returns 409 so a concurrent edit is surfaced rather than silently overwritten. Returns the updated Application and emits an application.updated audit event.

Authentication

Bearer TokenAuthorization

JWT access token. Never send alongside X-API-Key: a request carrying both is refused.

Requires capability applications.manageDeveloper Console

Create, edit, and delete Applications and Environments. Granted through an administrator role in the Admin Workspace; a valid token without it is refused with 403.

Headers

  • if-match required

Request body

application/json

namestring Optional

Responses

application/json

  • dataApplicationResponseDto*

application/json

  • errorApiErrorBodyDto*

application/json

  • errorApiErrorBodyDto*

application/json

  • errorApiErrorBodyDto*

Errors

When the request can't be completed, the response body includes a stable error code you can branch on.

403account.capability_requiredForbidden
When it happens

The signed-in user's administrator roles do not grant the capability this endpoint requires.

Remediation

Ask an account administrator to grant a role carrying the capability named in the Authentication section, then retry.

Returned object

Request
curl -X PATCH "https://auth.canopy-io.com/portal/v1/accounts/{accountSlug}/applications/{appSlug}" \
  -H "if-match: value" \
  -H "Authorization: Bearer $CANOPY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string"
  }'
Response
{
  "data": {
    "id": "string",
    "account_id": "string",
    "name": "string",
    "slug": "string",
    "default_environment_id": "string",
    "settings": {},
    "version": 0,
    "created_at": "2026-04-20T12:00:00.000Z",
    "updated_at": "2026-04-20T12:00:00.000Z"
  }
}
Related endpoints
GETGet the current Application
DELETEDelete an Application
PUTSet the App's default Environment
GETGet the admin's resume-state for this Application
PUTUpdate the admin's resume-state for this Application
Was this page helpful?

Tell us how we can improve this guide.