Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
145 changes: 49 additions & 96 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,14 @@ components:
required: true
schema:
type: string
AttachmentIDPathParameter:
description: The ID of the attachment.
in: path
name: attachment_id
required: true
schema:
example: 00000000-0000-0000-0000-000000000001
type: string
AttachmentIncludeQueryParameter:
description: 'Resource to include in the response. Supported value: `last_modified_by_user`.'
explode: false
Expand Down Expand Up @@ -5348,6 +5356,8 @@ components:
- project
type: object
Attachment:
description: An attachment response containing the attachment data and related
objects.
properties:
data:
$ref: '#/components/schemas/AttachmentData'
Expand All @@ -5357,22 +5367,9 @@ components:
type: array
type: object
AttachmentArray:
description: A list of incident attachments.
properties:
data:
example:
- attributes:
attachment:
documentUrl: https://app.datadoghq.com/notebook/123/Postmortem-IR-123
title: Postmortem IR-123
attachment_type: postmortem
modified: '2025-01-01T01:01:01.000000001Z'
id: 00000000-abcd-0002-0000-000000000000
relationships:
last_modified_by_user:
data:
id: 00000000-0000-0000-cccc-000000000000
type: users
type: incident_attachments
items:
$ref: '#/components/schemas/AttachmentData'
type: array
Expand All @@ -5384,24 +5381,12 @@ components:
- data
type: object
AttachmentData:
example:
attributes:
attachment:
documentUrl: https://app.datadoghq.com/notebook/123/Postmortem-IR-123
title: Postmortem IR-123
attachment_type: postmortem
modified: '2025-01-01T01:01:01.000000001Z'
id: 00000000-abcd-0002-0000-000000000000
relationships:
last_modified_by_user:
data:
id: 00000000-0000-0000-cccc-000000000000
type: users
type: incident_attachments
description: Attachment data from a response.
properties:
attributes:
$ref: '#/components/schemas/AttachmentDataAttributes'
id:
description: The unique identifier of the attachment.
example: 00000000-abcd-0002-0000-000000000000
type: string
relationships:
Expand All @@ -5415,56 +5400,52 @@ components:
- id
type: object
AttachmentDataAttributes:
description: The attachment's attributes.
properties:
attachment:
$ref: '#/components/schemas/AttachmentDataAttributesAttachment'
attachment_type:
$ref: '#/components/schemas/AttachmentDataAttributesAttachmentType'
modified:
description: Timestamp when the attachment was last modified.
example: '2025-01-01T01:01:01.000000001Z'
format: date-time
type: string
type: object
AttachmentDataAttributesAttachment:
description: The attachment object.
properties:
documentUrl:
description: The URL of the attachment.
example: https://app.datadoghq.com/notebook/123/Postmortem-IR-123
type: string
title:
description: The title of the attachment.
example: Postmortem IR-123
type: string
type: object
AttachmentDataAttributesAttachmentType:
description: The type of the attachment.
enum:
- postmortem
- link
example: postmortem
type: string
x-enum-varnames:
- POSTMORTEM
- LINK
AttachmentDataRelationships:
description: The attachment's resource relationships.
properties:
incident:
$ref: '#/components/schemas/RelationshipToIncident'
last_modified_by_user:
$ref: '#/components/schemas/AttachmentDataRelationshipsLastModifiedByUser'
type: object
AttachmentDataRelationshipsLastModifiedByUser:
properties:
data:
$ref: '#/components/schemas/AttachmentDataRelationshipsLastModifiedByUserData'
required:
- data
type: object
AttachmentDataRelationshipsLastModifiedByUserData:
properties:
id:
example: ''
type: string
type:
$ref: '#/components/schemas/UserType'
required:
- type
- id
$ref: '#/components/schemas/RelationshipToUser'
type: object
AttachmentIncluded:
description: Objects related to an attachment.
oneOf:
- $ref: '#/components/schemas/User140420082644000'
- $ref: '#/components/schemas/IncidentUserData'
AuditLogsEvent:
description: Object description of an Audit Logs event after it is processed
and stored by Datadog.
Expand Down Expand Up @@ -13007,20 +12988,13 @@ components:
- type
type: object
CreateAttachmentRequest:
example:
data:
attributes:
attachment:
documentUrl: https://app.datadoghq.com/notebook/123/Postmortem-IR-123
title: Postmortem-IR-123
attachment_type: postmortem
id: 00000000-0000-0000-0000-000000000000
type: incident_attachments
description: Create request for an attachment.
properties:
data:
$ref: '#/components/schemas/CreateAttachmentRequestData'
type: object
CreateAttachmentRequestData:
description: Attachment data for a create request.
properties:
attributes:
$ref: '#/components/schemas/CreateAttachmentRequestDataAttributes'
Expand All @@ -13032,17 +13006,23 @@ components:
- type
type: object
CreateAttachmentRequestDataAttributes:
description: The attributes for creating an attachment.
properties:
attachment:
$ref: '#/components/schemas/CreateAttachmentRequestDataAttributesAttachment'
attachment_type:
$ref: '#/components/schemas/AttachmentDataAttributesAttachmentType'
type: object
CreateAttachmentRequestDataAttributesAttachment:
description: The attachment object for creating an attachment.
properties:
documentUrl:
description: The URL of the attachment.
example: https://app.datadoghq.com/notebook/123/Postmortem-IR-123
type: string
title:
description: The title of the attachment.
example: Postmortem-IR-123
type: string
type: object
CreateCaseRequestArray:
Expand Down Expand Up @@ -40471,38 +40451,41 @@ components:
type: array
type: object
PatchAttachmentRequest:
example:
data:
attributes:
attachment:
documentUrl: https://app.datadoghq.com/notebook/124/Postmortem-IR-124
title: Postmortem-IR-124
type: incident_attachments
description: Request to update an attachment.
properties:
data:
$ref: '#/components/schemas/PatchAttachmentRequestData'
type: object
PatchAttachmentRequestData:
description: Attachment data for an update request.
properties:
attributes:
$ref: '#/components/schemas/PatchAttachmentRequestDataAttributes'
id:
description: The unique identifier of the attachment.
example: 00000000-abcd-0002-0000-000000000000
type: string
type:
$ref: '#/components/schemas/IncidentAttachmentType'
required:
- type
type: object
PatchAttachmentRequestDataAttributes:
description: The attributes for updating an attachment.
properties:
attachment:
$ref: '#/components/schemas/PatchAttachmentRequestDataAttributesAttachment'
type: object
PatchAttachmentRequestDataAttributesAttachment:
description: The updated attachment object.
properties:
documentUrl:
description: The updated URL for the attachment.
example: https://app.datadoghq.com/notebook/124/Postmortem-IR-124
type: string
title:
description: The updated title for the attachment.
example: Postmortem-IR-124
type: string
type: object
PatchIncidentNotificationTemplateRequest:
Expand Down Expand Up @@ -57476,17 +57459,6 @@ components:
type:
$ref: '#/components/schemas/UsersType'
type: object
User140420082644000:
properties:
attributes:
$ref: '#/components/schemas/UserAttributes'
id:
type: string
type:
$ref: '#/components/schemas/UserType'
required:
- type
type: object
UserAttributes:
description: Attributes of user object returned by the API.
properties:
Expand Down Expand Up @@ -57937,15 +57909,6 @@ components:
meta:
$ref: '#/components/schemas/TeamsResponseMeta'
type: object
UserType:
default: users
description: Users resource type.
enum:
- users
example: users
type: string
x-enum-varnames:
- USERS
UserUpdateAttributes:
description: Attributes of the edited user.
properties:
Expand Down Expand Up @@ -69946,12 +69909,7 @@ paths:
operationId: DeleteIncidentAttachment
parameters:
- $ref: '#/components/parameters/IncidentIDPathParameter'
- description: The ID of the attachment.
in: path
name: attachment_id
required: true
schema:
example: 00000000-0000-0000-0000-000000000002
- $ref: '#/components/parameters/AttachmentIDPathParameter'
responses:
'204':
description: No Content
Expand Down Expand Up @@ -69982,12 +69940,7 @@ paths:
operationId: UpdateIncidentAttachment
parameters:
- $ref: '#/components/parameters/IncidentIDPathParameter'
- description: The ID of the attachment.
in: path
name: attachment_id
required: true
schema:
example: 00000000-0000-0000-0000-000000000002
- $ref: '#/components/parameters/AttachmentIDPathParameter'
- $ref: '#/components/parameters/AttachmentIncludeQueryParameter'
requestBody:
content:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-04T19:02:15.577Z
2026-01-07T15:19:12.813Z
Loading
Loading