Update upload visibility

updateUploadVisibility(input: UpdateUploadVisibilityInput!): VisibilitySetting!

Requires project.uploads.admin.

Arguments

ArgumentTypeRequired
inputUpdateUploadVisibilityInput!Yes

Input fields

input

UpdateUploadVisibilityInput

FieldTypeRequiredDescription
projectReferenceString!YesProject UUID, slug or configured domain.
uploadPathString!YesProject-relative upload path or folder prefix. An existing folder also matches without its trailing slash.
visibilityUploadFolderVisibility!YesVisibility to store for the path; public follows the paid-project policy.

Response

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

FieldTypeDescription
pathString!Resolved raw project-relative file path or folder prefix, including its trailing slash.
visibilityUploadFolderVisibility!Applied visibility: public, project or private.

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

Example

graphql
mutation UpdateUploadVisibility($input: UpdateUploadVisibilityInput!) {
  updateUploadVisibility(input: $input) {
    path
    visibility
  }
}
json
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001",
    "uploadPath": "example",
    "visibility": "project"
  }
}