Version 1.0
Connector Overview: This page documents all 11 actions for the Sdriveconnector v1.0.
Misc (11)
POST 1) Initialize Upload
/apexrest/cg/SDrive/v2/upload
Initialize an upload session by specifying the object, file type, and policy map for the file to be uploaded.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
The response format expected from the API (e.g. application/json). |
Options (3)
|
Option Name |
Description |
|---|---|
|
|
The Salesforce record ID that the file will be associated with. |
|
|
The MIME type or file extension of the file being uploaded. |
|
|
A JSON map of security policies to apply to the uploaded file. |
PUT 3) Complete Upload
/apexrest/cg/SDrive/v2/upload
Complete an upload session that was previously initialized, finalizing the file transfer.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
The response format expected from the API (e.g. application/json). |
POST Create Account
/data/v51.0/sobjects/Account
Create a new Account record in Salesforce with the provided name.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
The response format expected from the API (e.g. application/json). |
Options (1)
|
Option Name |
Description |
|---|---|
|
|
The name to assign to the new Account. |
POST Create Folder as S3Object
/data/v51.0/sobjects/cg__S3Object__c
Create a new S3Object record in Salesforce, representing a folder or file placeholder, with optional metadata fields.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
The response format expected from the API (e.g. application/json). |
Options (7)
|
Option Name |
Description |
|---|---|
|
|
The display name of the file or folder. |
|
|
Indicates whether the record is a work in progress. |
|
|
The MIME type of the file content. |
|
|
Whether this record represents the latest version of the file. |
|
|
The current lock state of the file (e.g., locked, unlocked). |
|
|
The ID of the user who has checked out the file. |
|
|
The size of the file in bytes. |
POST Create Folder on Account
/data/v51.0/sobjects/cg__AccountFile__c
Create a new AccountFile record linking a file or folder to an Account, with optional metadata.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
The response format expected from the API (e.g. application/json). |
Options (8)
|
Option Name |
Description |
|---|---|
|
|
The ID of the Account to associate with the file record. |
|
|
The display name of the file or folder. |
|
|
Indicates whether the record is a work in progress. |
|
|
The MIME type of the file content. |
|
|
Whether this record represents the latest version of the file. |
|
|
The current lock state of the file. |
|
|
The ID of the user who has checked out the file. |
|
|
The size of the file in bytes. |
DELETE DELETE Files
/
Delete one or more file objects by specifying their object name and IDs.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
The API name of the file object type to delete (e.g., cg__S3Object__c). |
|
|
A comma-separated list of record IDs to delete. |
|
|
The response format expected from the API (e.g. application/json). |
GET GET Files
/apexrest/cg/SDrive/v2/files
Retrieve a list of files matching the provided search query.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
The search term or query string to filter files. |
|
|
The response format expected from the API (e.g. application/json). |
GET Get File Objects To Parents Map
/apexrest/cg/SDrive/v2/fileObjects
Get a mapping from file objects to their parent objects, filtered by object name, parent ID, or folder IDs.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
The API name of the file object type to include in the map. |
|
|
The ID of a parent object to restrict the results to. |
|
|
A comma-separated list of folder record IDs to include. |
|
|
The response format expected from the API (e.g. application/json). |
GET Get Parents To File Objects Map
/apexrest/cg/SDrive/v2/parentObjects
Get a mapping from parent objects to their associated file objects.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
The response format expected from the API (e.g. application/json). |
POST POST Files
/apexrest/cg/SDrive/v2/files
Upload or create new file records and their associated data.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
The response format expected from the API (e.g. application/json). |
PUT PUT Files
/apexrest/cg/SDrive/v2/files
Update existing file records with new data.
Parameters
|
Parameter Name |
Description |
|---|---|
|
|
The content type of the request payload sent to the API (e.g. application/json). |
|
|
Additional HTTP header name/value pairs to include in the request. |
|
|
The response format expected from the API (e.g. application/json). |