This endpoint is used to update specific customer details.
Request URL:
https://platformdev.exto360.com/node/api/v1/customers/63fd9757006ea26adc463df8
Request Header:
{
"Content-Type": "application/json",
"Authorization": "Bearer {token}"
}
Request Payload:
{ "name": "AB Customer", "contactname": "Akash", "contactnumber": "9876543210", "address": "Banglore", // other properties ... "enableGeoTagging": true, }
Response Payload:
{"message":"Customer details are updated successfully."}
This endpoint is used to save a specific record of an appropriate custom module as a draft before the record is created.
Request URL:
https://platformdev.exto360.com/node/api/v3/module-record/draft/shared-draft?moduleName=GIFTS
Request Header:
{
"Content-Type": "application/json", "Authorization": "Bearer {token}",
"x-project-id": "9mcTOaV"
}
Request Payload:
{
"workflowTemplateId": "644a628e285bb3ba19785d56",
"moduleData": {
"formData": {
"name": "gift 103"
},
"checklistData": [],
"subTableData": {
"VPVuZkj4VIWM": {
"records": [],
"deleted": []
}
},
"location": [
-73.97,
40.77
],
},
"formRefId": "sHjARWP",
"documentIds": [],
"space": {
"refID": "eyTgrS0",
"name": "Student"
}
}
Response Payload
{
"_id": "646e15b9bcd4ba4a1d3e58b6",
"generation": "GEN1",
"workflowId": null,
"workflowTemplateId": "644a628e285bb3ba19785d56",
"customFields": {
"name": "gift 103"
},
"checklist": [],
"space": {
"name": "Student",
"refID": "eyTgrS0"
},
"updatedLocation": [
-73.97,
40.79
],
"tenantID": "hRWwdiM",
"projectID": "9mcTOaV",
"workspaceRefId": null,
"createdBy": "priya",
"createdAt": "2023-05-24T13:48:41.148Z",
"recordNumber": "\"GIFTS\"/21"
}
This endpoint is used to save a specific record of an appropriate custom module as a draft after the record is created.
Request URL:
https://platformdev.exto360.com/node/api/v3/module-record/draft/646e15b9bcd4ba4a1d3e58
Request Header:
{
"Content-Type": "application/json", "Authorization": "Bearer {token}",
"x-project-id": "9mcTOaV"
}
Request Payload:
{
"workflowTemplateId": "644a628e285bb3ba19785d56",
"moduleData": {
"formData": {
"name": "gift 103"
},
"checklistData": [],
"subTableData": {
"VPVuZkj4VIWM": {
"records": []
}
},
"location": [
-73.97,
40.77
],
},
"documentIds": [],
"formRefId": "sHjARWP",
"space": {
"refID": "eyTgrS0",
"name": "Student"
}
}
Response Payload:
{
"_id": "646e15b9bcd4ba4a1d3e58b6",
"generation": "GEN1",
"workflowId": null,
"workflowTemplateId": "644a628e285bb3ba19785d56",
"customFields": {
"name": "gift 103"
},
"checklist": [],
"space": {
"name": "Student",
"refID": "eyTgrS0"
},
"updatedLocation": [
-73.97,
40.79
]
"tenantID": "hRWwdiM",
"projectID": "9mcTOaV",
"workspaceRefId": null,
"createdBy": "priya",
"createdAt": "2023-05-24T13:48:41.148Z",
"recordNumber": "\"GIFTS\"/21",
"updatedAt": "2023-05-24T14:03:33.476Z",
"updatedBy": "priya"
}
This endpoint is used to create a specific record of an appropriate custom module with the respective action.
Request URL:
https://platformdev.exto360.com/node/api/v3/workflow/create
Request Header:
{
"Content-Type": "application/json", "Authorization": "Bearer {token}",
"x-project-id": "9mcTOaV"
}
Request Payload:
{
"moduleRecord": {
"_id": "646e15b9bcd4ba4a1d3e58b6",
"formData": {
"name": "gift 103"
},
"subTableData": {
"VPVuZkj4VIWM": {
"records": []
}
},
"checklistData": []
"location": [
-73.97,
40.77
],
},
"templateId": "644a628e285bb3ba19785d56",
"actionName": "Submit",
"assignee": null,
"comment": {
"text": "S1",
"isPrivate": true
},
"documentIds": [],
"space": {
"name": "Student",
"refId": "eyTgrS0"
}
}
Response Payload:
{
"tenantID": "hRWwdiM",
"slug": "h2SjNEH",
"steps": [
{
"kind": "FORM",
"name": "Step 1",
"uid": "GQAUsvs",
// other properties ...
"completedLocation": [
-73.97,
40.77
]
},
{
"kind": "FORM",
"name": "Step 2",
"uid": "a_fEnUq",
// other properties ...
}
],
"status": "Under review",
"projectID": "9mcTOaV",
// other properties ...
}
This endpoint is used to create a specific record of an appropriate custom module with the respective actions like approve or return.
Request URL:
https://platformdev.exto360.com/node/api/v3/workflow/submit
Request Header:
{
"Content-Type": "application/json", "Authorization": "Bearer {token}",
"x-project-id": "9mcTOaV"
}
Request Payload:
{
"moduleRecord": {
"_id": "646e15b9bcd4ba4a1d3e58b6",
"formData": {},
"subTableData": {
"VPVuZkj4VIWM": {
"records": []
}
},
"checklistData": []
"location": [ -73.97, 50.77],
},
"workflowId": "646e23e8bcd4ba4a1d3e5913",
"currentStepName": "Step 2",
"actionName": "Approve",
"assignee": null,
"comment": {
"text": "Approve",
"isPrivate": true
},
"documentIds": [],
"space": {
"name": "Student",
"refId": "eyTgrS0"
}
}
Response Payload:
{
"tenantID": "hRWwdiM",
"slug": "h2SjNEH",
"steps": [
{
"kind": "FORM",
"name": "Step 1",
"uid": "GQAUsvs",
// other properties ...
// Only for the completion rule "majority should submit" and "everyone should submit," this property will be added in the final submission of the specific step.
"completedLocation": [ -73.97, 50.77],
},
{
"kind": "FORM",
"name": "Step 2",
"uid": "a_fEnUq"
// other properties ...
// This property will not appear if the step completion rule is set to 'anyone can submit.'
{
"submissions": [
{
"submittedAction": "Approve",
"submittedBy": "624c1f819935302c92dd0c2b",
"submittedAt": "2023-06-07T10:04:42.720Z",
"submittedLocation": [ -73.97, 50.77],
}
]
}
"completedLocation": [ -73.97, 50.77],
}
],
"status": "Approved",
"projectID": "9mcTOaV",
// other properties ...
}