Mutations
addLegacyProjectMembers
Add members to a legacy project.
Template for Query:
mutation AddLegacyProjectMembers($input: addLegacyProjectMembersInput!){
addLegacyProjectMembers(input: $input) {
#AddLegacyProjectMembers Fields
}
}
Template for Query Variables:
{
"input" : "<SOME-ADDLEGACYPROJECTMEMBERS-INPUT-TYPE-SCALAR-VALUE>"
}
Arguments
input* addLegacyProjectMembersInput non-null | Input object for adding members to a legacy project. |
* Required
Possible Returns
Value Type | Description |
---|---|
AddLegacyProjectMembersPayload | Return payload on add legacy project members operation. |
Examples
Example 1
Add Members to a legacy Project
Query:
mutation AddLegacyProjectMembers($input: AddLegacyProjectMembersInput!, $pagination: PaginationInput) {
addLegacyProjectMembers(input: $input) {
project {
name
legacyProjectMembers (pagination: $pagination){
results {
user {
id
email
}
}
pagination {
cursor
pageSize
}
}
}
}
}
Show More
Query Variables:
{
"input": {
"projectId": "urn:adsk.workspace:beta.project:36be9960-bdbd-4d88-b850-f5d52dd4c2d3",
"emailAddresses": [
"chetan.lovanshi@autodesk.com"
],
"role": "EDITOR"
},
"pagination": {
"cursor": "MH41"
}
}
Show More
Response:
{
"data": {
"addLegacyProjectMembers": {
"project": {
"name": "Test Project",
"legacyProjectMembers": {
"results": [
{
"user": {
"id": "MHL2DTVKNTQ27PJE",
"email": "demo.docs@yopmail.com"
}
}
],
"pagination": {
"cursor": null,
"pageSize": 1
}
}
}
}
}
}
Show More