grantAppReviewPermission
Requires permission platform:access:all.
Let a Growmax platform staff user review public apps (grants platform:apps:review). Platform owner only; audit-logged.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation GrantAppReviewPermission($userId: ID!) {
grantAppReviewPermission(userId: $userId) {
firstName
lastName
canReview
email
hasReviewGrant
isPlatformStaff
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation GrantAppReviewPermission($userId: ID!) {\n grantAppReviewPermission(userId: $userId) {\n firstName\n lastName\n canReview\n email\n hasReviewGrant\n isPlatformStaff\n }\n}",
"variables": {
"userId": "id"
}
}
EOF
Variables:
{
"userId": "id"
}
Response:
{
"data": {
"grantAppReviewPermission": {
"firstName": "string",
"lastName": "string",
"canReview": true,
"email": "string",
"hasReviewGrant": true,
"isPlatformStaff": true
}
}
}
grantAppReviewPermission(
userId: ID!
): AppReviewer!
Arguments
grantAppReviewPermission.userId ● ID! non-null scalar
The staff user.
Type
AppReviewer object
A Growmax staff user on the platform owner's Reviewers screen, and whether they may review public apps.