@@ -178,6 +178,14 @@ components:
178178 required: true
179179 schema:
180180 type: string
181+ AttachmentIDPathParameter:
182+ description: The ID of the attachment.
183+ in: path
184+ name: attachment_id
185+ required: true
186+ schema:
187+ example: 00000000-0000-0000-0000-000000000001
188+ type: string
181189 AttachmentIncludeQueryParameter:
182190 description: 'Resource to include in the response. Supported value: `last_modified_by_user`.'
183191 explode: false
@@ -5333,6 +5341,8 @@ components:
53335341 - project
53345342 type: object
53355343 Attachment:
5344+ description: An attachment response containing the attachment data and related
5345+ objects.
53365346 properties:
53375347 data:
53385348 $ref: '#/components/schemas/AttachmentData'
@@ -5342,22 +5352,9 @@ components:
53425352 type: array
53435353 type: object
53445354 AttachmentArray:
5355+ description: A list of incident attachments.
53455356 properties:
53465357 data:
5347- example:
5348- - attributes:
5349- attachment:
5350- documentUrl: https://app.datadoghq.com/notebook/123/Postmortem-IR-123
5351- title: Postmortem IR-123
5352- attachment_type: postmortem
5353- modified: '2025-01-01T01:01:01.000000001Z'
5354- id: 00000000-abcd-0002-0000-000000000000
5355- relationships:
5356- last_modified_by_user:
5357- data:
5358- id: 00000000-0000-0000-cccc-000000000000
5359- type: users
5360- type: incident_attachments
53615358 items:
53625359 $ref: '#/components/schemas/AttachmentData'
53635360 type: array
@@ -5369,24 +5366,12 @@ components:
53695366 - data
53705367 type: object
53715368 AttachmentData:
5372- example:
5373- attributes:
5374- attachment:
5375- documentUrl: https://app.datadoghq.com/notebook/123/Postmortem-IR-123
5376- title: Postmortem IR-123
5377- attachment_type: postmortem
5378- modified: '2025-01-01T01:01:01.000000001Z'
5379- id: 00000000-abcd-0002-0000-000000000000
5380- relationships:
5381- last_modified_by_user:
5382- data:
5383- id: 00000000-0000-0000-cccc-000000000000
5384- type: users
5385- type: incident_attachments
5369+ description: Attachment data from a response.
53865370 properties:
53875371 attributes:
53885372 $ref: '#/components/schemas/AttachmentDataAttributes'
53895373 id:
5374+ description: The unique identifier of the attachment.
53905375 example: 00000000-abcd-0002-0000-000000000000
53915376 type: string
53925377 relationships:
@@ -5400,56 +5385,52 @@ components:
54005385 - id
54015386 type: object
54025387 AttachmentDataAttributes:
5388+ description: The attachment's attributes.
54035389 properties:
54045390 attachment:
54055391 $ref: '#/components/schemas/AttachmentDataAttributesAttachment'
54065392 attachment_type:
54075393 $ref: '#/components/schemas/AttachmentDataAttributesAttachmentType'
54085394 modified:
5395+ description: Timestamp when the attachment was last modified.
5396+ example: '2025-01-01T01:01:01.000000001Z'
54095397 format: date-time
54105398 type: string
54115399 type: object
54125400 AttachmentDataAttributesAttachment:
5401+ description: The attachment object.
54135402 properties:
54145403 documentUrl:
5404+ description: The URL of the attachment.
5405+ example: https://app.datadoghq.com/notebook/123/Postmortem-IR-123
54155406 type: string
54165407 title:
5408+ description: The title of the attachment.
5409+ example: Postmortem IR-123
54175410 type: string
54185411 type: object
54195412 AttachmentDataAttributesAttachmentType:
5413+ description: The type of the attachment.
54205414 enum:
54215415 - postmortem
54225416 - link
5417+ example: postmortem
54235418 type: string
54245419 x-enum-varnames:
54255420 - POSTMORTEM
54265421 - LINK
54275422 AttachmentDataRelationships:
5423+ description: The attachment's resource relationships.
54285424 properties:
5425+ incident:
5426+ $ref: '#/components/schemas/RelationshipToIncident'
54295427 last_modified_by_user:
5430- $ref: '#/components/schemas/AttachmentDataRelationshipsLastModifiedByUser'
5431- type: object
5432- AttachmentDataRelationshipsLastModifiedByUser:
5433- properties:
5434- data:
5435- $ref: '#/components/schemas/AttachmentDataRelationshipsLastModifiedByUserData'
5436- required:
5437- - data
5438- type: object
5439- AttachmentDataRelationshipsLastModifiedByUserData:
5440- properties:
5441- id:
5442- example: ''
5443- type: string
5444- type:
5445- $ref: '#/components/schemas/UserType'
5446- required:
5447- - type
5448- - id
5428+ $ref: '#/components/schemas/RelationshipToUser'
54495429 type: object
54505430 AttachmentIncluded:
5431+ description: Objects related to an attachment.
54515432 oneOf:
5452- - $ref: '#/components/schemas/User140420082644000 '
5433+ - $ref: '#/components/schemas/IncidentUserData '
54535434 AuditLogsEvent:
54545435 description: Object description of an Audit Logs event after it is processed
54555436 and stored by Datadog.
@@ -13005,20 +12986,13 @@ components:
1300512986 - type
1300612987 type: object
1300712988 CreateAttachmentRequest:
13008- example:
13009- data:
13010- attributes:
13011- attachment:
13012- documentUrl: https://app.datadoghq.com/notebook/123/Postmortem-IR-123
13013- title: Postmortem-IR-123
13014- attachment_type: postmortem
13015- id: 00000000-0000-0000-0000-000000000000
13016- type: incident_attachments
12989+ description: Create request for an attachment.
1301712990 properties:
1301812991 data:
1301912992 $ref: '#/components/schemas/CreateAttachmentRequestData'
1302012993 type: object
1302112994 CreateAttachmentRequestData:
12995+ description: Attachment data for a create request.
1302212996 properties:
1302312997 attributes:
1302412998 $ref: '#/components/schemas/CreateAttachmentRequestDataAttributes'
@@ -13030,17 +13004,23 @@ components:
1303013004 - type
1303113005 type: object
1303213006 CreateAttachmentRequestDataAttributes:
13007+ description: The attributes for creating an attachment.
1303313008 properties:
1303413009 attachment:
1303513010 $ref: '#/components/schemas/CreateAttachmentRequestDataAttributesAttachment'
1303613011 attachment_type:
1303713012 $ref: '#/components/schemas/AttachmentDataAttributesAttachmentType'
1303813013 type: object
1303913014 CreateAttachmentRequestDataAttributesAttachment:
13015+ description: The attachment object for creating an attachment.
1304013016 properties:
1304113017 documentUrl:
13018+ description: The URL of the attachment.
13019+ example: https://app.datadoghq.com/notebook/123/Postmortem-IR-123
1304213020 type: string
1304313021 title:
13022+ description: The title of the attachment.
13023+ example: Postmortem-IR-123
1304413024 type: string
1304513025 type: object
1304613026 CreateCaseRequestArray:
@@ -41519,38 +41499,41 @@ components:
4151941499 type: array
4152041500 type: object
4152141501 PatchAttachmentRequest:
41522- example:
41523- data:
41524- attributes:
41525- attachment:
41526- documentUrl: https://app.datadoghq.com/notebook/124/Postmortem-IR-124
41527- title: Postmortem-IR-124
41528- type: incident_attachments
41502+ description: Request to update an attachment.
4152941503 properties:
4153041504 data:
4153141505 $ref: '#/components/schemas/PatchAttachmentRequestData'
4153241506 type: object
4153341507 PatchAttachmentRequestData:
41508+ description: Attachment data for an update request.
4153441509 properties:
4153541510 attributes:
4153641511 $ref: '#/components/schemas/PatchAttachmentRequestDataAttributes'
4153741512 id:
41513+ description: The unique identifier of the attachment.
41514+ example: 00000000-abcd-0002-0000-000000000000
4153841515 type: string
4153941516 type:
4154041517 $ref: '#/components/schemas/IncidentAttachmentType'
4154141518 required:
4154241519 - type
4154341520 type: object
4154441521 PatchAttachmentRequestDataAttributes:
41522+ description: The attributes for updating an attachment.
4154541523 properties:
4154641524 attachment:
4154741525 $ref: '#/components/schemas/PatchAttachmentRequestDataAttributesAttachment'
4154841526 type: object
4154941527 PatchAttachmentRequestDataAttributesAttachment:
41528+ description: The updated attachment object.
4155041529 properties:
4155141530 documentUrl:
41531+ description: The updated URL for the attachment.
41532+ example: https://app.datadoghq.com/notebook/124/Postmortem-IR-124
4155241533 type: string
4155341534 title:
41535+ description: The updated title for the attachment.
41536+ example: Postmortem-IR-124
4155441537 type: string
4155541538 type: object
4155641539 PatchIncidentNotificationTemplateRequest:
@@ -58944,17 +58927,6 @@ components:
5894458927 type:
5894558928 $ref: '#/components/schemas/UsersType'
5894658929 type: object
58947- User140420082644000:
58948- properties:
58949- attributes:
58950- $ref: '#/components/schemas/UserAttributes'
58951- id:
58952- type: string
58953- type:
58954- $ref: '#/components/schemas/UserType'
58955- required:
58956- - type
58957- type: object
5895858930 UserAttributes:
5895958931 description: Attributes of user object returned by the API.
5896058932 properties:
@@ -59405,15 +59377,6 @@ components:
5940559377 meta:
5940659378 $ref: '#/components/schemas/TeamsResponseMeta'
5940759379 type: object
59408- UserType:
59409- default: users
59410- description: Users resource type.
59411- enum:
59412- - users
59413- example: users
59414- type: string
59415- x-enum-varnames:
59416- - USERS
5941759380 UserUpdateAttributes:
5941859381 description: Attributes of the edited user.
5941959382 properties:
@@ -71451,12 +71414,7 @@ paths:
7145171414 operationId: DeleteIncidentAttachment
7145271415 parameters:
7145371416 - $ref: '#/components/parameters/IncidentIDPathParameter'
71454- - description: The ID of the attachment.
71455- in: path
71456- name: attachment_id
71457- required: true
71458- schema:
71459- example: 00000000-0000-0000-0000-000000000002
71417+ - $ref: '#/components/parameters/AttachmentIDPathParameter'
7146071418 responses:
7146171419 '204':
7146271420 description: No Content
@@ -71487,12 +71445,7 @@ paths:
7148771445 operationId: UpdateIncidentAttachment
7148871446 parameters:
7148971447 - $ref: '#/components/parameters/IncidentIDPathParameter'
71490- - description: The ID of the attachment.
71491- in: path
71492- name: attachment_id
71493- required: true
71494- schema:
71495- example: 00000000-0000-0000-0000-000000000002
71448+ - $ref: '#/components/parameters/AttachmentIDPathParameter'
7149671449 - $ref: '#/components/parameters/AttachmentIncludeQueryParameter'
7149771450 requestBody:
7149871451 content:
0 commit comments