Skip to main content
POST
Assign Reviewers

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

access_review_id
string
required

The access review's ID, which GET /v1/access-reviews returns as id.

app_review_id
string
required

The app review's ID. An app review is one app within the access review that access_review_id names. GET /v1/access-reviews/{access_review_id}?expand=apps returns this ID as the id of an entry in apps.

Body

application/json
strategy
enum<string>
required

How each subject's reviewers are found: app-admin assigns the app's admins, permission-owner the owner of each subject's entitlement (entitlements reviews only), manager the manager of the person each account belongs to, and explicit every reviewer in reviewer_ids.

Available options:
app-admin,
permission-owner,
manager,
explicit
filters
Filter · object[]

Predicates a subject must all match to be selected, in the form GET .../subjects takes them; GET .../subject-filters lists the fields. With neither filters nor search, every subject in the app review is selected. An ids filter names at most 1000 subjects.

search
string | null

Substring match over the account's name and email.

reviewer_ids
string[] | null

Ids of the users and groups to assign to every selected subject, each an active user or group of your organization. Required when strategy is explicit, and refused otherwise.

Maximum array length: 1000
existing_assignees
enum<string>
default:skip

What happens to a subject that already has reviewers: skip leaves it alone and reports it in skipped[] as subject.already_assigned, add keeps its reviewers and adds the new ones, and replace swaps its reviewers for the new ones. A subject no reviewer is found for keeps the reviewers it had, whichever is chosen.

Available options:
skip,
add,
replace

Response

Successful Response

What a bulk action was asked to act on, and what it managed to act on.

matched_count
integer
required

Number of resources the selection resolved to.

applied_count
integer
required

Number of resources the action was applied to. Every other matched resource is named in skipped or errors.

skipped
ApiErrorField · object[]

Resources the action left as they were because the request asked it to, each naming the resource by its id in field and the reason in code. A skip is not a failure.

errors
ApiErrorField · object[]

Per-resource failures, each naming the resource it is about by its id in field. Empty when every matched resource was applied or skipped.