Add community subscribe/unsubscribe section on the profile settings page
Opened this issue · 1 comments
sushilshinde commented
sushilshinde commented
API Details
- Congitive, iOS and Predix member subscriptions happens via memberCerts/registrations API (legacy).
- Blockchain subscriptions happens via groups API
Refer to skills picker code for details(it has add only implementation, edit is not implemented here)
Edit API
There is no update endpoint for in these APIs, use DELETE endpoint for unsubscribe user
-
For memberCerts/registrations API, use
DELETE https://api.topcoder-dev.com/v3/memberCert/registrations/{userId}/programs/{programId}/
DELETE is not working currently, issue is open -
For groups API, use
DELETE https://api.topcoder-dev.com/v3/groups/{programId}/members/{membershipId}/
use "id" as "membershipId" from GET response
{
"id": "480",
"modifiedBy": null,
"modifiedAt": null,
"createdBy": "40153832",
"createdAt": "2017-09-13T14:38:42.000Z",
"groupId": 20000010,
"groupName": null,
"memberId": 40153832,
"membershipType": "user"
}