RetailHardHat Developer docs

REST API documentation

Tasks

Work items and action items assigned to team members

Supported operations

MethodPathDescription
GET/api/v1/tasksList all tasks
GET/api/v1/tasks/:idGet a task by ID
POST/api/v1/tasksCreate a new task
PATCH/api/v1/tasks/:idUpdate a task
DELETE/api/v1/tasks/:idDelete a task

Example request

Replace YOUR_API_KEY with a private key stored in your environment. Replace path parameters with records from your organization.

curl --request GET "/api/v1/tasks" \
  --header "Authorization: Bearer YOUR_API_KEY" \
  --header "Accept: application/json"

Field reference

Required means required by the underlying data model, not necessarily caller-supplied. The server derives protected identity and ownership fields; endpoint validation controls which fields are accepted. Sensitive credential fields are omitted here.

FieldTypeModel requirementDescription
idstringOptionalUnique identifier (auto-generated)
siteIduuidRequiredsite Id

Related resource: sites

phaseIduuidOptionalphase Id

Related resource: phases

parentIduuidOptionalparent Id

Related resource: tasks

titlestringRequiredtitle
descriptionstringOptionaldescription
typeenumOptionaltype

Values: task, inspection, milestone, checklist, phase

teamenumOptionalteam

Values: construction, real_estate, finance, operations, legal, marketing, hr, it, general

assigneestringOptionalassignee
assignedToUserIduuidOptionalassigned To User Id

Related resource: users

priorityenumOptionalpriority

Values: low, medium, high

statusenumOptionalstatus

Values: todo, in_progress, review, completed, cancelled

isUrgentbooleanOptionalis Urgent
estimatedHoursnumberOptionalestimated Hours
tagsarrayOptionaltags
dueDatedatetimeOptionaldue Date
startDatedatetimeOptionalstart Date
dueDaysBeforeOpeningnumberOptionaldue Days Before Opening
startDaysBeforeOpeningnumberOptionalstart Days Before Opening
templateTaskIduuidOptionaltemplate Task Id
completedAtdatetimeOptionalcompleted At
createdAtdatetimeOptionalCreation timestamp (auto)
updatedAtdatetimeOptionalLast update timestamp (auto)