SDK reference
Drive
GET/
My Drive, the shared drives the caller belongs to (every one, to manage, for org admins) and storage use.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/drives' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Creates a shared drive; the caller becomes its manager. Not in personal spaces; not for viewers.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/drives' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example"
}'GET/
A drive with its members (shared drives) and whether the caller can manage them.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/drives/{driveId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Renames a shared drive or changes its description (managers, and org owners and admins).
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/drives/{driveId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"description": "example"
}'DELETE/
Deletes an empty shared drive (its trash too must be empty).
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/drives/{driveId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Adds a person or team to a shared drive, or changes their role (viewer, commenter, editor, manager). A drive always keeps a manager who is a person.
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/drives/{driveId}/members/{principalId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"role": "viewer"
}'DELETE/
Removes a member (anyone may remove themselves).
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/drives/{driveId}/members/{principalId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Storage the space uses (every version, the trash included) and its limit, in bytes.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/usage' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A person to share with, by exact email address: an org member here, any account for personal files.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/people?email=person%40example.com' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Personal spaces: the owner's log of every change and access (who opened, downloaded or listed what, links included).
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/log' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A file or folder with its path (from the highest folder you can open), your role and what it allows, its shares (for editors) and its link setting. Photo details lose location and camera for people who only view, when the owner removes them.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/{itemId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Renames an item (names are unique per folder, ignoring case) or sets its description. Editors.
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/{itemId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"description": "example"
}'GET/
A folder's contents, folders first, sorted by name, modified or size (order), in pages of up to 1,000 (cursor).
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/{itemId}/children' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A one-hour link to the file's bytes (inline=1 to show it in the browser; versionId for an earlier version, editors only; transcode=1 with inline=1: a video's preview transcode, pending while it's made).
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/{itemId}/file' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A file's versions, newest first, with who uploaded each; canManage for editors.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/{itemId}/versions' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Makes an earlier version current again as a new version (a copy in the bucket; counts against storage). Editors.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/{itemId}/versions/{versionId}/restore' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Deletes an earlier version (never the current one). Editors.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/{itemId}/versions/{versionId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
What happened to an item (and, for folders, to what's in them), newest first, a year back.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/{itemId}/activity' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Comments on a file or folder, oldest first; canComment for commenters and editors.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/{itemId}/comments' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Adds a comment (up to 4,000 characters). Commenters and editors.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/{itemId}/comments' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"body": "example"
}'DELETE/
Deletes a comment: its author, or an editor.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/{itemId}/comments/{commentId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Link sharing and photo details: scope restricted, org or anyone; password null removes it; rotate makes a new link.
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/{itemId}/link' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"scope": "restricted"
}'POST/
Gives a My Drive item (org spaces) to another member: it moves to the top of their My Drive and you keep editor access. Owners.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/{itemId}/transfer' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"userId": "<userId>"
}'POST/
Creates a folder (onConflict: fail, the default, or rename for a numbered name). Editors of the parent.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/folders' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"parentId": "<parentId>",
"name": "Example"
}'POST/
Folder uploads: makes each relative path's folders (a, a/b) under parentId, reusing existing ones.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/folders/paths' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"parentId": "<parentId>",
"paths": [
"example"
]
}'POST/
Moves items into a folder (up to 500). Between drives (everything inside goes too, at most 2,000 items) only for My Drive's owner or the source drive's managers.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/move' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"itemIds": [
"example"
],
"parentId": "<parentId>"
}'POST/
Copies files (not folders) into a folder, Copy of … next to the original by default (server-side, up to 20 GB each; counts against storage).
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/copy' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"itemIds": [
"example"
]
}'POST/
Moves items (with everything in them) to their drive's trash; deleted forever after 30 days. Editors.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/trash' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"itemIds": [
"example"
]
}'POST/
Puts trashed items back where they were (else at the top of their drive), with a numbered name if the name was taken meanwhile.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/restore' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"itemIds": [
"example"
]
}'POST/
Deletes trashed items forever (owner or managers). Large folders finish in the background (done: false).
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/delete' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"itemIds": [
"example"
]
}'POST/
Stars or unstars items for the caller (starred).
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/items/star' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"itemIds": [
"example"
],
"starred": true
}'GET/
A drive's trash (My Drive by default, or driveId): items trashed there, newest first, with canEmpty for its owner or managers.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/trash' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Deletes everything in a drive's trash forever (My Drive by default). Owner or managers.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/trash/empty' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"driveId": "<driveId>"
}'GET/
Files you opened or changed in the last 60 days, newest first.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/recent' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Your starred items you can still open.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/starred' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Items you can open whose names contain every word of q, optionally by type, owner (me, others or a person's id), modifiedAfter/modifiedBefore (ms) or driveId. Up to 50,000 items are searched; truncated says when more weren't.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/search' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Starts an upload: answers the part size and links for the first parts (PUT each part, then complete).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/uploads' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"size": 1
}'POST/
Links (an hour each) for more parts of an upload, up to 100 at a time.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/uploads/{uploadId}/parts' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"partNumbers": [
1
]
}'GET/
Where an upload stands, with the parts already stored, to resume it.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/uploads/{uploadId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Finishes an upload once every part has arrived: checks the size, counts it against storage (413 when it doesn't fit) and records the file or its new version.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/uploads/{uploadId}/complete' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Cancels an upload and discards its parts.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/uploads/{uploadId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A ZIP of files and folders, made in the background; ask for it until status is ready, then download url.
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/archives' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"itemIds": [
"example"
]
}'GET/
A ZIP's status (queued, building, ready, failed) and, when ready, a one-hour download link; left adds up what its Word, Excel and PowerPoint files changed or left out.
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/drive/archives/{archiveId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
My Drive, the shared drives the caller belongs to (every one, to manage, for org admins) and storage use.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/drive/drives' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Creates a shared drive; the caller becomes its manager. Not in personal spaces; not for viewers.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/drive/drives' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example"
}'GET/
A drive with its members (shared drives) and whether the caller can manage them.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/drive/drives/{driveId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Renames a shared drive or changes its description (managers, and org owners and admins).
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/me/drive/drives/{driveId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"description": "example"
}'DELETE/
Deletes an empty shared drive (its trash too must be empty).
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/me/drive/drives/{driveId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Adds a person or team to a shared drive, or changes their role (viewer, commenter, editor, manager). A drive always keeps a manager who is a person.
curl -X PUT 'https://api.cactive.com.au/v1/me/drive/drives/{driveId}/members/{principalId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"role": "viewer"
}'DELETE/
Removes a member (anyone may remove themselves).
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/me/drive/drives/{driveId}/members/{principalId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Storage the space uses (every version, the trash included) and its limit, in bytes.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/drive/usage' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A person to share with, by exact email address: an org member here, any account for personal files.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/drive/people?email=person%40example.com' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Personal spaces: the owner's log of every change and access (who opened, downloaded or listed what, links included).
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/drive/log' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A file or folder with its path (from the highest folder you can open), your role and what it allows, its shares (for editors) and its link setting. Photo details lose location and camera for people who only view, when the owner removes them.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/drive/items/{itemId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Renames an item (names are unique per folder, ignoring case) or sets its description. Editors.
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/me/drive/items/{itemId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"description": "example"
}'GET/
A folder's contents, folders first, sorted by name, modified or size (order), in pages of up to 1,000 (cursor).
curl 'https://api.cactive.com.au/v1/me/drive/items/{itemId}/children' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A one-hour link to the file's bytes (inline=1 to show it in the browser; versionId for an earlier version, editors only; transcode=1 with inline=1: a video's preview transcode, pending while it's made).
curl 'https://api.cactive.com.au/v1/me/drive/items/{itemId}/file' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A file's versions, newest first, with who uploaded each; canManage for editors.
curl 'https://api.cactive.com.au/v1/me/drive/items/{itemId}/versions' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Makes an earlier version current again as a new version (a copy in the bucket; counts against storage). Editors.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/drive/items/{itemId}/versions/{versionId}/restore' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Deletes an earlier version (never the current one). Editors.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/me/drive/items/{itemId}/versions/{versionId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
What happened to an item (and, for folders, to what's in them), newest first, a year back.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/drive/items/{itemId}/activity' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Comments on a file or folder, oldest first; canComment for commenters and editors.
curl 'https://api.cactive.com.au/v1/me/drive/items/{itemId}/comments' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Adds a comment (up to 4,000 characters). Commenters and editors.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/drive/items/{itemId}/comments' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"body": "example"
}'DELETE/
Deletes a comment: its author, or an editor.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/me/drive/items/{itemId}/comments/{commentId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Link sharing and photo details: scope restricted, org or anyone; password null removes it; rotate makes a new link.
curl -X PUT 'https://api.cactive.com.au/v1/me/drive/items/{itemId}/link' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"scope": "restricted"
}'POST/
Gives a My Drive item (org spaces) to another member: it moves to the top of their My Drive and you keep editor access. Owners.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/drive/items/{itemId}/transfer' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"userId": "<userId>"
}'POST/
Creates a folder (onConflict: fail, the default, or rename for a numbered name). Editors of the parent.
curl -X POST 'https://api.cactive.com.au/v1/me/drive/folders' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"parentId": "<parentId>",
"name": "Example"
}'POST/
Folder uploads: makes each relative path's folders (a, a/b) under parentId, reusing existing ones.
curl -X POST 'https://api.cactive.com.au/v1/me/drive/folders/paths' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"parentId": "<parentId>",
"paths": [
"example"
]
}'POST/
Moves items into a folder (up to 500). Between drives (everything inside goes too, at most 2,000 items) only for My Drive's owner or the source drive's managers.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/drive/items/move' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"itemIds": [
"example"
],
"parentId": "<parentId>"
}'POST/
Copies files (not folders) into a folder, Copy of … next to the original by default (server-side, up to 20 GB each; counts against storage).
curl -X POST 'https://api.cactive.com.au/v1/me/drive/items/copy' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"itemIds": [
"example"
]
}'POST/
Moves items (with everything in them) to their drive's trash; deleted forever after 30 days. Editors.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/drive/items/trash' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"itemIds": [
"example"
]
}'POST/
Puts trashed items back where they were (else at the top of their drive), with a numbered name if the name was taken meanwhile.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/drive/items/restore' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"itemIds": [
"example"
]
}'POST/
Deletes trashed items forever (owner or managers). Large folders finish in the background (done: false).
curl -X POST 'https://api.cactive.com.au/v1/me/drive/items/delete' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"itemIds": [
"example"
]
}'POST/
Stars or unstars items for the caller (starred).
curl -X POST 'https://api.cactive.com.au/v1/me/drive/items/star' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"itemIds": [
"example"
],
"starred": true
}'GET/
A drive's trash (My Drive by default, or driveId): items trashed there, newest first, with canEmpty for its owner or managers.
curl 'https://api.cactive.com.au/v1/me/drive/trash' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Deletes everything in a drive's trash forever (My Drive by default). Owner or managers.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/drive/trash/empty' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"driveId": "<driveId>"
}'GET/
Files you opened or changed in the last 60 days, newest first.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/drive/recent' \
-H "Authorization: Bearer $CACTIVE_TOKEN"curl 'https://api.cactive.com.au/v1/me/drive/starred' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Items you can open whose names contain every word of q, optionally by type, owner (me, others or a person's id), modifiedAfter/modifiedBefore (ms) or driveId. Up to 50,000 items are searched; truncated says when more weren't.
curl 'https://api.cactive.com.au/v1/me/drive/search' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Starts an upload: answers the part size and links for the first parts (PUT each part, then complete).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/drive/uploads' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"name": "Example",
"size": 1
}'POST/
Links (an hour each) for more parts of an upload, up to 100 at a time.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/drive/uploads/{uploadId}/parts' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"partNumbers": [
1
]
}'GET/
Where an upload stands, with the parts already stored, to resume it.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/drive/uploads/{uploadId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Finishes an upload once every part has arrived: checks the size, counts it against storage (413 when it doesn't fit) and records the file or its new version.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/drive/uploads/{uploadId}/complete' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Cancels an upload and discards its parts.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/me/drive/uploads/{uploadId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A ZIP of files and folders, made in the background; ask for it until status is ready, then download url.
curl -X POST 'https://api.cactive.com.au/v1/me/drive/archives' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"itemIds": [
"example"
]
}'GET/
A ZIP's status (queued, building, ready, failed) and, when ready, a one-hour download link; left adds up what its Word, Excel and PowerPoint files changed or left out.
curl 'https://api.cactive.com.au/v1/me/drive/archives/{archiveId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
List signing requests you sent
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/signatures' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
List requests waiting for your signature
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/signatures/to-sign' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A file's signing requests
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/signatures/files/{itemId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/signatures' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"itemId": "<itemId>"
}'GET/
Get a signing request
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/signatures/{requestId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PATCH/
Change a draft signing request
Parameters and answerscurl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/signatures/{requestId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"title": "Example",
"message": "example",
"signers": [
{
"name": "Example",
"email": "person@example.com",
"order": 1
}
]
}'POST/
Send a signing request
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/signatures/{requestId}/send' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Remind signers
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/signatures/{requestId}/remind' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Cancel a signing request
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/signatures/{requestId}/void' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"reason": "example"
}'DELETE/
Delete a draft signing request
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/signatures/{requestId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Open a request to sign
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/signatures/{requestId}/signing' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Sign a request
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/signatures/{requestId}/sign' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"values": [
{
"fieldId": "<fieldId>"
}
]
}'POST/
Decline a request
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/signatures/{requestId}/decline' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"reason": "example"
}'