Create Access Profile Grant
Attach an access profile to a workflow, app resource role, or form. One grant per profile-resource pair.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The ID of the access profile the grant attaches to.
Exactly one of the resource id fields below must be set; the field carries the resource kind. The resource must belong to the profile's team. Knowledge-item grants are read-only on this API (returned by the Get/List endpoints): knowledge gating is managed in-app, where grants inherit through the folder tree.
The ID of the workflow to grant.
The ID of the app resource role to grant. A role belongs to at most one profile: granting it here removes it from any profile that currently holds it.
The ID of the form to add this profile's users to the audience of.
Response
Success
The kind of resource an access profile grant attaches to. One access-profile-to-resource attachment. For workflows and app resource roles the profile grants access; for forms it narrows the audience (a form with no grants is open to anyone in the org). Exactly one of the resource id fields is set; the field itself carries the resource kind, so cross-team tooling can resolve each id against its own resource type.

