curl --request POST \
--url https://api.buildr.com/api/2023-01/project_team_memberships \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"project_team_membership": {
"user_id": "953",
"roles": [
"project_admin"
]
}
}'
{
"project_team_membership": {
"id": "750",
"created_at": "2023-02-14T18:13:00Z",
"updated_at": "2023-04-03T20:16:30Z",
"user": {
"id": "953",
"created_at": "2023-02-14T18:13:00Z",
"updated_at": "2023-04-03T20:16:30Z",
"first_name": "Russell",
"last_name": "Westbrook",
"name": "Russell Westbrook",
"email": "russell.westbrook@example.com"
},
"project": {
"id": "129",
"created_at": "2023-02-14T18:13:00Z",
"updated_at": "2023-04-03T20:16:30Z",
"name": "Culver High Rise"
},
"roles": [
{
"id": "830",
"created_at": "2023-02-14T18:13:00Z",
"updated_at": "2023-04-03T20:16:30Z",
"role": "project_manager",
"name": "Project Manager"
}
]
}
}
Add a new team member to a project with specified roles
curl --request POST \
--url https://api.buildr.com/api/2023-01/project_team_memberships \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"project_team_membership": {
"user_id": "953",
"roles": [
"project_admin"
]
}
}'
{
"project_team_membership": {
"id": "750",
"created_at": "2023-02-14T18:13:00Z",
"updated_at": "2023-04-03T20:16:30Z",
"user": {
"id": "953",
"created_at": "2023-02-14T18:13:00Z",
"updated_at": "2023-04-03T20:16:30Z",
"first_name": "Russell",
"last_name": "Westbrook",
"name": "Russell Westbrook",
"email": "russell.westbrook@example.com"
},
"project": {
"id": "129",
"created_at": "2023-02-14T18:13:00Z",
"updated_at": "2023-04-03T20:16:30Z",
"name": "Culver High Rise"
},
"roles": [
{
"id": "830",
"created_at": "2023-02-14T18:13:00Z",
"updated_at": "2023-04-03T20:16:30Z",
"role": "project_manager",
"name": "Project Manager"
}
]
}
}
ID of the project to add team member to
Created Response
The response is of type object
.