Update upload visibility

http
PUT /projects/{project_reference}/uploads/visibility/{upload_path}

Set an upload's or folder's visibility to project, public or private. Requires project.uploads.admin.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
upload_pathpathYesUpload or folder-prefix path whose visibility setting is created or updated. Requires path administration.

Request body

FieldTypeRequiredDescription
visibilitystringYesVisibility setting to create or update. Requires path administration; public visibility follows the paid-project policy. project means project members; public means anyone; private means granted users only.

Responses

StatusDescription
200Visibility set
400Invalid URL encoding in path
401Authentication is required
402Public visibility is not available on the project plan
403The caller lacks access to the upload or path
404Project or upload path not found
500Server error