Memberships
Create a membership
Creates a new membership in a goal, project, portfolio, custom_type, or custom_field, where members can be Teams or Users.
Returns the full record of the newly created membership.
post/memberships
Request
- Base URL: https://app.asana.com/api/1.0
- URL: https://app.asana.com/api/1.0/memberships
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://app.asana.com/-/oauth_authorize, token URL https://app.asana.com/-/oauth_token)
Request body
Example request
{
"data": {
"access_level": "editor",
"parent": "987654",
"role": "editor"
}
}Response
Successfully created the requested membership.
Example response
{
"data": {
"gid": "12345",
"resource_type": "membership",
"resource_subtype": "goal_membership",
"member": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
},
"parent": {
"gid": "12345",
"resource_type": "goal",
"name": "Grow web traffic by 30%",
"owner": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
}
},
"role": "editor",
"access_level": "editor",
"goal": {
"gid": "12345",
"resource_type": "goal",
"name": "Grow web traffic by 30%",
"owner": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
}
},
"user": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
},
"workspace": {
"gid": "12345",
"resource_type": "workspace",
"name": "My Company Workspace"
}
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.