team_details.json 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. {
  2. "get": {
  3. "tags": [
  4. "SCIM"
  5. ],
  6. "description": "Query an individual team with a SCIM Group GET Request.\n- Note that the members field will only contain up to 10000 members.",
  7. "operationId": "Query an Individual Team",
  8. "parameters": [
  9. {
  10. "name": "organization_slug",
  11. "description": "The slug of the organization.",
  12. "in": "path",
  13. "required": true,
  14. "schema": {
  15. "type": "string"
  16. }
  17. },
  18. {
  19. "name": "team_id",
  20. "in": "path",
  21. "required": true,
  22. "description": "The id of the team you'd like to query.",
  23. "schema": {
  24. "type": "integer"
  25. }
  26. }
  27. ],
  28. "responses": {
  29. "200": {
  30. "description": "Success",
  31. "content": {
  32. "application/json": {
  33. "schema": {
  34. "$ref": "../../components/schemas/scim/group.json#/Group"
  35. },
  36. "example": {
  37. "schemas": [
  38. "urn:ietf:params:scim:schemas:core:2.0:Group"
  39. ],
  40. "id": "23232",
  41. "displayName": "test-scimv2",
  42. "members": [],
  43. "meta": {
  44. "resourceType": "Group"
  45. }
  46. }
  47. }
  48. }
  49. },
  50. "401": {
  51. "description": "Unauthorized"
  52. },
  53. "403": {
  54. "description": "Forbidden"
  55. }
  56. },
  57. "security": [
  58. {
  59. "auth_token": [
  60. "team: read"
  61. ]
  62. }
  63. ]
  64. },
  65. "patch": {
  66. "tags": [
  67. "SCIM"
  68. ],
  69. "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```",
  70. "operationId": "Update a Team's Attributes",
  71. "parameters": [
  72. {
  73. "name": "organization_slug",
  74. "description": "The slug of the organization.",
  75. "in": "path",
  76. "required": true,
  77. "schema": {
  78. "type": "string"
  79. }
  80. },
  81. {
  82. "name": "team_id",
  83. "in": "path",
  84. "required": true,
  85. "description": "The id of the team you'd like to query.",
  86. "schema": {
  87. "type": "integer"
  88. }
  89. }
  90. ],
  91. "requestBody": {
  92. "content": {
  93. "application/json": {
  94. "schema": {
  95. "required": [
  96. "schemas","Operations"
  97. ],
  98. "type": "object",
  99. "properties": {
  100. "schemas": {
  101. "$ref": "../../components/schemas/scim/user.json#/definitions/schemas"
  102. },
  103. "Operations": {
  104. "type": "array"
  105. }
  106. }
  107. },
  108. "example": {
  109. "schemas": [
  110. "urn:ietf:params:scim:api:messages:2.0:PatchOp"
  111. ],
  112. "Operations": [
  113. {
  114. "op": "replace",
  115. "value": {
  116. "active": false
  117. }
  118. }
  119. ]
  120. }
  121. }
  122. },
  123. "required": true
  124. },
  125. "responses": {
  126. "204": {
  127. "description": "Success"
  128. },
  129. "401": {
  130. "description": "Unauthorized"
  131. },
  132. "403": {
  133. "description": "Forbidden"
  134. },
  135. "404": {
  136. "description": "Not Found."
  137. }
  138. },
  139. "security": [
  140. {
  141. "auth_token": [
  142. "team:write"
  143. ]
  144. }
  145. ]
  146. },
  147. "delete": {
  148. "tags": [
  149. "SCIM"
  150. ],
  151. "description": "Delete a team with a SCIM Group DELETE Request.",
  152. "operationId": "Delete an Individual Team",
  153. "parameters": [
  154. {
  155. "name": "organization_slug",
  156. "description": "The slug of the organization.",
  157. "in": "path",
  158. "required": true,
  159. "schema": {
  160. "type": "string"
  161. }
  162. },
  163. {
  164. "name": "team_id",
  165. "in": "path",
  166. "required": true,
  167. "description": "The id of the team you'd like to delete.",
  168. "schema": {
  169. "type": "integer"
  170. }
  171. }
  172. ],
  173. "responses": {
  174. "204": {
  175. "description": "Success"
  176. },
  177. "404": {
  178. "description": "Not Found"
  179. }
  180. },
  181. "security": [
  182. {
  183. "auth_token": [
  184. "team: admin"
  185. ]
  186. }
  187. ]
  188. }
  189. }