Skip to main content
PUT
/
projects
/
{project_reference}
/
uploads
/
grants
/
{path}
Set Grants
curl --request PUT \
  --url https://api.veryfront.com/projects/{project_reference}/uploads/grants/{path} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "grants": [
    {
      "user_id": "<string>",
      "permission": "read"
    }
  ]
}
'
{
  "data": [
    {
      "user_id": "<string>",
      "permission": "read",
      "created_at": "<string>"
    }
  ],
  "resolved_path": "<string>"
}

Authorizations

Authorization
string
header
required

Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.

Path Parameters

project_reference
string
required

Project ID or slug

path
string
required

URL-encoded path (folder prefix or file)

Body

application/json
grants
object[]
required

Response

Grants set

data
object[]
required
resolved_path
string
required