{ "opencollection": "1.0.0", "info": { "name": "Sana Assignments Groups API", "version": "v0/v1" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Groups", "type": "folder" }, "items": [ { "info": { "name": "List all groups", "type": "http" }, "http": { "method": "GET", "url": "https://{domain}.sana.ai/api/v0/groups", "params": [ { "name": "next", "value": "", "type": "query", "description": "Cursor to fetch the next batch of results" }, { "name": "limit", "value": "", "type": "query", "description": "Number of items to return (default 100, max 1000)" } ] }, "docs": "List all groups" }, { "info": { "name": "Create a group", "type": "http" }, "http": { "method": "POST", "url": "https://{domain}.sana.ai/api/v0/groups" }, "docs": "Create a group" }, { "info": { "name": "Retrieve a group", "type": "http" }, "http": { "method": "GET", "url": "https://{domain}.sana.ai/api/v0/groups/:groupId", "params": [ { "name": "groupId", "value": "", "type": "path" } ] }, "docs": "Retrieve a group" }, { "info": { "name": "Update a group", "type": "http" }, "http": { "method": "PATCH", "url": "https://{domain}.sana.ai/api/v0/groups/:groupId", "params": [ { "name": "groupId", "value": "", "type": "path" } ] }, "docs": "Update a group" }, { "info": { "name": "Delete a group", "type": "http" }, "http": { "method": "DELETE", "url": "https://{domain}.sana.ai/api/v0/groups/:groupId", "params": [ { "name": "groupId", "value": "", "type": "path" } ] }, "docs": "Delete a group" }, { "info": { "name": "List a group's users", "type": "http" }, "http": { "method": "GET", "url": "https://{domain}.sana.ai/api/v0/groups/:groupId/users", "params": [ { "name": "groupId", "value": "", "type": "path" } ] }, "docs": "List a group's users" }, { "info": { "name": "Add users to a group", "type": "http" }, "http": { "method": "POST", "url": "https://{domain}.sana.ai/api/v0/groups/:groupId/users", "params": [ { "name": "groupId", "value": "", "type": "path" } ] }, "docs": "Add users to a group" }, { "info": { "name": "Update a user in a group", "type": "http" }, "http": { "method": "PATCH", "url": "https://{domain}.sana.ai/api/v0/groups/:groupId/users/:userId", "params": [ { "name": "groupId", "value": "", "type": "path" }, { "name": "userId", "value": "", "type": "path" } ] }, "docs": "Update a user in a group" }, { "info": { "name": "Remove a user from a group", "type": "http" }, "http": { "method": "DELETE", "url": "https://{domain}.sana.ai/api/v0/groups/:groupId/users/:userId", "params": [ { "name": "groupId", "value": "", "type": "path" }, { "name": "userId", "value": "", "type": "path" } ] }, "docs": "Remove a user from a group" } ] } ], "bundled": true }