Skip to main content
POST
/
file-entries
/
{entryId}
/
share
curl -X POST https://app.drime.cloud/api/v1/file-entries/123456/share \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "emails": ["colleague@example.com", "team@example.com"],
    "permissions": ["view", "download"]
  }'
{
  "status": "success",
  "users": [
    {
      "id": 12345,
      "email": "colleague@example.com",
      "display_name": "John Doe"
    }
  ]
}

Overview

Shares a file or folder with specified users by email. You can grant different permission levels to collaborators.

Path Parameters

entryId
integer
required
ID of the file or folder to share

Request Body

emails
array
required
Array of email addresses to share with
permissions
array
required
Permissions to grant
  • view - Can view the file/folder
  • edit - Can modify the file/folder
  • download - Can download the file

Response

users
array
Array of users the entry is now shared with
status
string
Request status (success)
curl -X POST https://app.drime.cloud/api/v1/file-entries/123456/share \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "emails": ["colleague@example.com", "team@example.com"],
    "permissions": ["view", "download"]
  }'
{
  "status": "success",
  "users": [
    {
      "id": 12345,
      "email": "colleague@example.com",
      "display_name": "John Doe"
    }
  ]
}