write_project

Add a project with its first tasks, and change a project, its tasks and its milestones with an API key.

Reference

At a glance

ActionNeedsDoes
add_projectregisters:projects:writeAdds a project, with its first tasks if you like
change_projectregisters:projects:writeChanges a project, adds or changes tasks, adds or changes a milestone

Column names ignore case. Dates are YYYY-MM-DD. A person is a member's name or email. Every answer is 200 with a message and a link to the project.

A key cannot remove a project, task or milestone. Such a request is refused, and nothing changes.

Add a project

bash
curl -X POST https://app.alchex.com/api/v1/tools/write_project/add_project \  -H "Authorization: Bearer EXAMPLE_API_KEY" \  -H "Content-Type: application/json" \  -d '{ "cells": { "Name": "Supplier review 2027" }, "rows": [ { "cells": { "Title": "Draft the scope", "Due date": "2027-02-01" } } ] }'

A new project takes only its Name, up to 120 characters. Set the rest with change_project once it exists. Each row in rows, up to 50, is a new task and needs a Title.

Change a project

bash
curl -X POST https://app.alchex.com/api/v1/tools/write_project/change_project \  -H "Authorization: Bearer EXAMPLE_API_KEY" \  -H "Content-Type: application/json" \  -d '{ "recordId": "PROJECT_ID", "cells": { "Health": "at_risk", "Priority": "high", "Owner": "alex@example.com" } }'

Send one kind of change per request:

ToSend with recordId
Change the projectcells
Add tasksrows, each with cells and no taskId
Change one tasktaskId and cells
Change several tasksrows, each with its taskId and cells
Add a milestone"milestoneId": "new" and cells with Name and Date
Change a milestonemilestoneId and cells

Columns and values

ColumnOfValue
NameProject, milestoneText
SummaryProjectText
StatusProjectplanned, in_progress, paused, completed, canceled
PriorityProjecturgent, high, medium, low, none
HealthProjecton_track, at_risk, off_track, none
OwnerProjectA person
Start dateProjectA date
TitleTaskText
DescriptionTask, milestoneText
StatusTasktodo, in_progress, done, canceled
AssigneeTaskA person
Due dateTaskA date
MilestoneTaskA milestone's id
DateMilestoneA date

Refusals

AnswerWhen
400 create_with_name_onlyadd_project sent a column other than Name
400 status_on_new_taskA new task set Status
400 unknown_fieldA column is not one above
400 unknown_choiceA value is not one the column allows
400 bad_dateA date is not YYYY-MM-DD
403 not_allowed_for_api_keyThe request would remove a task or milestone
404 not_foundNo project, task or milestone has that id