Delete upload grant

deleteUploadGrant(input: DeleteUploadGrantInput!): UploadAcknowledgement!

Requires project.uploads.admin; API keys also need delete scope.

Arguments

ArgumentTypeRequired
inputDeleteUploadGrantInput!Yes

Input fields

input

DeleteUploadGrantInput

FieldTypeRequiredDescription
projectReferenceString!YesProject UUID, slug or configured domain.
uploadPathString!YesUpload UUID for grants on that upload, or an upload path or folder prefix resolved to the folder setting that governs it.
userIdID!YesUUID of the user whose grant is revoked.

Response

Returns UploadAcknowledgement!. Open the type for its fields and nested types.

FieldTypeDescription
okBoolean!Always true.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation DeleteUploadGrant($input: DeleteUploadGrantInput!) {
  deleteUploadGrant(input: $input) {
    ok
  }
}
json
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001",
    "uploadPath": "example",
    "userId": "00000000-0000-4000-8000-000000000001"
  }
}