Last updated 5 months ago
curl -L \ --url '/memberships/find-membership'
{ "id": 1, "firstName": "John", "lastName": "Doe", "phone": "123-456-7890", "role": "Member", "isActive": true, "invitationAccepted": true }
curl -L \ --url '/memberships/me'
{ "count": 5, "memberships": [ { "id": 1, "firstName": "John", "lastName": "Doe", "phone": "123-456-7890", "role": "Member", "isActive": true, "invitationAccepted": true } ] }
[1,2,3]
curl -L \ --request PUT \ --url '/memberships/archive' \ --header 'Content-Type: application/json' \ --data '{ "ids": [ 1, 2, 3 ] }'
{ "message": "Memberships archived successfully", "description": "The memberships have been archived successfully." }
Member
curl -L \ --request PUT \ --url '/memberships/restore' \ --header 'Content-Type: application/json' \ --data '{ "ids": [ 1, 2, 3 ], "teamRole": "Member" }'
{ "message": "Memberships restored successfully", "description": "The memberships have been restored successfully." }
curl -L \ --request DELETE \ --url '/memberships' \ --header 'Content-Type: application/json' \ --data '{ "ids": [ 1, 2, 3 ] }'
{ "message": "Memberships deleted successfully", "description": "The memberships have been deleted successfully." }