Update a task. Provided keys are changed; array fields are replaced when present.
Update a task. Provided keys are changed; array fields are replaced when present.
https://app.softsolz.uk/api/v1/services/tasks/tasks/{id}Recent Requests
Log in to see full request historyPath Params
idstringrequiredHeaders
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Idempotency-KeystringOptional idempotency key for safe retries.
Body Params
titlestringTask title (required, trimmed).
instructionsstringWhat the assignee has to do.
category_idintegerCategory to file this under.
prioritystringUrgency. Defaults to normal.
statusstringDefaults to draft. Only published tasks are visible to assignees.
due_atstringDefault deadline.
schedule_modestringDefaults to one_time. A recurring task is a definition and is never assigned directly; its occurrences are separate tasks.
starts_atstringWhen a scheduled task opens.
submission_modestringWhat must come back. Defaults to file_and_text.
required_filesintegerMinimum files per submission.
allowed_submission_countinteger | nullAttempt cap; null means unlimited resubmissions.
allow_late_submissionbooleanAllow submitting past the deadline.
required_fieldsarray of stringsIds of custom fields the assignee must fill in.
grading_schemestringOverrides the category scheme. Omit to inherit.
max_scorenumberDenominator for numeric schemes.
weightnumberWeight in the category rollup. Defaults to 1.
rubricarray of objectsCriteria for the rubric scheme.
checklistarray of objectsSteps the assignee ticks off.
custom_fieldsobjectValues for workspace-defined fields.
expected_updated_atstringOptimistic-concurrency guard; if it does not equal the stored updated_at the call returns 409 STALE_VERSION.
Response
Response Body
idintegerTask id.category_idinteger | nullCategory this task belongs to.titlestringTask title.instructionsstring | nullWhat the assignee has to do.prioritystringUrgency of the work.statusstringTask lifecycle, separate from assignment status. Paused hides the task from assignees; cancelled cascades to open assignments.due_atstring | nullDefault deadline, overridable per assignment.schedule_modestringone_time exists once, scheduled starts at starts_at, recurring is a definition that generates occurrences.starts_atstring | nullWhen a scheduled task becomes visible to assignees.submission_modestringWhat the assignee must send back.required_filesintegerMinimum number of files a submission must carry.allowed_submission_countinteger | nullMaximum attempts; null means unlimited resubmissions.allow_late_submissionbooleanWhether work may still be submitted after the deadline.grading_schemestring | nullOverrides the category scheme; null inherits it.max_scorenumber | nullDenominator for points, percentage and letter schemes.weightnumberWeight of this task in its category rollup. Defaults to 1.rubricarray of objectsCriteria for the rubric scheme: { id, label, max_score, weight }.checklistarray of objectsSteps the assignee ticks off: { id, label, required, requires_note, requires_file }.attachmentsarray of objectsReference material supplied with the task.custom_fieldsobjectValues for the workspace-defined fields on this task.sourcestringWhere the task came from (manual, api, form, template, schedule).template_idinteger | nullThe template this task was created from.assignment_countintegerHow many people this task is assigned to.created_atstringCreation timestamp.updated_atstringRound-trip as expected_updated_at to guard against stale writes.Request
import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.tasks.updateTask('<id>', {});console.log(result);Credentials
Sent as a Bearer token. Stored only in your browser.
Response · 200
{ "data": { "id": 0, "category_id": 0, "title": "string", "instructions": "string", "priority": "string", "status": "string", "due_at": "string", "schedule_mode": "string", "starts_at": "string", "submission_mode": "string", "required_files": 0, "allowed_submission_count": 0, "allow_late_submission": true, "grading_scheme": "string", "max_score": "string", "weight": 0, "rubric": [], "checklist": [], "attachments": [], "custom_fields": {}, "source": "string", "template_id": 0, "assignment_count": 0, "created_at": "string", "updated_at": "string" }}