Skip to content

Commit c3c7059

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Mark PATCH /api/v2/incidents/incident_id/attachments endpoint as deprecated (#2766)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 7b025f7 commit c3c7059

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65621,6 +65621,7 @@ paths:
6562165621

6562265622
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6562365623
patch:
65624+
deprecated: true
6562465625
description: The bulk update endpoint for creating, updating, and deleting attachments
6562565626
for a given incident.
6562665627
operationId: UpdateIncidentAttachments
@@ -65659,9 +65660,7 @@ paths:
6565965660
operator: OR
6566065661
permissions:
6566165662
- incident_write
65662-
x-unstable: '**Note**: This endpoint is in public beta.
65663-
65664-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
65663+
x-unstable: '**Note**: This endpoint is deprecated.'
6566565664
/api/v2/incidents/{incident_id}/impacts:
6566665665
get:
6566765666
description: Get all impacts for an incident.

lib/datadog_api_client/v2/api/incidents_api.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2299,12 +2299,15 @@ def update_incident_attachments(incident_id, body, opts = {})
22992299
#
23002300
# The bulk update endpoint for creating, updating, and deleting attachments for a given incident.
23012301
#
2302+
# @deprecated This API is deprecated.
2303+
#
23022304
# @param incident_id [String] The UUID of the incident.
23032305
# @param body [IncidentAttachmentUpdateRequest] Incident Attachment Payload.
23042306
# @param opts [Hash] the optional parameters
23052307
# @option opts [Array<IncidentAttachmentRelatedObject>] :include Specifies which types of related objects are included in the response.
23062308
# @return [Array<(IncidentAttachmentUpdateResponse, Integer, Hash)>] IncidentAttachmentUpdateResponse data, response status code and response headers
23072309
def update_incident_attachments_with_http_info(incident_id, body, opts = {})
2310+
warn "[DEPRECATION] `UpdateIncidentAttachments` is deprecated."
23082311
unstable_enabled = @api_client.config.unstable_operations["v2.update_incident_attachments".to_sym]
23092312
if unstable_enabled
23102313
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.update_incident_attachments")

0 commit comments

Comments
 (0)