Swetrix Organisations API
Manage organisations and member access
Operations 8
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Ask an LLM
“Which organisations am I a member of?”
“Can I see all the Swetrix teams my account belongs to?”
Tell an agent
List every organisation I'm a member of.
Show my organisations.
Ask an LLM
“How do I set up a new organisation to share analytics projects with a team?”
“What do I need to provide to create an organisation?”
Tell an agent
Create an organisation named {name}.
Set up a new team organisation called {name}.
Ask an LLM
“What are the details of a specific organisation I belong to?”
“Can I look up a single organisation by its ID?”
Tell an agent
Get the details of organisation {orgId}.
Show me organisation {orgId}.
Ask an LLM
“How do I rename an organisation?”
“Is the organisation name the only thing I can change after creating it?”
Tell an agent
Rename organisation {orgId} to {name}.
Change the name of organisation {orgId} to {name}.
Ask an LLM
“Who is allowed to permanently delete an organisation?”
“Can I shut down an organisation for good?”
Tell an agent destructive · confirm first
Permanently delete organisation {orgId}.
Remove organisation {orgId} entirely.
POST
/v1/organisation/{orgId}/invite
Invite someone to an organisation with a role · Invite Organisation Member
#
Ask an LLM
“How do I invite a colleague by email to my organisation?”
“Can I choose a role for someone when inviting them to an organisation?”
Tell an agent
Invite {email} to organisation {orgId} as {role}.
Send an invitation to {email} to join organisation {orgId} with the {role} role.
PATCH
/v1/organisation/member/{memberId}
Change an organisation member's role · Update Member Role
#
Ask an LLM
“Can I promote an existing organisation member to a different role?”
“Which call changes the role of someone already in my organisation?”
Tell an agent
Change the role of member {memberId} to {role}.
Set organisation member {memberId}'s role to {role}.
DELETE
/v1/organisation/member/{memberId}
Remove a member from an organisation · Remove Organisation Member
#
Ask an LLM
“What's the way to kick someone out of my organisation?”
“Can I revoke a teammate's organisation membership?”
Tell an agent destructive · confirm first
Remove member {memberId} from the organisation.
Take organisation member {memberId} off the team.
Documentation
Documentation
https://swetrix.com/docs/statistics-api
Documentation
https://swetrix.com/docs/admin-api
Specifications
Other Resources
Overlay
https://artifacts.apis.io/swetrix/overlays/swetrix-organisations-api-overlay.yaml
PostmanCollection
https://artifacts.apis.io/swetrix/postman/swetrix-organisations-api.postman_collection.json
OpenCollection
https://artifacts.apis.io/swetrix/collections/swetrix-organisations-api.opencollection.json