Document being a file or folder. A file being a single unit of storage that has a name and can be uploaded or downloaded. A folder holds one or more files, and a folder can be empty until it is filled. A folder can also contain other folders, and there can be many levels of folders within folders
/
Update a file or folder's...
Elevate Document API (1.0)
- Document - a file or folder. A file being a single unit of storage that has a name and can be uploaded or uploaded. A folder holds one or more files, and a folder can be empty until it is filled. A folder can also contain other folders, and there can be many levels of folders within folders
Download OpenAPI description
Languages
Servers
https://rest.elevatebilling.com/v1
Query
Results to return per page
Example: pageSize=100
Comma-delimited list of the fields to sort by - defaults to ascending order, suffix :desc to change
Example: sort=id,name | name:desc
Comma-delimited list of the field(s) to return if only a subset is required
Example: fields=id,name
Filter by folder id, e.g. folder ABC with id 456, omitting this implies the root folder
Example: parentDocumentId=0
- https://rest.elevatebilling.com/v1/documents
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://rest.elevatebilling.com/v1/documents?page=1&pageSize=100&sort=id%2Cname+%7C+name%3Adesc&fields=id%2Cname&level=CUSTOMER&levelId=0&parentDocumentId=0&tags=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&name=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&recursive=true+%2C+false' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'OK
File of folder name
Example: "/helloworld.doc"
Owner of document, the person who uploaded the file or created the folder
Example: "Tommy Tynan"
Parent folder name, might be missing for root
Example: "/folder1/folder2/"
Zero or more tags associated with the file or folder. Might be 'Star' or 'Private' or even 'Deleted'
Response
application/json
[ { "id": 1, "parentDocumentId": 1, "levelId": 1, "level": "CUSTOMER", "type": "FILE", "name": "/helloworld.doc", "owner": "Tommy Tynan", "ownerUserId": 1, "sizeInKb": 1, "path": "/folder1/folder2/", "uploadDateTime": "2019-08-24T14:15:22Z", "tags": [ … ] } ]
- https://rest.elevatebilling.com/v1/documents
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X HEAD \
'https://rest.elevatebilling.com/v1/documents?level=CUSTOMER&levelId=0&parentDocumentId=0&tags=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&name=xyz+%7C+in%3Ax%2Cy+%7C+like%3Axyz&recursive=true+%2C+false' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'- https://rest.elevatebilling.com/v1/documents
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://rest.elevatebilling.com/v1/documents \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: multipart/form-data' \
-F fileContent=null \
-F 'upload[parentDocumentId]=1' \
-F 'upload[levelId]=1' \
-F 'upload[level]=CUSTOMER' \
-F 'upload[type]=FILE' \
-F 'upload[name]=/helloworld.doc' \
-F 'upload[tags][0][name]=string'Response
application/json
{ "id": 1, "parentDocumentId": 1, "levelId": 1, "level": "CUSTOMER", "type": "FILE", "name": "/helloworld.doc", "owner": "Tommy Tynan", "ownerUserId": 1, "sizeInKb": 1, "path": "/folder1/folder2/", "uploadDateTime": "2019-08-24T14:15:22Z", "tags": [ { … } ] }
- https://rest.elevatebilling.com/v1/documents/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://rest.elevatebilling.com/v1/documents/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
{ "id": 1, "parentDocumentId": 1, "levelId": 1, "level": "CUSTOMER", "type": "FILE", "name": "/helloworld.doc", "owner": "Tommy Tynan", "ownerUserId": 1, "sizeInKb": 1, "path": "/folder1/folder2/", "uploadDateTime": "2019-08-24T14:15:22Z", "tags": [ { … } ] }
Bodyapplication/json-patch+jsonrequired Array [ ]
A set of JSONPatch operations to be performed
The JSON Patch operation to be performed
Enum"add""remove""replace""move""copy""test"
- https://rest.elevatebilling.com/v1/documents/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://rest.elevatebilling.com/v1/documents/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json-patch+json' \
-d '[
{
"op": "replace",
"path": "/name",
"value": "MyFile.txt"
}
]'Response
application/json
{ "id": 1, "parentDocumentId": 1, "levelId": 1, "level": "CUSTOMER", "type": "FILE", "name": "/helloworld.doc", "owner": "Tommy Tynan", "ownerUserId": 1, "sizeInKb": 1, "path": "/folder1/folder2/", "uploadDateTime": "2019-08-24T14:15:22Z", "tags": [ { … } ] }
- https://rest.elevatebilling.com/v1/document-contents/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://rest.elevatebilling.com/v1/document-contents/1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'