Skip to content

replaceFormGrants

PUT
/api/v1/data-sources/{id}/access/{userId}

Atomically replaces one user’s grants on the form with the supplied capabilities (submit, view_own, view_all, review, approve, manage), collapsing implied capabilities to a minimal set, in a single transaction with an audit entry. The form creator and global Owners cannot be edited here, and a manager cannot remove their own only management path. Requires the manage capability and CSRF.

Media typeapplication/json
object
capabilities
required
Array<string>
Examplegenerated
{
"capabilities": [
"example"
]
}

Updated access entries under data.entries

Manage capability required

Invalid capability, creator edit, or self-management removal