Update upload grant

updateUploadGrant(input: UpdateUploadGrantInput!): UploadGrant!

Requires project.uploads.admin.

Arguments

ArgumentTypeRequired
inputUpdateUploadGrantInput!Yes

Input fields

input

UpdateUploadGrantInput

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 the grant is for.
permissionUploadPathGrantPermissionNoAccess to give: read (default), write or admin. Default: "read".

Response

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

FieldTypeDescription
userIdString!Recipient user UUID.
permissionUploadPathGrantPermission!Access granted to the recipient.
createdAtString!Stored grant creation timestamp.

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

Example

graphql
mutation UpdateUploadGrant($input: UpdateUploadGrantInput!) {
  updateUploadGrant(input: $input) {
    createdAt
    permission
    userId
  }
}
json
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001",
    "uploadPath": "example",
    "userId": "00000000-0000-4000-8000-000000000001"
  }
}