Update org person
Path parameters
-
The organization's person unique document ID, i.e.
org.people[].person
.
Body Required
-
permission string
Determines the person's permissions within the organization. The
member
andprojectManager
do not have access to the organization space, they are just employees. Amanager
has limited access to the organization space, like managing basic organizational settings, invoice information, leave requests, etc. Anadmin
has full control over the organization. Theobserver
can view everything, but not change anything.Values are
member
,projectManager
,manager
,admin
, orobserver
. -
startDate string(date-time)
The start date in ISOString format. See .toISOString().
-
endDate string(date-time)
The end date in ISOString format. See .toISOString().
-
role string
Reference to an org role, i.e.
org.roles[]._id
-
roleTitle string
The title of the role. E.g. Director of Sales
-
email string(email)
The person's email in the organization.
-
departments array[string(ObjectId)]
Departments this person belongs to. References the organization's departments, i.e.
org.departments[]._id
. -
office string(ObjectId)
The person's office location. References the organization's offices, i.e.
org.offices[]._id
. -
canCreateProjects boolean
If true, this person can create projects for this organization.
Default value is
false
. -
canApproveRoles boolean
If true, this person can approve project roles.
Default value is
false
. -
canApproveLeaves boolean
If true, this person can approve leave requests.
Default value is
false
. -
customProperties array[object]
Display custom properties on the organization's person information page that are not supported by missionX out of the box.
curl \
-X PATCH https://open.api.missionx.ai/v1/orgs/people/{personId} \
-H "Content-Type: application/json" \
-d '{"permission":"member","startDate":"2025-05-04T09:42:00+00:00","endDate":"2025-05-04T09:42:00+00:00","role":"string","roleTitle":"string","email":"hello@example.com","departments":["string"],"office":"string","canCreateProjects":false,"canApproveRoles":false,"canApproveLeaves":false,"customProperties":[{"name":"string","canView":"member","description":"string"}]}'
{
"permission": "member",
"startDate": "2025-05-04T09:42:00+00:00",
"endDate": "2025-05-04T09:42:00+00:00",
"role": "string",
"roleTitle": "string",
"email": "hello@example.com",
"departments": [
"string"
],
"office": "string",
"canCreateProjects": false,
"canApproveRoles": false,
"canApproveLeaves": false,
"customProperties": [
{
"name": "string",
"canView": "member",
"description": "string"
}
]
}
{
"_id": "string",
"permission": "member",
"startDate": "2025-05-04T09:42:00+00:00",
"endDate": "2025-05-04T09:42:00+00:00",
"person": "string",
"role": "string",
"roleTitle": "string",
"email": "hello@example.com",
"departments": [
"string"
],
"office": "string",
"invitePendingSince": 42.0,
"canCreateProjects": false,
"canApproveRoles": false,
"canApproveLeaves": false,
"customProperties": [
{
"name": "string",
"canView": "member",
"description": "string"
}
]
}
{
"message": "string",
"code": "string",
"data": {}
}
{
"message": "string",
"code": "string",
"data": {}
}