Assign Users & Groups to Roles on a Single Document

POST https://{{vaultDNS}}/api/{{version}}/objects/documents/:{id}/roles

https://developer.veevavault.com/api/20.3/#assign-users-amp-groups-to-roles-on-a-single-document

Assign users and groups to roles on a single document or binder.

If you need to assign users and groups to roles on more than one document or binder, it is best practice to use the bulk API.

Request Body

[{"name"=>"role_name__v.users", "value"=>"", "datatype"=>"null"}, {"name"=>"role_name__v.groups", "value"=>"", "datatype"=>"null"}]

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Acceptstring
Content-Typestring