Mutations
addProjectMembers
Add members to a project.
Template for Mutation:
mutation AddProjectMembers($input: addProjectMembersInput!){
addProjectMembers(input: $input) {
# AddProjectMembersPayload Fields
}
}
Arguments
| input* addProjectMembersInput non-null | Input object for adding members to a project. |
* Required
Possible Returns
| Value Type | Description |
|---|---|
| AddProjectMembersPayload | Return payload on add project members operation. |
Examples
Example 1
Adds members to a project with specified roles.
Query:
mutation AddProjectMembers($input: AddProjectMembersInput!) {
addProjectMembers(input: $input) {
project {
id
name
}
}
}
Show More
Query Variables:
{
"input": {
"projectId": "urn:adsk.workspace:beta.project:99497e80-4c1f-4ca7-8132-4bf1735e4d68",
"memberRole": "EDITOR",
"emailAddresses": ["newmember@example.com"]
}
}
Response:
{
"data": {
"addProjectMembers": {
"project": {
"id": "urn:adsk.workspace:beta.project:99497e80-4c1f-4ca7-8132-4bf1735e4d68",
"name": "Espresso Machine"
}
}
}
}
Show More