team_details.json 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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. "items": {
  106. "type": "object"
  107. }
  108. }
  109. }
  110. },
  111. "example": {
  112. "schemas": [
  113. "urn:ietf:params:scim:api:messages:2.0:PatchOp"
  114. ],
  115. "Operations": [
  116. {
  117. "op": "replace",
  118. "value": {
  119. "active": false
  120. }
  121. }
  122. ]
  123. }
  124. }
  125. },
  126. "required": true
  127. },
  128. "responses": {
  129. "204": {
  130. "description": "Success"
  131. },
  132. "401": {
  133. "description": "Unauthorized"
  134. },
  135. "403": {
  136. "description": "Forbidden"
  137. },
  138. "404": {
  139. "description": "Not Found."
  140. }
  141. },
  142. "security": [
  143. {
  144. "auth_token": [
  145. "team:write"
  146. ]
  147. }
  148. ]
  149. },
  150. "delete": {
  151. "tags": [
  152. "SCIM"
  153. ],
  154. "description": "Delete a team with a SCIM Group DELETE Request.",
  155. "operationId": "Delete an Individual Team",
  156. "parameters": [
  157. {
  158. "name": "organization_slug",
  159. "description": "The slug of the organization.",
  160. "in": "path",
  161. "required": true,
  162. "schema": {
  163. "type": "string"
  164. }
  165. },
  166. {
  167. "name": "team_id",
  168. "in": "path",
  169. "required": true,
  170. "description": "The id of the team you'd like to delete.",
  171. "schema": {
  172. "type": "integer"
  173. }
  174. }
  175. ],
  176. "responses": {
  177. "204": {
  178. "description": "Success"
  179. },
  180. "404": {
  181. "description": "Not Found"
  182. }
  183. },
  184. "security": [
  185. {
  186. "auth_token": [
  187. "team: admin"
  188. ]
  189. }
  190. ]
  191. }
  192. }