# deleteUploadGrant

```graphql
mutation DeleteUploadGrant($input: DeleteUploadGrantInput!) {
  deleteUploadGrant(input: $input) {
    ok
  }
}
```

Revoke one user's grant on an upload or folder. Requires project.uploads.admin; API keys also need delete scope.

## Arguments

| Name                     | Type                    | Required | Description                                                                                                               |
| ------------------------ | ----------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------- |
| `input`                  | DeleteUploadGrantInput! | Yes      |                                                                                                                           |
| `input.projectReference` | String!                 | Yes      | Project UUID, slug or configured domain.                                                                                  |
| `input.uploadPath`       | String!                 | Yes      | Upload UUID for grants on that upload, or an upload path or folder prefix resolved to the folder setting that governs it. |
| `input.userId`           | ID!                     | Yes      | UUID of the user whose grant is revoked.                                                                                  |

## Variables

```json
{
  "input": {
    "projectReference": "string",
    "uploadPath": "string",
    "userId": "string"
  }
}
```

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The UploadAcknowledgement! in data.deleteUploadGrant. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation DeleteUploadGrant($input: DeleteUploadGrantInput!) {\n  deleteUploadGrant(input: $input) {\n    ok\n  }\n}",
  "variables": {
    "input": {
      "projectReference": "string",
      "uploadPath": "string",
      "userId": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "deleteUploadGrant": {
      "ok": false
    }
  }
}
```
