RetailHardHat Developer docs

REST API documentation

Projects

General projects for tracking cross-site work (events, marketing, technology, operations, partnerships)

Supported operations

MethodPathDescription
GET/api/v1/projectsList all projects
GET/api/v1/projects/:idGet a project by ID
POST/api/v1/projectsCreate a new project
PATCH/api/v1/projects/:idUpdate a project
DELETE/api/v1/projects/:idDelete a project
GET/api/v1/projects/:id/tasksList tasks for a project
POST/api/v1/projects/:id/tasksCreate a task on a project
PATCH/api/v1/projects/:id/tasks/:taskIdUpdate a project task
DELETE/api/v1/projects/:id/tasks/:taskIdDelete a project task
GET/api/v1/projects/:id/notesList notes on a project
POST/api/v1/projects/:id/notesAdd a note to a project
PATCH/api/v1/projects/:id/notes/:noteIdUpdate a project note
DELETE/api/v1/projects/:id/notes/:noteIdDelete a project note
GET/api/v1/projects/:id/documentsList documents on a project
DELETE/api/v1/projects/:id/documents/:docIdRemove a project document
GET/api/v1/projects/:id/budgetList budget items for a project
POST/api/v1/projects/:id/budgetAdd a budget item to a project
PATCH/api/v1/projects/:id/budget/:itemIdUpdate a project budget item
DELETE/api/v1/projects/:id/budget/:itemIdDelete a project budget item
GET/api/v1/projects/:id/teamList team members on a project
POST/api/v1/projects/:id/teamAdd a team member to a project
DELETE/api/v1/projects/:id/team/:memberIdRemove a team member from a project

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/projects" \
  --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)
siteIduuidOptionalsite Id

Related resource: sites

namestringRequiredname
descriptionstringOptionaldescription
categoryenumOptionalcategory

Values: event, marketing, technology, operations, partnership, other

statusenumOptionalstatus

Values: planning, active, on_hold, completed, cancelled

ownerIduuidOptionalowner Id

Related resource: users

projectLeadIduuidOptionalproject Lead Id
startDatedatetimeOptionalstart Date
endDatedatetimeOptionalend Date
priorityenumOptionalpriority

Values: low, medium, high

phaseIduuidOptionalphase Id
createdAtdatetimeOptionalCreation timestamp (auto)
updatedAtdatetimeOptionalLast update timestamp (auto)