Create project plan item
Manage a project's plan items, i.e. resource roles, cost or revenue items, milestones and phases.
Path parameters
-
The project's unique document ID.
Body Required
-
type string
Determines how a plan item behaves, being tracked and/or affects budgeting. Once set, it cannot be changed.
Values are
role
,cost
,milestone
, orphase
. -
customId string
A custom identifier for internal reference by your system (not used by missionX).
-
startDate string(date-time)
The start date in ISOString format. See .toISOString(). If omitted, defaults to the project's start date.
-
endDate string(date-time)
The end date in ISOString format. See .toISOString(). If omitted, defaults to the project's end date.
-
departments array[string(ObjectId)]
One or more departments this role is associated with. References the organization's departments, i.e.
org.departments[]._id
. -
hoursNeeded number(integer)
The total hours required for this role.
-
role string(ObjectId)
A role associated with this plan item. References the organization's role, i.e.
org.roles[]._id
. -
roleTitle string
The title of the role. E.g. Director of Sales
curl \
-X POST https://open.api.missionx.ai/v1/projects/{projectId}/planItems \
-H "Content-Type: application/json" \
-d '{"type":"role","customId":"string","startDate":"2025-05-04T09:42:00+00:00","endDate":"2025-05-04T09:42:00+00:00","departments":["string"],"hoursNeeded":42.0,"role":"string","roleTitle":"string"}'
{
"type": "role",
"customId": "string",
"startDate": "2025-05-04T09:42:00+00:00",
"endDate": "2025-05-04T09:42:00+00:00",
"departments": [
"string"
],
"hoursNeeded": 42.0,
"role": "string",
"roleTitle": "string"
}
{
"_id": "string",
"createdBy": "string",
"createdAt": "2025-05-04T09:42:00+00:00",
"updatedAt": "2025-05-04T09:42:00+00:00",
"type": "role",
"customId": "string",
"startDate": "2025-05-04T09:42:00+00:00",
"endDate": "2025-05-04T09:42:00+00:00",
"project": "string",
"departments": [
"string"
],
"hoursNeeded": 42.0,
"role": "string",
"roleTitle": "string"
}
{
"message": "string",
"code": "string",
"data": {}
}
{
"message": "string",
"code": "string",
"data": {}
}