Vigilfield Docs
API referenceApps

`PATCH /apps/{id}` — update mutable fields. Role writes are gated by [`validate_app_role`] (no admin/owner). Status flip to `"inactive"` here doesn't cascade-revoke keys; that's `DELETE`'s job and the admin-UI distinction.

PATCH/apps/{id}

Path Parameters

id*string

App id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

PATCH /apps/{id} body. Every field optional — absent means unchanged. role cannot be moved to admin/owner (rejected at the handler).

Response Body

application/json

curl -X PATCH "https://example.com/apps/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "created_at": "string",  "description": "string",  "email": "string",  "id": "string",  "name": "string",  "owner_user_id": "string",  "published": true,  "required_permissions": [    "string"  ],  "role": null,  "status": null,  "team_ids": [    "string"  ],  "updated_at": "string"}