Contract Intelligence
Change a member's role
Set a vault member's role.
A vault always keeps at least one owner, so demoting the last one returns 400. Promote another member first, then demote.
The person has to hold a role in the vault already. To grant a first role, use POST /vaults/{id}/members.
Requires the owner role in the vault and the organization-level permission to manage vaults.
Requires a user-scoped API key (u:gcai_...). A vault is shared with named people, so an organization-scoped key has no identity to resolve vault access with.
patch/vaults/{id}/members/{userId}
Request
- Base URLhttps://app.gc.ai/api/external/v1
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring uuid required
The vault ID
userIdinteger required
GC AI user ID of the member, as user_id from GET /vaults/{id}/members.
Request body
Response
The updated vault member
Changes
No recorded changes to this operation across all 1 revision of this API.