Skip to main content

Request access to file by managers

POST /api/v1/files/{fileId}/requestAccess/managers HTTP/1.1

Sends email to the file managers or cloud notification to the managers Android device with permission request.

  1. Path parameters
ParameterDescription
fileIdThe ID of the file
  1. Request body
{
"message": "text",
"fileManagers": [
{
"email": "email@email.com",
"locale": "US-us",
"firstName": "Jon"
}
]
}
  1. Example request
curl 'http://localhost:8080/api/v1/files/4198b347-4489-4bde-a06ca69626aedcf6/
requestAccess/managers' -i -X POST \
-H 'X-co-auth-token: d4df686556681a2e31243405cf859d9a' \
-H 'X-Tenant-ID: stub' \
-d ' {
"message": "text",
"fileManagers": [
{
"email": "email@email.com",
"locale": "US-us",
"firstName": "Jon"
}
]
} '
  1. Example response
HTTP/1.1 200 OK
X-co-request-id: 4e4f4c777477525a37664f5847595652