Maytech Public Documentation
Space shortcuts
Skip to end of metadata
Go to start of metadata

 

Resource Information

Response formatsjson
Response code 200
Requires authenticationAPI key header 'X-Auth-Token'
HTTP MethodPOST


Parameters

Name

Type

Default Value

Description

name

required

string

-

file name

file_id

required

string

-

the ID of the folder which you would like to convert to a Project Folder

you can get the ID of the folder from Get /file/metadata

find more info on how to get file_id here

users_permissions:

required

list of json

-

users_permissions[0]{'user_id'}

user_idstring-

the ID of the user you want to create a Project Folder with

Get /user

operationsnumber-List: 0
List and read: 2
Read and write: 31
Full and re-share : 63
notify (user permissions)booleanfalse

true or false

select true in order to subscribe user(s) to upload notifications

notifybooleanfalse

true or false

select true to notify user(s) about the Project Folder creation



Example Request URL

Request Payload

{
  "name": "PF-test",
  "file_id": "8e125cbc-00a6-4ebb-b054-57839503527d",
  "users_permissions": [
    {
      "user_id": "0a4341a6-845c-4f14-8b62-a98b46ae8e25",
      "operations": 0,
      "notify": true
    }
  ],
  "notify": false
}

 

Response Body

{
  "created": 1537447530,
  "id": "e6e2a8e0-4721-489b-ae8a-c3184bb6f700",
  "name": "PF-test"
}

 

 

  • No labels