Summary
We’ve enhanced the functionality of all memberships endpoints to support additional membership types:
-
Custom field memberships are now supported across all five memberships endpoints:
-
Portfolio and goal memberships are now supported by the GET /memberships/:membership_gid endpoint (in addition to the project memberships it already supported)
The updated endpoints now allow for broader interaction with goals, projects, portfolios, and custom fields memberships, enabling you to query, create, update, and delete memberships across these different Asana object types.
Why we’re making this change
These updates were designed to provide more flexibility in managing memberships across different Asana object types. By adding support for custom field, portfolio, and goal memberships, you now have an easier way to integrate their workflows across a wider array of Asana projects and resources. This enhances the versatility of our memberships API, while keeping things intuitive and consistent.
Who is affected
- Developers using memberships endpoints: Your existing integrations will not be affected by this change, as there are no breaking changes. The new functionality is additive, allowing you to manage custom fields, portfolios, and goals memberships alongside projects
- Use cases for new membership types: If your application interacts with custom fields, portfolios, or goals, these new membership types can now be managed through the same API endpoints
Usage
The API reference has been updated to reflect the new changes. See any of the five memberships endpoints for details and examples.
Example request
GET /memberships?parent=<CUSTOM_FIELD_GID>&member=<USER_GID>
Example response
{
"data": [
{
"gid": "<MEMBERSHIP_GID>",
"parent": {
"gid": "<CUSTOM_FIELD_GID>",
"name": "Test",
"resource_subtype": "text",
"resource_type": "custom_field",
"type": "text",
"privacy_setting": "public",
"is_formula_field": false
},
"member": {
"gid": "<USER_GID>",
"name": "My user name",
"resource_type": "user"
},
"access_level": "admin",
"resource_type": "membership",
"resource_subtype": "custom_field_membership"
}
]
}
Timeline
These changes are immediately available.