Update plan item
Manage plan items, i.e. resource roles, cost or revenue items, milestones and phases.
Path parameters
-
The plan item's unique document ID, i.e.
project.planItems[]
.
Body Required
-
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
PATCH
/planItems/{planItemId}
curl \
-X PATCH https://open.api.missionx.ai/v1/planItems/{planItemId} \
-H "Content-Type: application/json" \
-d '{"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"}'
Request examples
{
"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"
}
Response examples (200)
{
"_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"
}
Response examples (400)
{
"message": "string",
"code": "string",
"data": {}
}
Response examples (500)
{
"message": "string",
"code": "string",
"data": {}
}