Path parameters
-
The project's unique document ID.
-
The project's person unique document ID, i.e.
project.people[].person
.
Body
Required
-
Determines the person's permissions within the project. A
member
can do basic work on the project, amanager
has additional control over the project, like managing basic settings, project duration, people rates, etc. and anadmin
has full control over the project. Theobserver
can view everything, but not change anything.Values are
member
,manager
,admin
, orobserver
. -
Reference to an org role, i.e.
org.roles[]._id
-
The title of the role. E.g. Director of Sales
-
The person's email in the project.
-
If true, this person can act as a project manager. A project manager can assign resources to roles, approve leave requests, etc.
Default value is
false
. -
The person's charge rate.
Minimum value is
0
. -
The person's charge rate time.
Values are
oneTime
,recurring
,hourly
,daily
,weekly
,monthly
, oryearly
.
curl \
--request PATCH 'https://open.api.missionx.ai/v2/projects/{projectId}/people/{personId}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"permission":"member","role":"string","roleTitle":"string","email":"hello@example.com","isProjectManager":false,"rate":42.0,"rateTime":"oneTime"}'
{
"permission": "member",
"role": "string",
"roleTitle": "string",
"email": "hello@example.com",
"isProjectManager": false,
"rate": 42.0,
"rateTime": "oneTime"
}
{
"_id": "string",
"permission": "member",
"person": "string",
"role": "string",
"roleTitle": "string",
"email": "hello@example.com",
"isProjectManager": false,
"rate": 42.0,
"rateTime": "oneTime",
"invitePendingSince": 42.0,
"praise": 42.0
}
{
"message": "string",
"code": "string",
"data": {}
}
{
"message": "string",
"code": "string",
"data": {}
}