Skip to content

Commit 1add118

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 07f87722 of spec repo
1 parent 003b0bc commit 1add118

File tree

9 files changed

+996
-4
lines changed

9 files changed

+996
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-08-08 12:08:31.725333",
8-
"spec_repo_commit": "d02c8a34"
7+
"regenerated": "2025-08-11 21:21:17.693959",
8+
"spec_repo_commit": "07f87722"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-08-08 12:08:41.667488",
13-
"spec_repo_commit": "d02c8a34"
12+
"regenerated": "2025-08-11 21:21:28.272164",
13+
"spec_repo_commit": "07f87722"
1414
}
1515
}
1616
}

config/_default/menus/api.en.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9683,6 +9683,19 @@ menu:
96839683
unstable:
96849684
- v2
96859685
order: 21
9686+
- name: Link Teams with GitHub Teams
9687+
url: '#link-teams-with-github-teams'
9688+
identifier: teams-link-teams-with-github-teams
9689+
parent: teams
9690+
generated: true
9691+
params:
9692+
versions:
9693+
- v2
9694+
operationids:
9695+
- SyncTeams
9696+
unstable:
9697+
- v2
9698+
order: 19
96869699
- name: Create a team
96879700
url: '#create-a-team'
96889701
identifier: teams-create-a-team

content/en/api/v2/teams/examples.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,55 @@
261261
"html": "<div class=\"\"><div class=\"row hasChildData \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row js-collapse-trigger collapse-trigger \">\n <div class=\"col-4 column\">\n <p class=\"key\"><span class=\"toggle-arrow\"><svg width=\"6\" height=\"9\" viewBox=\"0 0 6 9\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.7294 4.45711L0.733399 7.82311L1.1294 8.29111L5.6654 4.45711L1.1294 0.641113L0.751398 1.12711L4.7294 4.45711Z\" fill=\"black\"/></svg></span> data&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>object</p></div>\n <div class=\"col-6 column\"><p>Team create</p></div>\n </div>\n <div class=\"row isNested d-none hasChildData \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row js-collapse-trigger collapse-trigger \">\n <div class=\"col-4 column\">\n <p class=\"key\"><span class=\"toggle-arrow\"><svg width=\"6\" height=\"9\" viewBox=\"0 0 6 9\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.7294 4.45711L0.733399 7.82311L1.1294 8.29111L5.6654 4.45711L1.1294 0.641113L0.751398 1.12711L4.7294 4.45711Z\" fill=\"black\"/></svg></span> attributes&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>object</p></div>\n <div class=\"col-6 column\"><p>Team creation attributes</p></div>\n </div>\n <div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">avatar</p>\n </div>\n <div class=\"col-2 column\"><p>string</p></div>\n <div class=\"col-6 column\"><p>Unicode representation of the avatar for the team, limited to a single grapheme</p></div>\n </div>\n \n </div>\n </div><div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">banner</p>\n </div>\n <div class=\"col-2 column\"><p>int64</p></div>\n <div class=\"col-6 column\"><p>Banner selection for the team</p></div>\n </div>\n \n </div>\n </div><div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">description</p>\n </div>\n <div class=\"col-2 column\"><p>string</p></div>\n <div class=\"col-6 column\"><p>Free-form markdown description/content for the team&#39;s homepage</p></div>\n </div>\n \n </div>\n </div><div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">handle&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>string</p></div>\n <div class=\"col-6 column\"><p>The team&#39;s identifier</p></div>\n </div>\n \n </div>\n </div><div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">hidden_modules</p>\n </div>\n <div class=\"col-2 column\"><p>[string]</p></div>\n <div class=\"col-6 column\"><p>Collection of hidden modules for the team</p></div>\n </div>\n \n </div>\n </div><div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">name&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>string</p></div>\n <div class=\"col-6 column\"><p>The name of the team</p></div>\n </div>\n \n </div>\n </div><div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">visible_modules</p>\n </div>\n <div class=\"col-2 column\"><p>[string]</p></div>\n <div class=\"col-6 column\"><p>Collection of visible modules for the team</p></div>\n </div>\n \n </div>\n </div>\n </div>\n </div><div class=\"row isNested d-none hasChildData \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row js-collapse-trigger collapse-trigger \">\n <div class=\"col-4 column\">\n <p class=\"key\"><span class=\"toggle-arrow\"><svg width=\"6\" height=\"9\" viewBox=\"0 0 6 9\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.7294 4.45711L0.733399 7.82311L1.1294 8.29111L5.6654 4.45711L1.1294 0.641113L0.751398 1.12711L4.7294 4.45711Z\" fill=\"black\"/></svg></span> relationships</p>\n </div>\n <div class=\"col-2 column\"><p>object</p></div>\n <div class=\"col-6 column\"><p>Relationships formed with the team on creation</p></div>\n </div>\n <div class=\"row isNested d-none hasChildData \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row js-collapse-trigger collapse-trigger \">\n <div class=\"col-4 column\">\n <p class=\"key\"><span class=\"toggle-arrow\"><svg width=\"6\" height=\"9\" viewBox=\"0 0 6 9\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.7294 4.45711L0.733399 7.82311L1.1294 8.29111L5.6654 4.45711L1.1294 0.641113L0.751398 1.12711L4.7294 4.45711Z\" fill=\"black\"/></svg></span> users</p>\n </div>\n <div class=\"col-2 column\"><p>object</p></div>\n <div class=\"col-6 column\"><p>Relationship to users.</p></div>\n </div>\n <div class=\"row isNested d-none hasChildData \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row js-collapse-trigger collapse-trigger \">\n <div class=\"col-4 column\">\n <p class=\"key\"><span class=\"toggle-arrow\"><svg width=\"6\" height=\"9\" viewBox=\"0 0 6 9\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.7294 4.45711L0.733399 7.82311L1.1294 8.29111L5.6654 4.45711L1.1294 0.641113L0.751398 1.12711L4.7294 4.45711Z\" fill=\"black\"/></svg></span> data&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>[object]</p></div>\n <div class=\"col-6 column\"><p>Relationships to user objects.</p></div>\n </div>\n <div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">id&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>string</p></div>\n <div class=\"col-6 column\"><p>A unique identifier that represents the user.</p></div>\n </div>\n \n </div>\n </div><div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">type&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>enum</p></div>\n <div class=\"col-6 column\"><p>Users resource type. \nAllowed enum values: <code>users</code></p><p>default: <code>users</code></p></div>\n </div>\n \n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div><div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">type&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>enum</p></div>\n <div class=\"col-6 column\"><p>Team type \nAllowed enum values: <code>team</code></p><p>default: <code>team</code></p></div>\n </div>\n \n </div>\n </div>\n </div>\n </div></div>"
262262
}
263263
},
264+
"SyncTeams": {
265+
"responses": {
266+
"403": {
267+
"json": {
268+
"errors": [
269+
"Bad Request"
270+
]
271+
},
272+
"html": "<div class=\"\"><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">errors&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>[string]</p></div>\n <div class=\"col-6 column\"><p>A list of errors.</p></div>\n </div>\n \n </div>\n </div></div>"
273+
},
274+
"429": {
275+
"json": {
276+
"errors": [
277+
"Bad Request"
278+
]
279+
},
280+
"html": "<div class=\"\"><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">errors&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>[string]</p></div>\n <div class=\"col-6 column\"><p>A list of errors.</p></div>\n </div>\n \n </div>\n </div></div>"
281+
},
282+
"500": {
283+
"json": {
284+
"errors": [
285+
"Bad Request"
286+
]
287+
},
288+
"html": "<div class=\"\"><div class=\"row \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">errors&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>[string]</p></div>\n <div class=\"col-6 column\"><p>A list of errors.</p></div>\n </div>\n \n </div>\n </div></div>"
289+
}
290+
},
291+
"request": {
292+
"json_curl": {
293+
"data": {
294+
"attributes": {
295+
"source": "github",
296+
"type": "link"
297+
},
298+
"type": "team_sync_bulk"
299+
}
300+
},
301+
"json": {
302+
"data": {
303+
"attributes": {
304+
"source": "github",
305+
"type": "link"
306+
},
307+
"type": "team_sync_bulk"
308+
}
309+
},
310+
"html": "<div class=\"\"><div class=\"row hasChildData \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row js-collapse-trigger collapse-trigger \">\n <div class=\"col-4 column\">\n <p class=\"key\"><span class=\"toggle-arrow\"><svg width=\"6\" height=\"9\" viewBox=\"0 0 6 9\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.7294 4.45711L0.733399 7.82311L1.1294 8.29111L5.6654 4.45711L1.1294 0.641113L0.751398 1.12711L4.7294 4.45711Z\" fill=\"black\"/></svg></span> data&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>object</p></div>\n <div class=\"col-6 column\"><p>Team sync data.</p></div>\n </div>\n <div class=\"row isNested d-none hasChildData \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row js-collapse-trigger collapse-trigger \">\n <div class=\"col-4 column\">\n <p class=\"key\"><span class=\"toggle-arrow\"><svg width=\"6\" height=\"9\" viewBox=\"0 0 6 9\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.7294 4.45711L0.733399 7.82311L1.1294 8.29111L5.6654 4.45711L1.1294 0.641113L0.751398 1.12711L4.7294 4.45711Z\" fill=\"black\"/></svg></span> attributes&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>object</p></div>\n <div class=\"col-6 column\"><p>Team sync attributes.</p></div>\n </div>\n <div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">source&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>enum</p></div>\n <div class=\"col-6 column\"><p>The external source platform for team synchronization. Only &quot;github&quot; is supported. \nAllowed enum values: <code>github</code></p></div>\n </div>\n \n </div>\n </div><div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">type&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>enum</p></div>\n <div class=\"col-6 column\"><p>The type of synchronization operation. Only &quot;link&quot; is supported, which links existing teams by matching names. \nAllowed enum values: <code>link</code></p></div>\n </div>\n \n </div>\n </div>\n </div>\n </div><div class=\"row isNested d-none \">\n <div class=\"col-12 first-column\">\n <div class=\"row first-row \">\n <div class=\"col-4 column\">\n <p class=\"key\">type&nbsp;[<em>required</em>]</p>\n </div>\n <div class=\"col-2 column\"><p>enum</p></div>\n <div class=\"col-6 column\"><p>Team sync bulk type. \nAllowed enum values: <code>team_sync_bulk</code></p></div>\n </div>\n \n </div>\n </div>\n </div>\n </div></div>"
311+
}
312+
},
264313
"ListMemberTeams": {
265314
"responses": {
266315
"200": {
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"data": {
3+
"attributes": {
4+
"source": "github",
5+
"type": "link"
6+
},
7+
"type": "team_sync_bulk"
8+
}
9+
}

data/api/v2/CodeExamples.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,6 +1541,13 @@
15411541
"description": "Create a team with V2 fields returns \"CREATED\" response"
15421542
}
15431543
],
1544+
"SyncTeams": [
1545+
{
1546+
"group": "teams",
1547+
"suffix": "_3215592344",
1548+
"description": "Sync teams returns \"OK\" response"
1549+
}
1550+
],
15441551
"UpdateTeamLink": [
15451552
{
15461553
"group": "teams",

data/api/v2/full_spec.yaml

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42955,6 +42955,68 @@ components:
4295542955
urgency:
4295642956
$ref: '#/components/schemas/Urgency'
4295742957
type: object
42958+
TeamSyncAttributes:
42959+
description: Team sync attributes.
42960+
properties:
42961+
source:
42962+
$ref: '#/components/schemas/TeamSyncAttributesSource'
42963+
type:
42964+
$ref: '#/components/schemas/TeamSyncAttributesType'
42965+
required:
42966+
- source
42967+
- type
42968+
type: object
42969+
TeamSyncAttributesSource:
42970+
description: The external source platform for team synchronization. Only "github"
42971+
is supported.
42972+
enum:
42973+
- github
42974+
example: github
42975+
type: string
42976+
x-enum-varnames:
42977+
- GITHUB
42978+
TeamSyncAttributesType:
42979+
description: The type of synchronization operation. Only "link" is supported,
42980+
which links existing teams by matching names.
42981+
enum:
42982+
- link
42983+
example: link
42984+
type: string
42985+
x-enum-varnames:
42986+
- LINK
42987+
TeamSyncBulkType:
42988+
description: Team sync bulk type.
42989+
enum:
42990+
- team_sync_bulk
42991+
example: team_sync_bulk
42992+
type: string
42993+
x-enum-varnames:
42994+
- TEAM_SYNC_BULK
42995+
TeamSyncData:
42996+
description: Team sync data.
42997+
properties:
42998+
attributes:
42999+
$ref: '#/components/schemas/TeamSyncAttributes'
43000+
type:
43001+
$ref: '#/components/schemas/TeamSyncBulkType'
43002+
required:
43003+
- attributes
43004+
- type
43005+
type: object
43006+
TeamSyncRequest:
43007+
description: Team sync request.
43008+
example:
43009+
data:
43010+
attributes:
43011+
source: github
43012+
type: link
43013+
type: team_sync_bulk
43014+
properties:
43015+
data:
43016+
$ref: '#/components/schemas/TeamSyncData'
43017+
required:
43018+
- data
43019+
type: object
4295843020
TeamTarget:
4295943021
description: Represents a team target for an escalation policy step, including
4296043022
the team's ID and resource type.
@@ -69564,6 +69626,74 @@ paths:
6956469626
x-merge-override:
6956569627
get: false
6956669628
post: false
69629+
/api/v2/team/sync:
69630+
post:
69631+
description: 'This endpoint attempts to link your existing Datadog teams with
69632+
GitHub teams by matching their names.
69633+
69634+
It evaluates all current Datadog teams and compares them against teams in
69635+
the GitHub organization
69636+
69637+
connected to your Datadog account, based on Datadog Team handle and GitHub
69638+
Team slug
69639+
69640+
(lowercased and kebab-cased).
69641+
69642+
69643+
This operation is read-only on the GitHub side, no teams will be modified
69644+
or created.
69645+
69646+
69647+
[A GitHub organization must be connected to your Datadog account](https://docs.datadoghq.com/integrations/github/),
69648+
69649+
and the GitHub App integrated with Datadog must have the `Members Read` permission.
69650+
Matching is performed by comparing the Datadog team handle to the GitHub team
69651+
slug
69652+
69653+
using a normalized exact match; case is ignored and spaces are removed. No
69654+
modifications are made
69655+
69656+
to teams in GitHub. This will not create new Teams in Datadog.'
69657+
operationId: SyncTeams
69658+
requestBody:
69659+
content:
69660+
application/json:
69661+
schema:
69662+
$ref: '#/components/schemas/TeamSyncRequest'
69663+
required: true
69664+
responses:
69665+
'200':
69666+
description: OK
69667+
'403':
69668+
$ref: '#/components/responses/ForbiddenResponse'
69669+
'429':
69670+
$ref: '#/components/responses/TooManyRequestsResponse'
69671+
'500':
69672+
content:
69673+
application/json:
69674+
schema:
69675+
$ref: '#/components/schemas/APIErrorResponse'
69676+
description: Internal Server Error - Unexpected error during linking.
69677+
security:
69678+
- apiKeyAuth: []
69679+
appKeyAuth: []
69680+
- AuthZ:
69681+
- teams_manage
69682+
summary: Link Teams with GitHub Teams
69683+
tags:
69684+
- Teams
69685+
x-codegen-request-body-name: body
69686+
x-menu-order: 19
69687+
x-permission:
69688+
operator: AND
69689+
permissions:
69690+
- teams_manage
69691+
x-undo:
69692+
type: idempotent
69693+
x-unstable: '**Note**: This endpoint is in Preview. To request access, fill
69694+
out this [form](https://www.datadoghq.com/product-preview/github-integration-for-teams/).
69695+
69696+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6956769697
/api/v2/team/{super_team_id}/member_teams:
6956869698
get:
6956969699
description: Get all member teams.

0 commit comments

Comments
 (0)