Folder APIs
APIs for managing Spark folders.
Folders contain Spark services.
Bearer token can be accessed from the user menu.
Folder name.
myfoldernameFolder category. Must be a valid folder category. The category names are managed in Options Folder categories.
OthersFolder description.
My folder descriptionStatus of the folder. Design is the default value.
DesignExample: DesignImage file for cover image.
OK
POST /api/v1/product/create HTTP/1.1
Host: excel.myenvironmentname.coherent.global
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 121
{
"Name": "myfoldername",
"Category": "Others",
"Description": "My folder description",
"Status": "Design",
"CoverImage": "binary"
}OK
{
"message": null,
"data": {
"folderId": "66e9c8a9-335e-43b5-9353-39077d49d188",
"get_product_url": "https://excel.myenvironment.coherent.global/api/v1/product/GetProduct/folderstatus"
},
"errorCode": null,
"status": "Success"
}Returns folders that match the search filter.
If using an API key, the API key group must contain user groups that are also assigned to Spark.FolderList.json or Spark.AllEncompassingProxy.json.
Bearer token can be accessed from the user menu.
Page number of the list to get.
Number of records per page.
String defining the sort order
`-updated`OK
POST /api/v1/product/list HTTP/1.1
Host: excel.myenvironmentname.coherent.global
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 94
{
"page": 1,
"pageSize": 10,
"sort": "-updated",
"search": [
{
"field": "name",
"value": "Simon Testing"
}
]
}OK
{
"count": 1,
"next": null,
"previous": null,
"message": null,
"data": [
{
"id": "88018b91-6c91-4309-a70b-5bcacfc8a724",
"name": "myfolder",
"status": "Design",
"category": "Other",
"description": "myfolderdescription",
"coverImagePath": "41f7dd49-8582-4f00-945c-b49242a52b0d.jpeg",
"createdAt": "2020-12-18T02:04:03.610588Z",
"createdBy": "0ec91ce3-52d2-41df-abf8-60b038cd7670",
"lastModifiedDate": "2025-12-02T00:59:39.178648Z",
"isStarred": true,
"startDate": "2020-12-18T00:00:00Z",
"launchDate": "2021-03-18T00:00:00Z",
"totalServiceCount": 3
}
],
"errorCode": null,
"status": "Success"
}Get folder details.
Bearer token can be accessed from the user menu.
Folder associated with the API call.
myfoldernameNumber of services to include in the response.
5OK
GET /api/v1/product/getproduct/{folder} HTTP/1.1
Host: excel.myenvironmentname.coherent.global
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"message": null,
"data": {
"id": "7165e556-e149-4b37-a545-c62c84b35b1a",
"name": "Simple-Calculator",
"category": "Other",
"description": "CI-CD DEMO",
"coverImagePath": "443630e8-bc2f-45a2-9a46-58433f1241a6.jpg",
"createdAt": "2025-05-04T02:06:14.355639+00:00",
"isStarred": false,
"status": "Design",
"startDate": "2024-09-28T00:00:00Z",
"launchDate": "2024-12-28T00:00:00Z",
"calculationEngines": {
"count": 1,
"next": false,
"previous": null,
"message": null,
"data": [
{
"revision": "0.7.0",
"serviceName": "Formula",
"originalFileName": "Formula.xlsx",
"isStarred": false,
"serviceStatus": "active",
"versionId": "20827543-bdaf-44e1-bc7a-ac20a8431005",
"lastModifiedDate": "2025-05-04T02:06:22.656084Z",
"isLatestVersion": true,
"createdAt": "2025-05-04T02:06:22.656084Z",
"author": "service-account-client-credentials",
"size": 9,
"defaultEngineType": "neuron",
"tags": null,
"engineChains": [],
"effectiveStartDate": "2003-06-26T23:47:00Z",
"effectiveEndDate": "2003-07-26T23:47:00Z"
}
],
"errorCode": null,
"status": "Success"
},
"sections": [],
"lastModifiedDate": "2025-05-04T02:06:18.225895Z",
"createdBy": "service-account-client-credentials"
},
"errorCode": null,
"status": "Success"
}Update folder details including category or description.
Bearer token can be accessed from the user menu.
Folder id which can be found from List folders or Get folder.
9efb97d3-59b5-4ab1-b138-525797d58a91Folder category. Must be a valid folder category. The category names are managed in Options Folder categories.
Folder description.
trueOK
POST /api/v1/product/update/{folderId} HTTP/1.1
Host: excel.myenvironmentname.coherent.global
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 83
{
"category": "Critical Illness",
"name": "CI Partner PS",
"shouldTrackUserAction": true
}OK
{
"message": null,
"data": null,
"errorCode": null,
"status": "Success"
}Delete folder including all documents and services.
Bearer token can be accessed from the user menu.
Folder id which can be found from List folders or Get folder.
9efb97d3-59b5-4ab1-b138-525797d58a91OK
DELETE /api/v1/product/delete/{folderId} HTTP/1.1
Host: excel.myenvironmentname.coherent.global
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"message": null,
"data": null,
"errorCode": null,
"status": "Success"
}Last updated
