POSThttps://core-api.heysadie.ai/taskgroups/{id}/tasks/reorder
id order taskId success data tenantId taskgroupId name description instructions outputs toolNames type isDeleted createdAt updatedAt deletedAt metadata timestamp version path error code message details fieldReorder tasks
Try it in the API ExplorerExample request
Terminal
curl -X POST "https://core-api.heysadie.ai/taskgroups/TASKGROUP_ID/tasks/reorder" \
-H "Authorization: ApiKey YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"order": [
{
"taskId": "0195f1e2-0000-7000-8000-000000000000",
"order": 0
}
]
}'Authentication
Authenticate with an API key in the Authorization header using the ApiKey scheme — see Authentication for how keys work and where to get them.
AuthorizationstringrequiredAPI key in the ApiKey scheme: ApiKey YOUR_API_KEY. Tenant keys authorize their own tenant; organization keys can act on any tenant in the organization.
X-Tenant-Idstring (uuid)optionalRequired when authenticating with an organization key — selects the tenant the request acts on. Omit with tenant keys.
Request
Path parameters
idstringrequiredThe resource's UUID.
Body application/json · required
orderobject[]requiredShow 2 item properties
taskIdstring (uuid)requiredordernumberrequiredResponses
200
successbooleanrequireddataobject[]optionalShow 14 item properties
idstring (uuid)requiredtenantIdstring (uuid)requiredtaskgroupIdstring (uuid)requiredordernumberrequirednamestringrequireddescriptionstringrequiredinstructionsstringrequiredoutputsstring[] | nullrequiredtoolNamesstring[] | nullrequiredtypestring | nullrequiredisDeletedbooleanrequiredcreatedAtstring (date-time) | string (date) | number | nullrequiredupdatedAtstring (date-time) | string (date) | number | nullrequireddeletedAtstring (date-time) | string (date) | number | nullrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional400
successbooleanrequirederrorobjectoptionalShow 3 child properties
codeenumrequiredAllowed values:
"VALIDATION_ERROR"messagestringrequireddetailsobject[]optionalShow 2 item properties
fieldstringrequiredmessagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional401
successbooleanrequirederrorobjectoptionalShow 2 child properties
codeenumrequiredAllowed values:
"UNAUTHORIZED"messagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional403
successbooleanrequirederrorobjectoptionalShow 2 child properties
codeenumrequiredAllowed values:
"FORBIDDEN"messagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional404
successbooleanrequirederrorobjectoptionalShow 2 child properties
codeenumrequiredAllowed values:
"RESOURCE_NOT_FOUND"messagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional500
successbooleanrequirederrorobjectoptionalShow 2 child properties
codeenumrequiredAllowed values:
"INTERNAL_SERVER_ERROR"messagestringrequiredmetadataobjectoptionalShow 3 child properties
timestampstringrequiredversionstringrequiredpathstringoptional