Hi,
You can see below my attempts: a PUT request on a specific membership to change the access. It worked with comment_only
but any other option fails…
Any idea?
Thanks
PS: I still don’t understand why the API says we have to use ADMIN CONTRIBUTOR COMMENTER
, these are not the right options…
cc @sasha_f
2 Likes
Hi @Bastien_Siebman , I tried the following command but I get back an error with a very unhelpful message (“Not Found”). What, if anything, am I doing wrong?
Note: I have replaced personal data (GIDs, API tokens) with generic text between <<>>.
curl --request PUT \
--url https://app.asana.com/api/1.0/memberships/<<membership_gid>> \
--header 'authorization: Bearer <<my_api_token>>' \
--header 'accept: application/json' \
--header 'Asana-Enable: new_memberships' \
--header 'content-type: application/json' \
--data '{"data": {
"member": "<<member_gid>>",
"parent": "<<project_gid>>",
"resource_type": "membership",
"resource_subtype": "project_membership",
"standard_access_level": "commenter" }}'
@Swaroop_Rao ,
The memberships
endpoint you’re trying to access has been rolled back for now in the form in which you’re trying to use it. See:
tl;dr:
halted: replaced by [Launched] Team-Sharing for Goals
the new <METHOD> /memberships endpoint has a new associated resource
objects that support members will now support Teams as members, in addition
to Users
new objects with this membership model will be added over time
https://developers.asana.com/docs will be updated soon
Hey folks,
We’re making some changes to the way you use memberships API. As part of this
change we’ll be retiring a number of endp…