Review an installation request
Only an Organization owner can approve or decline the displayed request. Returns Conflict if it changed. Declining an update preserves current access; declining a new installation removes it. The response describes the reviewed installation.
bearerAuthAuthorizationBearer <token>installation_id*stringapplication/json- body
Approve or decline the exact request shown to an Organization owner. A changed request returns Conflict and must be reviewed again. Declining an update preserves the existing approval; declining a new installation removes the request.
approve*booleanrequested*Success
application/json- response
An Application installed in one Organization, where it acts as its own identity. requested is the latest request. approved is what an Organization owner approved, and it is the only grant that Spiral enforces. A request for more access takes effect only when an owner approves it.
applicationId*stringapproved?|nullid*stringorganizationId*stringrequested*status*apps.InstallationStatus"requested""active""suspended"curl -X POST 'https://api.spiraldb.dev/api/apps/installations/string/review' \ -H 'Content-Type: application/json' \ -d '{ "approve": true, "requested": { "projects": { "all": true, "projectIds": [ "string" ] }, "scopes": [ "string" ] }}'{ "applicationId": "string", "approved": { "projects": { "all": true, "projectIds": [ "string" ] }, "scopes": [ "string" ] }, "id": "string", "organizationId": "string", "requested": { "projects": { "all": true, "projectIds": [ "string" ] }, "scopes": [ "string" ] }, "status": "requested"}