{
"status": false,
"code": 404,
"message": "Workflow not found"
}
{
"status": false,
"code": 500,
"message": "Internal server error"
}
Activity
Create Activity
Create a new Activity from a Workflow template. The system creates one parent task (taskType = activityMaster) plus one child task (taskType = activityChild) per Workflow step, in the order defined by the Workflow.
Process:
Validates that the referenced Workflow exists and belongs to your organization.
Creates the master task with the embedded Workflow reference.
Creates N child tasks sequentially based on workflow.steps. Each child task uses the flow and flowId of its corresponding Workflow step.
Links every child task to the master via parentId; the master tracks every child via its subId array, in Workflow-step order.
Aggregates the assignees from all child tasks onto the master.
Sets the master’s startTime to the earliest child start time and endTime to the latest child end time.
Notes:
The number of objects in tasks must equal the Workflow’s number of steps.
The master’s status / sub-status updates happen automatically as child tasks progress — not via this endpoint. To update fields after creation, use the standard Task endpoints with the master task’s _id.
{
"status": false,
"code": 404,
"message": "Workflow not found"
}
{
"status": false,
"code": 500,
"message": "Internal server error"
}
Authorizations
Authorization
string
header
required
Use a valid Bearer token to authenticate.
Body
application/json
workflowId
string
required
ID of the Workflow that defines the steps for this Activity. Must reference an existing Workflow in your organization.
Example:
"68f2198aef526585c30e16d2"
tasks
object[]
required
Array of step task objects. The array length must equal the Workflow's number of steps; the order of objects matches the order of workflow.steps. Each object carries the schedule, assignee, and Flow-specific data fields for one Workflow step.
Show child attributes
hubId
string
Optional hub ID where this Activity is executed. Inherited by all child tasks.
Example:
"68ff42815ed967adac0f7192"
Response
Activity created successfully. The response contains the master task object. workflow.steps is omitted from the response to reduce payload size — read the Workflow directly if you need the step definitions.
status
boolean
Example:
true
code
integer
Example:
201
message
string
Example:
"Activity created successfully"
data
object
The newly-created Activity master task. The shape follows the standard Task object with taskType = activityMaster.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"MileApp Documentation","colors":{"primary":"#02A8F3","light":"#02A8F3","dark":"#028FCF"},"logo":{"light":"https://mintcdn.com/mileapp-c1584fbc/bBZK2cRce9wqEBGj/logo/light.svg?fit=max\u0026auto=format\u0026n=bBZK2cRce9wqEBGj\u0026q=85\u0026s=b3a5907a2e6eb43ac79b6629b5f5f0b0","dark":"https://mintcdn.com/mileapp-c1584fbc/bBZK2cRce9wqEBGj/logo/dark.svg?fit=max\u0026auto=format\u0026n=bBZK2cRce9wqEBGj\u0026q=85\u0026s=b0bc198adb7dbc67afa7517c1c41fca5"},"favicon":"https://mintcdn.com/mileapp-c1584fbc/z_eULWsNLbEQ57MP/favicon.ico?fit=max\u0026auto=format\u0026n=z_eULWsNLbEQ57MP\u0026q=85\u0026s=7ccb099a834c3d61a247a0e0e7afcce0","api":{"playground":{"display":"interactive"},"mdx":{"auth":{"method":"bearer"}}},"navbar":{"links":[{"href":"https://paket.freshdesk.com/support/home","label":"Support"}]},"footer":{"socials":{"linkedin":"https://linkedin.com/company/mileapp"}},"search":{},"seo":{"metatags":{"robots":"noindex, nofollow"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://mile.app/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mileapp-c1584fbc","hasAudioNarration":false,"actualSubdomain":"mileapp-c1584fbc","customDomains":["docs.mileapp.dev"],"gitSource":{"type":"gitlab","owner":"paketid","repo":"mileapp-docs","projectId":76553900,"deployBranch":"development","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10c03b9ffae5051c404b33"},"feedback":{"thumbs":false},"entitlements":{},"buildId":"6b0fd3ba0b3657f3b25c2908:failure","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"default","tag":"Guides","count":223},{"language":"default","tag":"API Reference","count":202},{"language":"default","tag":"Task","count":104},{"language":"default","tag":"Flow","count":76},{"language":"default","tag":"Setting","count":61},{"language":"default","tag":"Automation","count":37},{"language":"default","tag":"Flow Builder","count":33},{"language":"default","tag":"Route Optimization","count":33},{"language":"default","tag":"Routing","count":28},{"language":"default","tag":"Overview","count":25}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"header>a:first-child img,nav>a:first-child img,a[href=\"/\"]>img,img[src*=\"/logo/\"]{width:150px!important;height:auto!important;max-width:150px!important}"}]}
{"page":{"pagePath":"api-reference/task/activity/create-activity","slug":"/api-reference/task/activity/create-activity","pageMetadata":{"title":"Create Activity","description":"Create a new Activity from a Workflow template. The system creates one parent task (`taskType = activityMaster`) plus one child task (`taskType = activityChild`) per Workflow step, in the order defined by the Workflow.\n\n**Process:**\n1. Validates that the referenced Workflow exists and belongs to your organization.\n2. Creates the master task with the embedded Workflow reference.\n3. Creates N child tasks sequentially based on `workflow.steps`. Each child task uses the `flow` and `flowId` of its corresponding Workflow step.\n4. Links every child task to the master via `parentId`; the master tracks every child via its `subId` array, in Workflow-step order.\n5. Aggregates the assignees from all child tasks onto the master.\n6. Sets the master's `startTime` to the earliest child start time and `endTime` to the latest child end time.\n\n**Notes:**\n- The number of objects in `tasks` must equal the Workflow's number of steps.\n- The master's status / sub-status updates happen automatically as child tasks progress — not via this endpoint. To update fields after creation, use the standard Task endpoints with the master task's `_id`.","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json post /activity","href":"/api-reference/task/activity/create-activity","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n ol: \"ol\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Create a new Activity from a Workflow template. The system creates one parent task (\", _jsx(_components.code, {\n children: \"taskType = activityMaster\"\n }), \") plus one child task (\", _jsx(_components.code, {\n children: \"taskType = activityChild\"\n }), \") per Workflow step, in the order defined by the Workflow.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Process:\"\n })\n }), \"\\n\", _jsxs(_components.ol, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"Validates that the referenced Workflow exists and belongs to your organization.\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"Creates the master task with the embedded Workflow reference.\"\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Creates N child tasks sequentially based on \", _jsx(_components.code, {\n children: \"workflow.steps\"\n }), \". Each child task uses the \", _jsx(_components.code, {\n children: \"flow\"\n }), \" and \", _jsx(_components.code, {\n children: \"flowId\"\n }), \" of its corresponding Workflow step.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Links every child task to the master via \", _jsx(_components.code, {\n children: \"parentId\"\n }), \"; the master tracks every child via its \", _jsx(_components.code, {\n children: \"subId\"\n }), \" array, in Workflow-step order.\"]\n }), \"\\n\", _jsx(_components.li, {\n children: \"Aggregates the assignees from all child tasks onto the master.\"\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"Sets the master’s \", _jsx(_components.code, {\n children: \"startTime\"\n }), \" to the earliest child start time and \", _jsx(_components.code, {\n children: \"endTime\"\n }), \" to the latest child end time.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Notes:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"The number of objects in \", _jsx(_components.code, {\n children: \"tasks\"\n }), \" must equal the Workflow’s number of steps.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"The master’s status / sub-status updates happen automatically as child tasks progress — not via this endpoint. To update fields after creation, use the standard Task endpoints with the master task’s \", _jsx(_components.code, {\n children: \"_id\"\n }), \".\"]\n }), \"\\n\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Activity","description":"Create a new Activity from a Workflow template. The system creates one parent task (`taskType = activityMaster`) plus one child task (`taskType = activityChild`) per Workflow step, in the order defined by the Workflow.\n\n**Process:**\n1. Validates that the referenced Workflow exists and belongs to your organization.\n2. Creates the master task with the embedded Workflow reference.\n3. Creates N child tasks sequentially based on `workflow.steps`. Each child task uses the `flow` and `flowId` of its corresponding Workflow step.\n4. Links every child task to the master via `parentId`; the master tracks every child via its `subId` array, in Workflow-step order.\n5. Aggregates the assignees from all child tasks onto the master.\n6. Sets the master's `startTime` to the earliest child start time and `endTime` to the latest child end time.\n\n**Notes:**\n- The number of objects in `tasks` must equal the Workflow's number of steps.\n- The master's status / sub-status updates happen automatically as child tasks progress — not via this endpoint. To update fields after creation, use the standard Task endpoints with the master task's `_id`.","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json post /activity","href":"/api-reference/task/activity/create-activity","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/mileapp-c1584fbc/8e82fcd446d681df/scripts/build-openapi.js","/_mintlify/custom/mileapp-c1584fbc/bbd4ec23fcfb0c2b/scripts/check-schema.js","/_mintlify/custom/mileapp-c1584fbc/620df530e90e7f77/scripts/generate-tag-overviews.js","/_mintlify/custom/mileapp-c1584fbc/aff8851c4def862f/scripts/check-custom-css.js"],"openApiReferenceData":{"operation":{"summary":"Create Activity","description":"Create a new Activity from a Workflow template. The system creates one parent task (`taskType = activityMaster`) plus one child task (`taskType = activityChild`) per Workflow step, in the order defined by the Workflow.\n\n**Process:**\n1. Validates that the referenced Workflow exists and belongs to your organization.\n2. Creates the master task with the embedded Workflow reference.\n3. Creates N child tasks sequentially based on `workflow.steps`. Each child task uses the `flow` and `flowId` of its corresponding Workflow step.\n4. Links every child task to the master via `parentId`; the master tracks every child via its `subId` array, in Workflow-step order.\n5. Aggregates the assignees from all child tasks onto the master.\n6. Sets the master's `startTime` to the earliest child start time and `endTime` to the latest child end time.\n\n**Notes:**\n- The number of objects in `tasks` must equal the Workflow's number of steps.\n- The master's status / sub-status updates happen automatically as child tasks progress — not via this endpoint. To update fields after creation, use the standard Task endpoints with the master task's `_id`.","tags":["Activity"],"operationId":"createActivity","deprecated":false,"security":["e8439088-fa83-46fe-ab45-e2afd832cdc8"],"requestBody":"20e1a973-892a-4ebc-a842-9ab68e7678bc","responses":{"201":"03081d17-cf3e-44ef-985d-4a2134b999d3","400":"d660c8ad-87ec-464f-a2a5-d347741b020f","404":"771122e8-1a5e-4236-a186-1d6b09fe45af","500":"b2695dfb-3375-4ffc-a820-4036b96db0f2"},"method":"post","type":"path","servers":["733b5e56-a694-4a51-82b6-bff74810032d"],"path":"/activity","baseUrlOptions":["https://apiweb.mile.app/api/v3"],"title":"Create Activity","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["workflowId","tasks"],"properties":{"workflowId":{"type":"string","description":"ID of the Workflow that defines the steps for this Activity. Must reference an existing Workflow in your organization.","example":"68f2198aef526585c30e16d2","isRequired":true,"uniqueKey":"workflowId","typeLabel":"string"},"tasks":{"type":"array","description":"Array of step task objects. The array length must equal the Workflow's number of steps; the order of objects matches the order of `workflow.steps`. Each object carries the schedule, assignee, and Flow-specific data fields for one Workflow step.","items":{"type":"object","additionalProperties":true,"properties":{"assignee":{"type":"array","description":"Email(s) of the user(s) assigned to this step task. Pass an empty array to leave the step unassigned.","items":{"type":"string","uniqueKey":"tasks.items.[INDEX].assignee.items.[INDEX]","typeLabel":"string"},"example":["driver@example.com"],"uniqueKey":"tasks.items.[INDEX].assignee","typeLabel":"string[]"},"startTime":{"type":"string","format":"date-time","description":"Start time of the step task, in ISO 8601 format.","example":"2025-10-31T08:55:00.000+07:00","uniqueKey":"tasks.items.[INDEX].startTime","typeLabel":"string\u003cdate-time>"},"endTime":{"type":"string","format":"date-time","description":"End time of the step task, in ISO 8601 format.","example":"2025-11-01T08:55:00.000+07:00","uniqueKey":"tasks.items.[INDEX].endTime","typeLabel":"string\u003cdate-time>"},"hubId":{"type":"string","description":"Hub ID for this step task. Usually the same as the parent Activity's `hubId`.","example":"68ff42815ed967adac0f7192","uniqueKey":"tasks.items.[INDEX].hubId","typeLabel":"string"},"createdFrom":{"type":"string","description":"Source of creation, e.g. `WEB`, `API`, `MOBILE`.","example":"WEB","uniqueKey":"tasks.items.[INDEX].createdFrom","typeLabel":"string"}},"description":"Each step task carries the schedule, assignee, and Flow-specific data fields for one Workflow step. The Flow-specific field names depend on the Flow referenced by that step in the Workflow (for example `customerName`, `customerAddress`, `recipientName`, `pickupAddress`, etc.).","uniqueKey":"tasks.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"tasks","typeLabel":"object[]"},"hubId":{"type":"string","description":"Optional hub ID where this Activity is executed. Inherited by all child tasks.","example":"68ff42815ed967adac0f7192","uniqueKey":"hubId","typeLabel":"string"}},"example":{"workflowId":"68f2198aef526585c30e16d2","hubId":"68ff42815ed967adac0f7192","tasks":[{"customerName":"John Doe","customerAddress":"Jl. Sudirman No. 1, Jakarta","pickupCoordinate":"-6.2088,106.8456","assignee":["driver@example.com"],"startTime":"2025-10-31T08:55:00.000+07:00","endTime":"2025-11-01T08:55:00.000+07:00","hubId":"68ff42815ed967adac0f7192","createdFrom":"WEB"},{"recipientName":"Jane Smith","recipientAddress":"Jl. Pajajaran No. 10, Bogor","deliveryCoordinate":"-6.5950,106.8167","assignee":[],"startTime":"2025-10-31T08:55:00.000+07:00","endTime":"2025-11-01T08:55:00.000+07:00","hubId":"68ff42815ed967adac0f7192","createdFrom":"WEB"}]},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"workflowId":"68f2198aef526585c30e16d2","hubId":"68ff42815ed967adac0f7192","tasks":[{"customerName":"John Doe","customerAddress":"Jl. Sudirman No. 1, Jakarta","pickupCoordinate":"-6.2088,106.8456","assignee":["driver@example.com"],"startTime":"2025-10-31T08:55:00.000+07:00","endTime":"2025-11-01T08:55:00.000+07:00","hubId":"68ff42815ed967adac0f7192","createdFrom":"WEB"},{"recipientName":"Jane Smith","recipientAddress":"Jl. Pajajaran No. 10, Bogor","deliveryCoordinate":"-6.5950,106.8167","assignee":[],"startTime":"2025-10-31T08:55:00.000+07:00","endTime":"2025-11-01T08:55:00.000+07:00","hubId":"68ff42815ed967adac0f7192","createdFrom":"WEB"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"03081d17-cf3e-44ef-985d-4a2134b999d3":{"description":"Activity created successfully. The response contains the master task object. `workflow.steps` is omitted from the response to reduce payload size — read the Workflow directly if you need the step definitions.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"boolean","example":true,"uniqueKey":"status","typeLabel":"boolean"},"code":{"type":"integer","example":201,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","example":"Activity created successfully","uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","description":"The newly-created Activity master task. The shape follows the standard [Task object](/api-reference/objects/task-object) with `taskType = activityMaster`.","properties":{"_id":{"type":"string","example":"634e98098ce07d29474a7e22","uniqueKey":"data._id","typeLabel":"string"},"taskType":{"type":"string","example":"activityMaster","uniqueKey":"data.taskType","typeLabel":"string"},"title":{"type":"string","example":"Pickup to Delivery","uniqueKey":"data.title","typeLabel":"string"},"workflowId":{"type":"string","example":"68f2198aef526585c30e16d2","uniqueKey":"data.workflowId","typeLabel":"string"},"subId":{"type":"array","items":{"type":"string","uniqueKey":"data.subId.items.[INDEX]","typeLabel":"string"},"example":["634e98098ce07d29474a7e23","634e98098ce07d29474a7e24"],"uniqueKey":"data.subId","typeLabel":"string[]"},"status":{"type":"string","example":"ONGOING","uniqueKey":"data.status","typeLabel":"string"},"assignee":{"type":"array","items":{"type":"string","uniqueKey":"data.assignee.items.[INDEX]","typeLabel":"string"},"example":["driver@example.com"],"uniqueKey":"data.assignee","typeLabel":"string[]"},"startTime":{"type":"string","format":"date-time","example":"2025-10-31T08:55:00.000+07:00","uniqueKey":"data.startTime","typeLabel":"string\u003cdate-time>"},"endTime":{"type":"string","format":"date-time","example":"2025-11-01T08:55:00.000+07:00","uniqueKey":"data.endTime","typeLabel":"string\u003cdate-time>"},"hubId":{"type":"string","example":"68ff42815ed967adac0f7192","uniqueKey":"data.hubId","typeLabel":"string"},"organizationId":{"type":"string","example":"634e98098ce07d29474a7e20","uniqueKey":"data.organizationId","typeLabel":"string"},"createdBy":{"type":"string","example":"admin@example.com","uniqueKey":"data.createdBy","typeLabel":"string"},"createdTime":{"type":"string","format":"date-time","example":"2025-10-31T08:50:00.000+07:00","uniqueKey":"data.createdTime","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":true,"code":201,"message":"Activity created successfully","data":{"_id":"634e98098ce07d29474a7e22","taskType":"activityMaster","title":"Pickup to Delivery","workflowId":"68f2198aef526585c30e16d2","subId":["634e98098ce07d29474a7e23","634e98098ce07d29474a7e24"],"status":"ONGOING","assignee":["driver@example.com"],"startTime":"2025-10-31T08:55:00.000+07:00","endTime":"2025-11-01T08:55:00.000+07:00","hubId":"68ff42815ed967adac0f7192","organizationId":"634e98098ce07d29474a7e20","createdBy":"admin@example.com","createdTime":"2025-10-31T08:50:00.000+07:00"}}}},"exampleType":"generated"}},"exampleType":"generated"},"d660c8ad-87ec-464f-a2a5-d347741b020f":{"description":"Bad Request — validation failed (missing required fields, or `tasks` length does not match `workflow.steps.length`).","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"boolean","example":false,"uniqueKey":"status","typeLabel":"boolean"},"code":{"type":"integer","example":400,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","example":"Validation failed","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":false,"code":400,"message":"Validation failed"}}},"exampleType":"generated"}},"exampleType":"generated"},"771122e8-1a5e-4236-a186-1d6b09fe45af":{"description":"Not Found — the referenced Workflow does not exist in your organization.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"boolean","example":false,"uniqueKey":"status","typeLabel":"boolean"},"code":{"type":"integer","example":404,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","example":"Workflow not found","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":false,"code":404,"message":"Workflow not found"}}},"exampleType":"generated"}},"exampleType":"generated"},"b2695dfb-3375-4ffc-a820-4036b96db0f2":{"description":"Server Error — unexpected error while creating the Activity.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"boolean","example":false,"uniqueKey":"status","typeLabel":"boolean"},"code":{"type":"integer","example":500,"uniqueKey":"code","typeLabel":"integer"},"message":{"type":"string","example":"Internal server error","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":false,"code":500,"message":"Internal server error"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"e8439088-fa83-46fe-ab45-e2afd832cdc8":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Use a valid Bearer token to authenticate.","scopes":[]}}},"servers":{"733b5e56-a694-4a51-82b6-bff74810032d":{"url":"https://apiweb.mile.app/api/v3"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Use a valid Bearer token to authenticate.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Use a valid Bearer token to authenticate.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi/public/openapi-task.json"},"subdomain":"mileapp-c1584fbc","siteName":"MileApp Documentation","title":"Create Activity - MileApp Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-22T03:14:33.760Z","originalFileLocation":"api-reference/task/activity/create-activity.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a new Activity from a Workflow template. The system creates one parent task (taskType = activityMaster) plus one child task (taskType = activityChild) per Workflow step, in the order defined by the Workflow. Process: 1. Validates that the referenced Workflow exists and belongs to your organization. 2. Creates the master task with the embedded Workflow reference. 3. Creates N child tasks sequentially based on workflow.steps. Each child task uses the flow and flowId of its corresponding Workflow step. 4. Links every child task to the master via parentId; the master tracks every child via its subId array, in Workflow-step order. 5. Aggregates the assignees from all child tasks onto the master. 6. Sets the master\u0026#x27;s startTime to the earliest child start time and endTime to the latest child end time. Notes: - The number of objects in tasks must equal the Workflow\u0026#x27;s number of steps. - The master\u0026#x27;s status / sub-status updates happen automatically as child tasks progress — not via this endpoint. To update fields after creation, use the standard Task endpoints with the master task\u0026#x27;s _id.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MileApp Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"noindex, nofollow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mileapp-c1584fbc/bVuu_7muoPMPWMjz/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/mileapp-c1584fbc/bVuu_7muoPMPWMjz/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mileapp-c1584fbc/bVuu_7muoPMPWMjz/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mileapp-c1584fbc/bVuu_7muoPMPWMjz/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mileapp-c1584fbc/bVuu_7muoPMPWMjz/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mileapp-c1584fbc/bVuu_7muoPMPWMjz/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mileapp-c1584fbc/bVuu_7muoPMPWMjz/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mileapp-c1584fbc/bVuu_7muoPMPWMjz/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mileapp-c1584fbc/bVuu_7muoPMPWMjz/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Activity - MileApp Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new Activity from a Workflow template. The system creates one parent task (taskType = activityMaster) plus one child task (taskType = activityChild) per Workflow step, in the order defined by the Workflow. Process: 1. Validates that the referenced Workflow exists and belongs to your organization. 2. Creates the master task with the embedded Workflow reference. 3. Creates N child tasks sequentially based on workflow.steps. Each child task uses the flow and flowId of its corresponding Workflow step. 4. Links every child task to the master via parentId; the master tracks every child via its subId array, in Workflow-step order. 5. Aggregates the assignees from all child tasks onto the master. 6. Sets the master\u0026#x27;s startTime to the earliest child start time and endTime to the latest child end time. Notes: - The number of objects in tasks must equal the Workflow\u0026#x27;s number of steps. - The master\u0026#x27;s status / sub-status updates happen automatically as child tasks progress — not via this endpoint. To update fields after creation, use the standard Task endpoints with the master task\u0026#x27;s _id.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MileApp Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.mileapp.dev/api-reference/task/activity/create-activity\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mileapp-c1584fbc.mintlify.site/_mintlify/api/og/v2?division=Activity\u0026amp;title=Create+Activity\u0026amp;description=Create+a+new+Activity+from+a+Workflow+template.+The+system+creates+one+parent+task+%28%60taskType+%3D+activityMaster%60%29+plus+one+child+task+%28%60taskType+%3D+activityChild%60\u0026amp;theme=b06912dcf96c5b10c09f973d\u0026amp;signature=75b3af1a94b8ab42a8b38d6e9e40a87ceb20fd09f8d986469058aa913e02639f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Activity - MileApp Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new Activity from a Workflow template. The system creates one parent task (taskType = activityMaster) plus one child task (taskType = activityChild) per Workflow step, in the order defined by the Workflow. Process: 1. Validates that the referenced Workflow exists and belongs to your organization. 2. Creates the master task with the embedded Workflow reference. 3. Creates N child tasks sequentially based on workflow.steps. Each child task uses the flow and flowId of its corresponding Workflow step. 4. Links every child task to the master via parentId; the master tracks every child via its subId array, in Workflow-step order. 5. Aggregates the assignees from all child tasks onto the master. 6. Sets the master\u0026#x27;s startTime to the earliest child start time and endTime to the latest child end time. Notes: - The number of objects in tasks must equal the Workflow\u0026#x27;s number of steps. - The master\u0026#x27;s status / sub-status updates happen automatically as child tasks progress — not via this endpoint. To update fields after creation, use the standard Task endpoints with the master task\u0026#x27;s _id.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mileapp-c1584fbc.mintlify.site/_mintlify/api/og/v2?division=Activity\u0026amp;title=Create+Activity\u0026amp;description=Create+a+new+Activity+from+a+Workflow+template.+The+system+creates+one+parent+task+%28%60taskType+%3D+activityMaster%60%29+plus+one+child+task+%28%60taskType+%3D+activityChild%60\u0026amp;theme=b06912dcf96c5b10c09f973d\u0026amp;signature=75b3af1a94b8ab42a8b38d6e9e40a87ceb20fd09f8d986469058aa913e02639f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/mileapp-c1584fbc/bVuu_7muoPMPWMjz/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MileApp Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#02A8F3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.mileapp.dev/api-reference/task/activity/create-activity\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/task/activity/create-activity.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.mileapp.dev/#organization\",\"name\":\"MileApp Documentation\",\"url\":\"https://docs.mileapp.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mileapp-c1584fbc/bBZK2cRce9wqEBGj/logo/light.svg?fit=max\u0026auto=format\u0026n=bBZK2cRce9wqEBGj\u0026q=85\u0026s=b3a5907a2e6eb43ac79b6629b5f5f0b0\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.mileapp.dev#website\",\"name\":\"MileApp Documentation\",\"url\":\"https://docs.mileapp.dev\",\"publisher\":{\"@id\":\"https://docs.mileapp.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.mileapp.dev/api-reference/task/activity/create-activity#webpage\",\"url\":\"https://docs.mileapp.dev/api-reference/task/activity/create-activity\",\"name\":\"Create Activity\",\"description\":\"Create a new Activity from a Workflow template. The system creates one parent task (taskType = activityMaster) plus one child task (taskType = activityChild) per Workflow step, in the order defined by the Workflow. Process: 1. Validates that the referenced Workflow exists and belongs to your organization. 2. Creates the master task with the embedded Workflow reference. 3. Creates N child tasks sequentially based on workflow.steps. Each child task uses the flow and flowId of its corresponding Workflow step. 4. Links every child task to the master via parentId; the master tracks every child via its subId array, in Workflow-step order. 5. Aggregates the assignees from all child tasks onto the master. 6. Sets the master's startTime to the earliest child start time and endTime to the latest child end time. Notes: - The number of objects in tasks must equal the Workflow's number of steps. - The master's status / sub-status updates happen automatically as child tasks progress — not via this endpoint. To update fields after creation, use the standard Task endpoints with the master task's _id.\",\"dateModified\":\"2026-07-22T03:14:33.760Z\",\"isPartOf\":{\"@id\":\"https://docs.mileapp.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.mileapp.dev/api-reference/task/activity/create-activity#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.mileapp.dev/api-reference/task/activity/create-activity#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Task\",\"item\":\"https://docs.mileapp.dev/api-reference/task/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Activity\",\"item\":\"https://docs.mileapp.dev/api-reference/task/activity/create-activity\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.mileapp.dev/api-reference/task/activity/create-activity#apireference\",\"headline\":\"Create Activity\",\"name\":\"Create Activity\",\"description\":\"Create a new Activity from a Workflow template. The system creates one parent task (taskType = activityMaster) plus one child task (taskType = activityChild) per Workflow step, in the order defined by the Workflow. Process: 1. Validates that the referenced Workflow exists and belongs to your organization. 2. Creates the master task with the embedded Workflow reference. 3. Creates N child tasks sequentially based on workflow.steps. Each child task uses the flow and flowId of its corresponding Workflow step. 4. Links every child task to the master via parentId; the master tracks every child via its subId array, in Workflow-step order. 5. Aggregates the assignees from all child tasks onto the master. 6. Sets the master's startTime to the earliest child start time and endTime to the latest child end time. Notes: - The number of objects in tasks must equal the Workflow's number of steps. - The master's status / sub-status updates happen automatically as child tasks progress — not via this endpoint. To update fields after creation, use the standard Task endpoints with the master task's _id.\",\"url\":\"https://docs.mileapp.dev/api-reference/task/activity/create-activity\",\"mainEntityOfPage\":{\"@id\":\"https://docs.mileapp.dev/api-reference/task/activity/create-activity#webpage\"},\"dateModified\":\"2026-07-22T03:14:33.760Z\",\"publisher\":{\"@id\":\"https://docs.mileapp.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.mileapp.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MileApp Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"MileApp Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/task/activity/create-activity.md","siteName":"MileApp Documentation","nav":{"global":{"anchors":[{"anchor":"Blog","icon":"newspaper","href":"https://mile.app/blog"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/pages/register-and-verification/register-to-mileapp"}]},{"tab":"API Reference","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Authentication","href":"/api-reference/authentication"},{"title":"Data Formats","href":"/api-reference/data-formats"},{"title":"Status Codes","href":"/api-reference/status-codes"}]},{"group":"Tools","pages":[{"group":"Short Token","pages":[{"title":"Generate Short Token","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-tools.json post /short-token/generate","href":"/api-reference/tools/short-token/generate-short-token"},{"title":"Resolve Short Token","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-tools.json post /short-token/resolve","href":"/api-reference/tools/short-token/resolve-short-token"}]}]},{"group":"Webhook","pages":[{"title":"How does it works","href":"/api-reference/webhooks/how-it-works"},{"title":"Delivery Attempts and Retries","href":"/api-reference/webhooks/delivery-attempts"},{"title":"Quick Response Requirement","href":"/api-reference/webhooks/quick-response"},{"title":"Failure Monitoring and Notification Process","href":"/api-reference/webhooks/failure-monitoring"},{"group":"Webhook","pages":[{"title":"Task events","version":null,"deprecated":null,"openapi":"/openapi/public/openapi-webhooks.json webhook task-events","href":"/api-reference/webhooks/webhook/task-events"},{"title":"On data source created","version":null,"deprecated":null,"openapi":"/openapi/public/openapi-webhooks.json webhook data-source-created","href":"/api-reference/webhooks/webhook/on-data-source-created"},{"title":"Routing events","version":null,"deprecated":null,"openapi":"/openapi/public/openapi-webhooks.json webhook routing-events","href":"/api-reference/webhooks/webhook/routing-events"},{"title":"Trip events","version":null,"deprecated":null,"openapi":"/openapi/public/openapi-webhooks.json webhook trip-events","href":"/api-reference/webhooks/webhook/trip-events"}]}]},{"group":"Task","pages":[{"group":"Overview","pages":[{"title":"Task","href":"/api-reference/task/overview"},{"title":"Location History","href":"/api-reference/task/location-history-overview"},{"title":"Task Schedule","href":"/api-reference/task/task-schedule-overview"},{"title":"Overview","href":"/api-reference/activity/overview"}]},{"group":"Task","pages":[{"title":"Send OTP","deprecated":null,"version":null,"openapi":"/openapi/public/openapi-task.json post /task/{taskId}/otp/send","href":"/api-reference/task/task/send-otp"},{"title":"Verify OTP","deprecated":null,"version":null,"openapi":"/openapi/public/openapi-task.json post /task/{taskId}/otp/verify","href":"/api-reference/task/task/verify-otp"},{"title":"Read tasks","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json get /tasks","href":"/api-reference/task/task/read-tasks"},{"title":"Read tasks gallery","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json get /tasks-gallery","href":"/api-reference/task/task/read-tasks-gallery"},{"title":"Read task by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json get /task/{task_id}","href":"/api-reference/task/task/read-task-by-id"},{"title":"Read public task by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json get /task/public/{task_id}","href":"/api-reference/task/task/read-public-task-by-id"},{"title":"Read task tracking","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json get /tasks/tracking","href":"/api-reference/task/task/read-task-tracking"},{"title":"Create task","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json post /task","href":"/api-reference/task/task/create-task"},{"title":"Create multiple tasks","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json post /tasks/bulk/","href":"/api-reference/task/task/create-multiple-tasks"},{"title":"Upload image for task","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json post /task/photo/{forRenameFile}","href":"/api-reference/task/task/upload-image-for-task"},{"title":"Upload video for task","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json post /task/video/{forRenameFile}","href":"/api-reference/task/task/upload-video-for-task"},{"title":"Update task by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json put /task/{taskid}","href":"/api-reference/task/task/update-task-by-id"},{"title":"Update multiple tasks","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json put /tasks/bulk/#","href":"/api-reference/task/task/update-multiple-tasks"},{"title":"Move task by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json put /task/{taskId}/move","href":"/api-reference/task/task/move-task-by-id"},{"title":"Assign task by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json put /task/{taskId}/assign","href":"/api-reference/task/task/assign-task-by-id"},{"title":"Move multiple tasks","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json put /tasks/bulk/move","href":"/api-reference/task/task/move-multiple-tasks"},{"title":"Assign multiple tasks","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json put /tasks/bulk/assign","href":"/api-reference/task/task/assign-multiple-tasks"},{"title":"Partially update task by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json patch /task/{taskId}","href":"/api-reference/task/task/partially-update-task-by-id"},{"title":"Delete multiple tasks","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json delete /tasks/bulk","href":"/api-reference/task/task/delete-multiple-tasks"},{"title":"Partial update multiple tasks","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json patch /tasks/bulk","href":"/api-reference/task/task/partial-update-multiple-tasks"},{"title":"Delete task by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json delete /task/{id}","href":"/api-reference/task/task/delete-task-by-id"}]},{"group":"Location History","pages":[{"title":"Read location history","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json get /location-histories","href":"/api-reference/task/location-history/read-location-history"},{"title":"Read location history by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json get /location-history/{id}","href":"/api-reference/task/location-history/read-location-history-by-id"},{"title":"Read location history by token","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json get /location-history/tracking/{token}","href":"/api-reference/task/location-history/read-location-history-by-token"},{"title":"Create location history","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json post /location-history","href":"/api-reference/task/location-history/create-location-history"},{"title":"Bulk create location history","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json post /location-history/bulk","href":"/api-reference/task/location-history/bulk-create-location-history"},{"title":"Generate location history token","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json post /location-history/generate-token","href":"/api-reference/task/location-history/generate-location-history-token"},{"title":"Update location history by email \u0026 createdTime","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json put /location-history/","href":"/api-reference/task/location-history/update-location-history-by-email-\u0026-createdtime"},{"title":"Update location history by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json put /location-history/{loc_history_id}","href":"/api-reference/task/location-history/update-location-history-by-id"},{"title":"Delete location history by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json delete /location-history/{loc_history_id}","href":"/api-reference/task/location-history/delete-location-history-by-id"},{"title":"Update partially location history by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json patch /location-history/{loc_history_id}","href":"/api-reference/task/location-history/update-partially-location-history-by-id"}]},{"group":"Task Schedule","pages":[{"title":"Read task schedule","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json get /task/schedules","href":"/api-reference/task/task-schedule/read-task-schedule"},{"title":"Read task schedule by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json get /task/schedule/{id}","href":"/api-reference/task/task-schedule/read-task-schedule-by-id"},{"title":"Create task schedule","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json post /task/schedule","href":"/api-reference/task/task-schedule/create-task-schedule"},{"title":"Bulk create task schedule","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json post /task/schedules/bulk","href":"/api-reference/task/task-schedule/bulk-create-task-schedule"},{"title":"Update task schedule by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json put /task/schedule/{scheduleId}","href":"/api-reference/task/task-schedule/update-task-schedule-by-id"},{"title":"Delete task schedule by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json delete /task/schedule/{scheduleId}","href":"/api-reference/task/task-schedule/delete-task-schedule-by-id"},{"title":"Update partially task schedule by ID","description":null,"deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json patch /task/schedule/{scheduleId}","href":"/api-reference/task/task-schedule/update-partially-task-schedule-by-id"}]},{"group":"Activity","pages":[{"title":"Create Activity","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-task.json post /activity","href":"/api-reference/task/activity/create-activity"}]}]},{"group":"Routing","pages":[{"group":"Overview","pages":[{"title":"Routing","description":"Route optimization for efficient field operations","href":"/api-reference/routing/overview"},{"title":"Vehicle","href":"/api-reference/routing/vehicle-overview"}]},{"group":"Vehicle","pages":[{"title":"Read vehicle","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-routing.json get /vehicles","href":"/api-reference/routing/vehicle/read-vehicle"},{"title":"Read vehicle by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-routing.json get /vehicle/{vehicleId}","href":"/api-reference/routing/vehicle/read-vehicle-by-id"},{"title":"Update vehicle by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-routing.json put /vehicle/{vehicleId}","href":"/api-reference/routing/vehicle/update-vehicle-by-id"},{"title":"Delete vehicle by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-routing.json delete /vehicle/{vehicleId}","href":"/api-reference/routing/vehicle/delete-vehicle-by-id"},{"title":"Update partially vehicle by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-routing.json patch /vehicle/{vehicleId}","href":"/api-reference/routing/vehicle/update-partially-vehicle-by-id"},{"title":"Create vehicle","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-routing.json post /vehicle","href":"/api-reference/routing/vehicle/create-vehicle"},{"title":"Bulk create vehicle","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-routing.json post /vehicles/","href":"/api-reference/routing/vehicle/bulk-create-vehicle"},{"title":"Delete vehicle by Hub","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-routing.json delete /vehicles/{hubId}/hub","href":"/api-reference/routing/vehicle/delete-vehicle-by-hub"}]},{"group":"Routing","pages":[{"title":"Read routing results","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-routing.json get /results","href":"/api-reference/routing/routing/read-routing-results"},{"title":"Read routing result by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-routing.json get /result/{resultId}","href":"/api-reference/routing/routing/read-routing-result-by-id"},{"title":"Update routing result by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-routing.json put /result/{resultId}","href":"/api-reference/routing/routing/update-routing-result-by-id"},{"title":"Delete routing result by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-routing.json delete /result/{resultId}","href":"/api-reference/routing/routing/delete-routing-result-by-id"},{"title":"Update partially routing result by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-routing.json patch /result/{resultId}","href":"/api-reference/routing/routing/update-partially-routing-result-by-id"},{"title":"Route optimize","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-routing.json post /routing","href":"/api-reference/routing/routing/route-optimize"},{"title":"Dispatch routing result","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-routing.json post /dispatch","href":"/api-reference/routing/routing/dispatch-routing-result"},{"title":"Reorder visits","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-routing.json post /reorder-visits","href":"/api-reference/routing/routing/reorder-visits"},{"title":"Read routing result history by result ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-routing.json get /result/{resultId}/history","href":"/api-reference/routing/routing/read-routing-result-history-by-result-id"}]}]},{"group":"Flow","pages":[{"group":"Overview","pages":[{"title":"Flow","href":"/api-reference/flow/overview"},{"title":"Automation","href":"/api-reference/flow/automation-overview"}]},{"group":"Flow","pages":[{"title":"Read flows","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json get /flows","href":"/api-reference/flow/flow/read-flows"},{"title":"Read flow by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json get /flow/{flowId}","href":"/api-reference/flow/flow/read-flow-by-id"},{"title":"Read flow fields","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json get /flow-fields","href":"/api-reference/flow/flow/read-flow-fields"},{"title":"Read flow components","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json get /flow-components","href":"/api-reference/flow/flow/read-flow-components"},{"title":"Read flow component by flow name","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json get /flow/{flowName}/fields","href":"/api-reference/flow/flow/read-flow-component-by-flow-name"},{"title":"Generate example","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json get /flow/{flowName}/task","href":"/api-reference/flow/flow/generate-example"},{"title":"Read flow histories","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json get /flow-logs","href":"/api-reference/flow/flow/read-flow-histories"},{"title":"Create flow","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json post /flow","href":"/api-reference/flow/flow/create-flow"},{"title":"Read flow versions","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json post /flows/check-version","href":"/api-reference/flow/flow/read-flow-versions"},{"title":"Re-order flow","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json put /flow-reorder","href":"/api-reference/flow/flow/re-order-flow"},{"title":"Update flow by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json put /flow/{flow_id}","href":"/api-reference/flow/flow/update-flow-by-id"},{"title":"Delete flow by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json delete /flow/{flow_id}","href":"/api-reference/flow/flow/delete-flow-by-id"},{"title":"Restore flow by flow log ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json put /flow/{flowId}/restore/{flowLogId}","href":"/api-reference/flow/flow/restore-flow-by-flow-log-id"}]},{"group":"Automation","pages":[{"title":"Read automation","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json get /automations","href":"/api-reference/flow/automation/read-automation"},{"title":"Read log automation","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json get /automation-log","href":"/api-reference/flow/automation/read-log-automation"},{"title":"Read automation by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json get /automation/{automationId}","href":"/api-reference/flow/automation/read-automation-by-id"},{"title":"Create automation","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json post /automation","href":"/api-reference/flow/automation/create-automation"},{"title":"Retry bulk automation","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json post /automation-retries","href":"/api-reference/flow/automation/retry-bulk-automation"},{"title":"Update automation by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json put /automation/{automation_id}","href":"/api-reference/flow/automation/update-automation-by-id"},{"title":"Update partially automation by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json patch /automation/{automation_id}","href":"/api-reference/flow/automation/update-partially-automation-by-id"},{"title":"Retry automation by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json patch /automation-retry/{log_id}","href":"/api-reference/flow/automation/retry-automation-by-id"},{"title":"Delete automation by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-flow.json delete /automation/{automation_id}/","href":"/api-reference/flow/automation/delete-automation-by-id"}]}]},{"group":"Workflow","pages":[{"group":"Overview","pages":[{"title":"Overview","href":"/api-reference/workflow/overview"}]},{"group":"Workflow","pages":[{"title":"Get All Workflows","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-workflow.json get /internal/workflows","href":"/api-reference/workflow/workflow/get-all-workflows"},{"title":"Create Workflow","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-workflow.json post /internal/workflows","href":"/api-reference/workflow/workflow/create-workflow"},{"title":"Search Workflows","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-workflow.json get /internal/workflows/search","href":"/api-reference/workflow/workflow/search-workflows"},{"title":"Get Workflow by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-workflow.json get /workflow/{id}","href":"/api-reference/workflow/workflow/get-workflow-by-id"},{"title":"Update Workflow","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-workflow.json put /workflow/{id}","href":"/api-reference/workflow/workflow/update-workflow"},{"title":"Delete Workflow","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-workflow.json delete /workflow/{id}","href":"/api-reference/workflow/workflow/delete-workflow"},{"title":"Get Field Mapping Data","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-workflow.json get /workflow/{id}/steps/{stepOrder}/field-mapping-data","href":"/api-reference/workflow/workflow/get-field-mapping-data"},{"title":"Validate Field Mappings","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-workflow.json post /workflow/{id}/steps/{stepOrder}/validate-field-mappings","href":"/api-reference/workflow/workflow/validate-field-mappings"}]}]},{"group":"Data","pages":[{"group":"Overview","pages":[{"title":"Data","href":"/api-reference/data/overview"},{"title":"Data Source","href":"/api-reference/data/data-source-overview"},{"title":"Data Type","href":"/api-reference/data/data-type-overview"}]},{"group":"Data Source","pages":[{"title":"Read data source","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json get /data","href":"/api-reference/data/data-source/read-data-source"},{"title":"Create data source","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json post /data","href":"/api-reference/data/data-source/create-data-source"},{"title":"Read data source by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json get /data/{dataId}","href":"/api-reference/data/data-source/read-data-source-by-id"},{"title":"Read data source by dataTypeName and dataId","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json get /data/type/{dataTypeName}/{dataId}","href":"/api-reference/data/data-source/read-data-source-by-datatypename-and-dataid"},{"title":"Read data source by hubId, dataTypeName, dataId","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json get /data/hub/{hubId}/type/{dataTypeName}/{data_id}","href":"/api-reference/data/data-source/read-data-source-by-hubid-datatypename-dataid"},{"title":"Bulk create data source","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json post /data/bulk","href":"/api-reference/data/data-source/bulk-create-data-source"},{"title":"Bulk create or update data source","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json post /data/bulk/upsert","href":"/api-reference/data/data-source/bulk-create-or-update-data-source"},{"title":"Update data source by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json put /data/{_id}","href":"/api-reference/data/data-source/update-data-source-by-id"},{"title":"Update data source by hubId, dataTypeName, dataId","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json put /data/hub/{hub_id}/type/{dataTypeName}/{dataId}","href":"/api-reference/data/data-source/update-data-source-by-hubid-datatypename-dataid"},{"title":"Update partially data source by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json patch /data/{data_id}","href":"/api-reference/data/data-source/update-partially-data-source-by-id"},{"title":"Delete data source","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json delete /data/{data_id}/","href":"/api-reference/data/data-source/delete-data-source"},{"title":"Delete data source by hubId, dataTypeName, dataId","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json delete /data/hub/{hubId}/type/{dataTypeName}/{dataId}","href":"/api-reference/data/data-source/delete-data-source-by-hubid-datatypename-dataid"},{"title":"Bulk delete data source","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json delete /datas/bulk","href":"/api-reference/data/data-source/bulk-delete-data-source"},{"title":"Bulk patch data source","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json patch /datas/bulk","href":"/api-reference/data/data-source/bulk-patch-data-source"}]},{"group":"Data Type","pages":[{"title":"Read data type","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json get /data-types","href":"/api-reference/data/data-type/read-data-type"},{"title":"Read data type by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json get /data-type/{dataTypeId}/","href":"/api-reference/data/data-type/read-data-type-by-id"},{"title":"Create data type","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json post /data-type","href":"/api-reference/data/data-type/create-data-type"},{"title":"Update data type by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json put /data-type/{dataTypeId}","href":"/api-reference/data/data-type/update-data-type-by-id"},{"title":"Delete data type by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json delete /data-type/{dataTypeId}","href":"/api-reference/data/data-type/delete-data-type-by-id"},{"title":"Update partially data type by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-data.json patch /data-type/{dataTypeId}","href":"/api-reference/data/data-type/update-partially-data-type-by-id"}]}]},{"group":"Setting","pages":[{"group":"Overview","pages":[{"title":"Setting","href":"/api-reference/setting/overview"},{"title":"User","href":"/api-reference/setting/user-overview"},{"title":"Team","href":"/api-reference/setting/team-overview"},{"title":"Role","href":"/api-reference/setting/role-overview"},{"title":"Hub","href":"/api-reference/setting/hub-overview"},{"title":"App Integration","href":"/api-reference/setting/app-integration-overview"},{"title":"Add-on","href":"/api-reference/setting/addon-overview"}]},{"group":"User","pages":[{"title":"Read user","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json get /users","href":"/api-reference/setting/user/read-user"},{"title":"Read mine","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json get /user","href":"/api-reference/setting/user/read-mine"},{"title":"Update partially user","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json patch /user","href":"/api-reference/setting/user/update-partially-user"},{"title":"Read user by email","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json get /user/email/{email}","href":"/api-reference/setting/user/read-user-by-email"},{"title":"Read user by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json get /user/{userId}","href":"/api-reference/setting/user/read-user-by-id"},{"title":"Update user","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json put /user/{userId}","href":"/api-reference/setting/user/update-user"},{"title":"Update partially user by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json patch /user/{userId}","href":"/api-reference/setting/user/update-partially-user-by-id"},{"title":"Read locked user","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json get /members/locked","href":"/api-reference/setting/user/read-locked-user"},{"title":"Unlock locked user","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json post /member/unlock","href":"/api-reference/setting/user/unlock-locked-user"},{"title":"Reset password user","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json post /member/reset-password","href":"/api-reference/setting/user/reset-password-user"},{"title":"Delete user","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json delete /member/{userId}","href":"/api-reference/setting/user/delete-user"}]},{"group":"Team","pages":[{"title":"Read team","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json get /teams","href":"/api-reference/setting/team/read-team"},{"title":"Read team by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json get /team/{teamId}","href":"/api-reference/setting/team/read-team-by-id"},{"title":"Create team","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json post /team","href":"/api-reference/setting/team/create-team"},{"title":"Update team","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json put /team/{teamId}/","href":"/api-reference/setting/team/update-team"},{"title":"Delete team","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json delete /team/{teamId}/","href":"/api-reference/setting/team/delete-team"}]},{"group":"Role","pages":[{"title":"Read role","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json get /roles","href":"/api-reference/setting/role/read-role"},{"title":"Read role by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json get /role/{roleId}","href":"/api-reference/setting/role/read-role-by-id"}]},{"group":"Hub","pages":[{"title":"Read hub","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json get /hubs","href":"/api-reference/setting/hub/read-hub"},{"title":"Read hub by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json get /hub/{hubId}/","href":"/api-reference/setting/hub/read-hub-by-id"},{"title":"Create hub","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json post /hub","href":"/api-reference/setting/hub/create-hub"},{"title":"Update hub","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json put /hub/{hubId}","href":"/api-reference/setting/hub/update-hub"},{"title":"Delete hub","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json delete /hub/{hubId}","href":"/api-reference/setting/hub/delete-hub"}]},{"group":"App Integration","pages":[{"title":"Read App Integration","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json get /app-integrations","href":"/api-reference/setting/app-integration/read-app-integration"},{"title":"Read App Integration by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json get /app-integration/{appIntegrationId}","href":"/api-reference/setting/app-integration/read-app-integration-by-id"},{"title":"Create App Integration","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json post /app-integration","href":"/api-reference/setting/app-integration/create-app-integration"},{"title":"Update App Integration","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json post /app-integration/{appIntegrationId}/","href":"/api-reference/setting/app-integration/update-app-integration"},{"title":"Delete App Integration","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-setting.json delete /app-integration/{appIntegrationId}/","href":"/api-reference/setting/app-integration/delete-app-integration"}]}]},{"group":"Import/Export","pages":[{"group":"Overview","pages":[{"title":"Import/Export","href":"/api-reference/importexport/overview"},{"title":"Data Import","href":"/api-reference/importexport/data-import-overview"},{"title":"Export Task","href":"/api-reference/importexport/export-task-overview"},{"title":"Export Config","href":"/api-reference/importexport/export-config-overview"},{"title":"Import Config","href":"/api-reference/importexport/import-config-overview"}]},{"group":"Export Task","pages":[{"title":"Get export log history","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-importexport.json get /tasks/export-log","href":"/api-reference/importexport/export-task/get-export-log-history"},{"title":"Export tasks","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-importexport.json post /tasks/export","href":"/api-reference/importexport/export-task/export-tasks"},{"title":"Export data source","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-importexport.json post /data/export","href":"/api-reference/importexport/export-task/export-data-source"}]},{"group":"Data Import","pages":[{"title":"Import data source from file","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-importexport.json post /data/import","href":"/api-reference/importexport/data-import/import-data-source-from-file"},{"title":"Read import monitoring records","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-importexport.json get /import-monitoring","href":"/api-reference/importexport/data-import/read-import-monitoring-records"},{"title":"Read import monitoring record by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-importexport.json get /import-monitoring/{id}","href":"/api-reference/importexport/data-import/read-import-monitoring-record-by-id"}]},{"group":"Export Config","pages":[{"title":"Read export config","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-importexport.json get /export-configs","href":"/api-reference/importexport/export-config/read-export-config"},{"title":"Read export config by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-importexport.json get /export-config/{exportConfigId}","href":"/api-reference/importexport/export-config/read-export-config-by-id"},{"title":"Create export config","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-importexport.json post /export-config","href":"/api-reference/importexport/export-config/create-export-config"},{"title":"Update export config","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-importexport.json put /export-config/{exportConfigId}/","href":"/api-reference/importexport/export-config/update-export-config"},{"title":"Delete export config","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-importexport.json delete /export-config/{exportConfigId}/","href":"/api-reference/importexport/export-config/delete-export-config"}]},{"group":"Import Config","pages":[{"title":"Read import config","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-importexport.json get /import-configs","href":"/api-reference/importexport/import-config/read-import-config"},{"title":"Read import config by ID","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-importexport.json get /import-config/{importConfigId}","href":"/api-reference/importexport/import-config/read-import-config-by-id"},{"title":"Create import config","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-importexport.json post /import-config","href":"/api-reference/importexport/import-config/create-import-config"},{"title":"Update import config","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-importexport.json put /import-config/{importConfigId}/","href":"/api-reference/importexport/import-config/update-import-config"},{"title":"Delete import config","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-importexport.json delete /import-config/{importConfigId}/","href":"/api-reference/importexport/import-config/delete-import-config"}]}]},{"group":"File","pages":[{"title":"Overview","href":"/api-reference/file/overview"},{"group":"File","pages":[{"title":"View file","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-file.json get /file/view","href":"/api-reference/file/file/view-file"}]}]},{"group":"Auth","pages":[{"group":"Overview","pages":[{"title":"Multi-Organization","href":"/api-reference/auth/multi-organization-overview"}]},{"group":"Multi-Organization","pages":[{"title":"Get User Organizations","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-auth.json get /organizations","href":"/api-reference/auth/multi-organization/get-user-organizations"},{"title":"Switch Organization","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-auth.json post /organization/switch","href":"/api-reference/auth/multi-organization/switch-organization"},{"title":"Create Organization","deprecated":false,"version":null,"openapi":"/openapi/public/openapi-auth.json post /organization","href":"/api-reference/auth/multi-organization/create-organization"}]}]},{"group":"Objects","pages":[{"title":"Task object","href":"/api-reference/objects/task-object"},{"title":"Location history object","href":"/api-reference/objects/location-history-object"},{"title":"Export Config object","href":"/api-reference/objects/export-config-object"},{"title":"Task Schedule object","href":"/api-reference/objects/task-schedule-object"},{"title":"Vehicle object","href":"/api-reference/objects/vehicle-object"},{"title":"Routing object","href":"/api-reference/objects/routing-object"},{"title":"Flow object","href":"/api-reference/objects/flow-object"},{"title":"Workflow object","href":"/api-reference/objects/workflow-object"},{"title":"Automation object","href":"/api-reference/objects/automation-object"},{"title":"Data source object","href":"/api-reference/objects/data-source-object"},{"title":"Data type object","href":"/api-reference/objects/data-type-object"},{"title":"User object","href":"/api-reference/objects/user-object"},{"title":"Role object","href":"/api-reference/objects/role-object"},{"title":"Hub object","href":"/api-reference/objects/hub-object"},{"title":"Team object","href":"/api-reference/objects/team-object"},{"title":"Add-on object","href":"/api-reference/objects/addon-object"}]}]},{"tab":"Internal API","hidden":true,"pages":[{"title":"Internal API","href":"/api-reference-internal/introduction"}]}]},"basePath":"","title":"Create Activity - MileApp Documentation","deploymentId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","buildId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-5zXlUUV6.js","snippetPresets-D3m2eL-0.js","utils-u8TSWPiZ.js","style-to-object-BY3JEAdk.js","utils-D3TDKJCH.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Om0Y4Ijd.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Cyl7LOol.js","_Uint8Array-BuOv0f5_.js","isObject-FP1Yky1u.js","ApiExamples-BnqLE2Kf.js","usePlaygroundInputsStore-DhQKVH9n.js","shallow-BOCfJNQU.js","isEqual-BrbSa25D.js","CodeSnippets-DUGBlB-S.js","CodeSnippet-CuGpPhIN.js","use-playground-group-access-DYZiRN3l.js","Page-DdEXfHxg.js","api-description-markdown-DDasI_tu.js","DynamicMarkdown-DoPsKgYC.js","SectionHeading-CKObOTcn.js","MethodPill-D_DqPuJw.js","getPastedJson-DWfa7n0M.js","Check2Icon-CEquKboc.js","axios-CsQoIw0U.js","Markdown-CIbHOmUi.js","AssistantPageLink-C0oSAXp0.js","dist-Bp7AI3M8.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}