Update query owners

UpdateAssessmentQueryPermissions sets the list of users who can access a private query. This endpoint replaces the current owners list with the provided one; to add a user without removing existing owners, include all current owners in the request.

The owners field controls which users (by user ID) can see a private query in addition to the query creator and Admin-role users.

put
Authorizations
AuthorizationstringRequired

Veza API key for authentication. Generate keys in Administration > API Keys.

Path parameters
idstringRequired
Body

Setting permission is a different request for better visibility into when permissions changed

idstringOptional
ownersstring[]Optional
Responses
chevron-right
200

OK

application/json
idstringOptionalDeprecated
put
/api/v1/assessments/queries/{id}:permissions

Sample request:

  • {id} (path) — string — ID of the query to update.

  • owners (body) — array of strings — User IDs to grant access. Replaces the current owners list.

Sample response:

A successful response returns the updated query object:

To remove all additional owners and restrict access to only the creator and Admins, send an empty array:

Last updated

Was this helpful?