team_index.json 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. {
  2. "get": {
  3. "tags": [
  4. "SCIM"
  5. ],
  6. "description": "Returns a paginated list of teams bound to a organization with a SCIM Groups GET Request.\n- Note that the members field will only contain up to 10000 members.",
  7. "operationId": "List an Organization's Paginated Teams",
  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. "$ref": "../../components/parameters/scim.json#/startIndex"
  20. },
  21. {
  22. "$ref": "../../components/parameters/scim.json#/filter"
  23. },
  24. {
  25. "$ref": "../../components/parameters/scim.json#/count"
  26. },
  27. {
  28. "name": "excludedAttributes",
  29. "in": "query",
  30. "required": false,
  31. "description": "Fields that should be left off of return values. Right now the only supported field for this query is `members`.",
  32. "schema": {
  33. "type": "string"
  34. }
  35. }
  36. ],
  37. "responses": {
  38. "200": {
  39. "description": "Success",
  40. "content": {
  41. "application/json": {
  42. "schema": {
  43. "$ref": "../../components/schemas/scim/group_list.json#/GroupList"
  44. },
  45. "example": {
  46. "schemas": [
  47. "urn:ietf:params:scim:api:messages:2.0:ListResponse"
  48. ],
  49. "totalResults": 1,
  50. "startIndex": 1,
  51. "itemsPerPage": 1,
  52. "Resources": [
  53. {
  54. "schemas": [
  55. "urn:ietf:params:scim:schemas:core:2.0:Group"
  56. ],
  57. "id": "23232",
  58. "displayName": "test-scimv2",
  59. "members": [],
  60. "meta": {
  61. "resourceType": "Group"
  62. }
  63. }
  64. ]
  65. }
  66. }
  67. }
  68. },
  69. "401": {
  70. "description": "Permission Denied"
  71. },
  72. "403": {
  73. "description": "Forbidden"
  74. },
  75. "404": {
  76. "description": "Not Found"
  77. }
  78. },
  79. "security": [
  80. {
  81. "auth_token": [
  82. "team:read"
  83. ]
  84. }
  85. ]
  86. },
  87. "post": {
  88. "tags": [
  89. "SCIM"
  90. ],
  91. "description": "Create a new team bound to an organization via a SCIM Groups POST Request. Note that teams are always created with an empty member set. The endpoint will also do a normalization of uppercase / spaces to lowercase and dashes.",
  92. "operationId": "Provision a New Team",
  93. "parameters": [
  94. {
  95. "name": "organization_slug",
  96. "description": "The slug of the organization.",
  97. "in": "path",
  98. "required": true,
  99. "schema": {
  100. "type": "string"
  101. }
  102. }
  103. ],
  104. "requestBody": {
  105. "content": {
  106. "application/json": {
  107. "schema": {
  108. "required": [
  109. "schemas","displayName"
  110. ],
  111. "type": "object",
  112. "properties": {
  113. "schemas": {
  114. "$ref": "../../components/schemas/scim/group.json#/definitions/schemas"
  115. },
  116. "displayName": {
  117. "$ref": "../../components/schemas/scim/group.json#/definitions/displayName"
  118. },
  119. "members": {
  120. "$ref": "../../components/schemas/scim/group.json#/definitions/members"
  121. }
  122. }
  123. },
  124. "example": {
  125. "schemas": [
  126. "urn:ietf:params:scim:schemas:core:2.0:Group"
  127. ],
  128. "displayName": "Test SCIMv2",
  129. "members": []
  130. }
  131. }
  132. },
  133. "required": true
  134. },
  135. "responses": {
  136. "201": {
  137. "description": "Success",
  138. "content": {
  139. "application/json": {
  140. "schema": {
  141. "$ref": "../../components/schemas/scim/group.json#/Group"
  142. },
  143. "example": {
  144. "schemas": [
  145. "urn:ietf:params:scim:schemas:core:2.0:Group"
  146. ],
  147. "displayName": "Test SCIMv2",
  148. "members": [],
  149. "meta": {
  150. "resourceType": "Group"
  151. },
  152. "id": "123"
  153. }
  154. }
  155. }
  156. },
  157. "400": {
  158. "description": "Bad input"
  159. },
  160. "403": {
  161. "description": "Forbidden"
  162. },
  163. "409": {
  164. "description": "Team slug already exists"
  165. }
  166. },
  167. "security": [
  168. {
  169. "auth_token": [
  170. "team:write"
  171. ]
  172. }
  173. ]
  174. }
  175. }