Path parameters
-
The project's unique document ID.
-
The project's person unique document ID, i.e.
project.people[].person
.
Body Required
-
permission string
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
. -
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 project.
-
isProjectManager boolean
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
. -
rate number(float)
The person's charge rate.
Minimum value is
0
. -
rateTime string
The person's charge rate time.
Values are
oneTime
,recurring
,hourly
,daily
,weekly
,monthly
, oryearly
.
curl \
-X PATCH https://open.api.missionx.ai/v1/projects/{projectId}/people/{personId} \
-H "Content-Type: application/json" \
-d '{"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": {}
}