123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- {
- "get": {
- "tags": [
- "SCIM"
- ],
- "description": "Query an individual team with a SCIM Group GET Request.\n- Note that the members field will only contain up to 10000 members.",
- "operationId": "Query an Individual Team",
- "parameters": [
- {
- "name": "organization_slug",
- "description": "The slug of the organization.",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "required": true,
- "description": "The id of the team you'd like to query.",
- "schema": {
- "type": "integer"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "Success",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "../../components/schemas/scim/group.json#/Group"
- },
- "example": {
- "schemas": [
- "urn:ietf:params:scim:schemas:core:2.0:Group"
- ],
- "id": "23232",
- "displayName": "test-scimv2",
- "members": [],
- "meta": {
- "resourceType": "Group"
- }
- }
- }
- }
- },
- "401": {
- "description": "Unauthorized"
- },
- "403": {
- "description": "Forbidden"
- }
- },
- "security": [
- {
- "auth_token": [
- "team: read"
- ]
- }
- ]
- },
- "patch": {
- "tags": [
- "SCIM"
- ],
- "description": "Update a team's attributes with a SCIM Group PATCH Request. Valid Operations are:\n* Renaming a team: \n```json\n{\n \"op\": \"replace\",\n \"value\": {\n \"id\": 23,\n \"displayName\": \"newName\"\n }\n}\n```\n* Adding a member to a team: \n```json\n{\n \"op\": \"add\",\n \"path\": \"members\",\n \"value\": [\n {\n \"value\": 23,\n \"display\": \"testexample@example.com\"\n }\n ]\n}\n```\n* Removing a member from a team: \n```json\n{\n \"op\": \"remove\",\n \"path\": \"members[value eq \\\"23\\\"]\"\n}\n``` \n* Replacing an entire member set of a team: \n```json\n{\n \"op\": \"replace\",\n \"path\": \"members\",\n \"value\": [\n {\n \"value\": 23,\n \"display\": \"testexample2@sentry.io\"\n },\n {\n \"value\": 24,\n \"display\": \"testexample3@sentry.io\"\n }\n ]\n}\n```",
- "operationId": "Update a Team's Attributes",
- "parameters": [
- {
- "name": "organization_slug",
- "description": "The slug of the organization.",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "required": true,
- "description": "The id of the team you'd like to query.",
- "schema": {
- "type": "integer"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "required": [
- "schemas","Operations"
- ],
- "type": "object",
- "properties": {
- "schemas": {
- "$ref": "../../components/schemas/scim/user.json#/definitions/schemas"
- },
- "Operations": {
- "type": "array",
- "items": {
- "type": "object"
- }
- }
- }
- },
- "example": {
- "schemas": [
- "urn:ietf:params:scim:api:messages:2.0:PatchOp"
- ],
- "Operations": [
- {
- "op": "replace",
- "value": {
- "active": false
- }
- }
- ]
- }
- }
- },
- "required": true
- },
- "responses": {
- "204": {
- "description": "Success"
- },
- "401": {
- "description": "Unauthorized"
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Not Found."
- }
- },
- "security": [
- {
- "auth_token": [
- "team:write"
- ]
- }
- ]
- },
- "delete": {
- "tags": [
- "SCIM"
- ],
- "description": "Delete a team with a SCIM Group DELETE Request.",
- "operationId": "Delete an Individual Team",
- "parameters": [
- {
- "name": "organization_slug",
- "description": "The slug of the organization.",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_id",
- "in": "path",
- "required": true,
- "description": "The id of the team you'd like to delete.",
- "schema": {
- "type": "integer"
- }
- }
- ],
- "responses": {
- "204": {
- "description": "Success"
- },
- "404": {
- "description": "Not Found"
- }
- },
- "security": [
- {
- "auth_token": [
- "team: admin"
- ]
- }
- ]
- }
- }
|