@@ -2192,6 +2192,14 @@ components:
21922192 type: string
21932193 x-enum-varnames:
21942194 - BILLING_DIMENSIONS
2195+ AddMemberTeamRequest:
2196+ description: Request to add a member team to super team's hierarchy
2197+ properties:
2198+ data:
2199+ $ref: '#/components/schemas/MemberTeam'
2200+ required:
2201+ - data
2202+ type: object
21952203 Advisory:
21962204 description: Advisory.
21972205 properties:
@@ -21003,6 +21011,28 @@ components:
2100321011 - ms_channel_name
2100421012 - redirect_url
2100521013 type: object
21014+ MemberTeam:
21015+ description: A member team
21016+ properties:
21017+ id:
21018+ description: The member team's identifier
21019+ example: aeadc05e-98a8-11ec-ac2c-da7ad0900001
21020+ type: string
21021+ type:
21022+ $ref: '#/components/schemas/MemberTeamType'
21023+ required:
21024+ - id
21025+ - type
21026+ type: object
21027+ MemberTeamType:
21028+ default: member_teams
21029+ description: Member team type
21030+ enum:
21031+ - member_teams
21032+ example: member_teams
21033+ type: string
21034+ x-enum-varnames:
21035+ - MEMBER_TEAMS
2100621036 Metadata:
2100721037 description: The metadata related to this request.
2100821038 properties:
@@ -59781,6 +59811,156 @@ paths:
5978159811 permissions:
5978259812 - teams_read
5978359813 - teams_manage
59814+ /api/v2/team/{super_team_id}/member_teams:
59815+ get:
59816+ description: Get all member teams.
59817+ operationId: ListMemberTeams
59818+ parameters:
59819+ - description: None
59820+ in: path
59821+ name: super_team_id
59822+ required: true
59823+ schema:
59824+ type: string
59825+ - $ref: '#/components/parameters/PageSize'
59826+ - $ref: '#/components/parameters/PageNumber'
59827+ - description: List of fields that need to be fetched.
59828+ explode: false
59829+ in: query
59830+ name: fields[team]
59831+ required: false
59832+ schema:
59833+ items:
59834+ $ref: '#/components/schemas/TeamsField'
59835+ type: array
59836+ responses:
59837+ '200':
59838+ content:
59839+ application/json:
59840+ schema:
59841+ $ref: '#/components/schemas/TeamsResponse'
59842+ description: OK
59843+ '403':
59844+ $ref: '#/components/responses/ForbiddenResponse'
59845+ '404':
59846+ content:
59847+ application/json:
59848+ schema:
59849+ $ref: '#/components/schemas/APIErrorResponse'
59850+ description: API error response.
59851+ '429':
59852+ $ref: '#/components/responses/TooManyRequestsResponse'
59853+ security:
59854+ - apiKeyAuth: []
59855+ appKeyAuth: []
59856+ - AuthZ:
59857+ - teams_read
59858+ summary: Get all member teams
59859+ tags:
59860+ - Teams
59861+ x-pagination:
59862+ limitParam: page[size]
59863+ pageParam: page[number]
59864+ resultsPath: data
59865+ x-permission:
59866+ operator: OR
59867+ permissions:
59868+ - teams_read
59869+ x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
59870+
59871+ contact [Datadog support](https://docs.datadoghq.com/help/).'
59872+ post:
59873+ description: 'Add a member team.
59874+
59875+ Adds the team given by the `id` in the body as a member team of the super
59876+ team.'
59877+ operationId: AddMemberTeam
59878+ parameters:
59879+ - description: None
59880+ in: path
59881+ name: super_team_id
59882+ required: true
59883+ schema:
59884+ type: string
59885+ requestBody:
59886+ content:
59887+ application/json:
59888+ schema:
59889+ $ref: '#/components/schemas/AddMemberTeamRequest'
59890+ required: true
59891+ responses:
59892+ '204':
59893+ description: Added
59894+ '403':
59895+ $ref: '#/components/responses/ForbiddenResponse'
59896+ '409':
59897+ content:
59898+ application/json:
59899+ schema:
59900+ $ref: '#/components/schemas/APIErrorResponse'
59901+ description: API error response.
59902+ '429':
59903+ $ref: '#/components/responses/TooManyRequestsResponse'
59904+ security:
59905+ - apiKeyAuth: []
59906+ appKeyAuth: []
59907+ - AuthZ:
59908+ - teams_read
59909+ summary: Add a member team
59910+ tags:
59911+ - Teams
59912+ x-permission:
59913+ operator: OR
59914+ permissions:
59915+ - teams_read
59916+ x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
59917+
59918+ contact [Datadog support](https://docs.datadoghq.com/help/).'
59919+ /api/v2/team/{super_team_id}/member_teams/{member_team_id}:
59920+ delete:
59921+ description: Remove a super team's member team identified by `member_team_id`.
59922+ operationId: RemoveMemberTeam
59923+ parameters:
59924+ - description: None
59925+ in: path
59926+ name: super_team_id
59927+ required: true
59928+ schema:
59929+ type: string
59930+ - description: None
59931+ in: path
59932+ name: member_team_id
59933+ required: true
59934+ schema:
59935+ type: string
59936+ responses:
59937+ '204':
59938+ description: No Content
59939+ '403':
59940+ $ref: '#/components/responses/ForbiddenResponse'
59941+ '404':
59942+ content:
59943+ application/json:
59944+ schema:
59945+ $ref: '#/components/schemas/APIErrorResponse'
59946+ description: API error response.
59947+ '429':
59948+ $ref: '#/components/responses/TooManyRequestsResponse'
59949+ security:
59950+ - apiKeyAuth: []
59951+ appKeyAuth: []
59952+ - AuthZ:
59953+ - teams_read
59954+ summary: Remove a member team
59955+ tags:
59956+ - Teams
59957+ x-permission:
59958+ operator: OR
59959+ permissions:
59960+ - teams_read
59961+ x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
59962+
59963+ contact [Datadog support](https://docs.datadoghq.com/help/).'
5978459964 /api/v2/team/{team_id}:
5978559965 delete:
5978659966 description: Remove a team using the team's `id`.
0 commit comments