List Memberships
Returns a list of memberships associated with the specified hub.
Requires the hubs-members-view permission.
query
Returns
Returns a list of memberships resources, otherwise returns an Error.
GET /v1/hubs/current/members
Example Request
$ curl https://api.cycle.io/v1/hubs/current/members \-H"Authorization: Bearer API_KEY"\-H"X-HUB-ID: HUB_ID"
Example Response
{"data": [{"id": "5b9c2a77b6393d0001eb45fd","account_id": "5a232a77b6393d0001ac2df2","hub_id": "5ccc2a2226393d1231eb4abd","events": {"created": "2021-04-06T18:32:21.783Z","updated": "2021-04-12T19:57:49.767Z","deleted": "0001-01-01T00:00:00Z","joined": "2021-04-06T18:32:27.02Z"},"state": {"changed": "2021-04-06T18:32:27.092Z","current": "accepted"},"role": 2,"permissions": {"all_environments": true,"environments": []},"preferences": {"notifications": {"api_keys": false}},"invitation": {"sender": {"id": "5ccc2a2226393d1231eb4abd","type": "account"},"recipient": "demouser@cycleplatform.io","events": {"accepted": "2021-04-06T18:32:27.02Z","declined": "0001-01-01T00:00:00Z","revoked": "0001-01-01T00:00:00Z"}}}]}