Update upload grant

http
PUT /projects/{project_reference}/uploads/grants/{upload_path}/{user_id}

Grant one user read, write or admin access to an upload or folder, or change that grant, and leave the other grants unchanged. Requires project.uploads.admin.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
upload_pathpathYesUpload UUID or double-URL-encoded project-relative upload path or applicable folder prefix on which the grant is stored. Requires path administration.
user_idpathYesUUID of the user the grant is for.

Request body

FieldTypeRequiredDescription
permissionstringAccess to give: read (default), write or admin.

Responses

StatusDescription
200Grant stored.
400Invalid recipient UUID, a recipient that is not a user, an invalid permission or path encoding
401Authentication is required
403Admin access required to manage grants
404Project not found, or no upload or folder setting governs the path
500Server error
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.