{ "opencollection": "1.0.0", "info": { "name": "Swetrix Admin Annotations Organisations API", "version": "1.0" }, "request": { "auth": { "type": "apikey", "key": "X-Api-Key", "value": "{{X-Api-Key}}", "placement": "header" } }, "items": [ { "info": { "name": "Organisations", "type": "folder" }, "items": [ { "info": { "name": "List Organisations", "type": "http" }, "http": { "method": "GET", "url": "https://api.swetrix.com/v1/organisation" }, "docs": "Retrieves all organisations the user is a member of." }, { "info": { "name": "Create Organisation", "type": "http" }, "http": { "method": "POST", "url": "https://api.swetrix.com/v1/organisation", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new organisation." }, { "info": { "name": "Get Organisation", "type": "http" }, "http": { "method": "GET", "url": "https://api.swetrix.com/v1/organisation/:orgId", "params": [ { "name": "orgId", "value": "", "type": "path", "description": "Organisation ID" } ] }, "docs": "Retrieves details for a specific organisation." }, { "info": { "name": "Update Organisation", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.swetrix.com/v1/organisation/:orgId", "params": [ { "name": "orgId", "value": "", "type": "path", "description": "Organisation ID" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates an organisation's name." }, { "info": { "name": "Delete Organisation", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.swetrix.com/v1/organisation/:orgId", "params": [ { "name": "orgId", "value": "", "type": "path", "description": "Organisation ID" } ] }, "docs": "Permanently deletes an organisation. Requires owner permission." }, { "info": { "name": "Invite Organisation Member", "type": "http" }, "http": { "method": "POST", "url": "https://api.swetrix.com/v1/organisation/:orgId/invite", "params": [ { "name": "orgId", "value": "", "type": "path", "description": "Organisation ID" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Invites a user to join the organisation with a specified role." }, { "info": { "name": "Update Member Role", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.swetrix.com/v1/organisation/member/:memberId", "params": [ { "name": "memberId", "value": "", "type": "path", "description": "Member ID" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates the role of an existing organisation member." }, { "info": { "name": "Remove Organisation Member", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.swetrix.com/v1/organisation/member/:memberId", "params": [ { "name": "memberId", "value": "", "type": "path", "description": "Member ID" } ] }, "docs": "Removes a member from the organisation." } ] } ], "bundled": true }