From 0b295e7c32025ab050e7be2a3608551cd37f8033 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 31 Jul 2025 10:47:41 +0000 Subject: [PATCH] Regenerate client from commit b75095c of spec repo --- .generated-info | 4 +- .generator/schemas/v2/openapi.yaml | 76 +++++++- .../v2/case-management/UpdateAttributes.java | 47 +++++ .../api/client/v2/api/CaseManagementApi.java | 159 +++++++++++++++ .../com/datadog/api/client/v2/model/Case.java | 2 +- .../api/client/v2/model/CaseAttributes.java | 39 +++- .../client/v2/model/CaseUpdateAttributes.java | 181 ++++++++++++++++++ .../model/CaseUpdateAttributesAttributes.java | 152 +++++++++++++++ .../v2/model/CaseUpdateAttributesRequest.java | 146 ++++++++++++++ ...e_case_returns_Bad_Request_response.freeze | 2 +- ...ive_case_returns_Bad_Request_response.json | 8 +- ...ive_case_returns_Not_Found_response.freeze | 2 +- .../Archive_case_returns_OK_response.freeze | 2 +- .../v2/Archive_case_returns_OK_response.json | 10 +- ...n_case_returns_Bad_Request_response.freeze | 2 +- ...ign_case_returns_Bad_Request_response.json | 10 +- ...ign_case_returns_Not_Found_response.freeze | 2 +- ...ssign_case_returns_Not_Found_response.json | 14 +- .../v2/Assign_case_returns_OK_response.freeze | 2 +- .../v2/Assign_case_returns_OK_response.json | 22 +-- ...a_case_returns_Bad_Request_response.freeze | 2 +- ...ate_a_case_returns_CREATED_response.freeze | 2 +- ...reate_a_case_returns_CREATED_response.json | 16 +- ...f_a_case_returns_Not_Found_response.freeze | 2 +- ...tails_of_a_case_returns_OK_response.freeze | 2 +- ...details_of_a_case_returns_OK_response.json | 10 +- ...e_case_returns_Bad_Request_response.freeze | 2 +- ...ive_case_returns_Bad_Request_response.json | 8 +- ...ive_case_returns_Not_Found_response.freeze | 2 +- .../Unarchive_case_returns_OK_response.freeze | 2 +- .../Unarchive_case_returns_OK_response.json | 10 +- ...n_case_returns_Bad_Request_response.freeze | 2 +- ...ign_case_returns_Bad_Request_response.json | 8 +- ...ign_case_returns_Not_Found_response.freeze | 2 +- .../Unassign_case_returns_OK_response.freeze | 2 +- .../v2/Unassign_case_returns_OK_response.json | 10 +- ...ibutes_returns_Bad_Request_response.freeze | 1 + ...tributes_returns_Bad_Request_response.json | 62 ++++++ ...tributes_returns_Not_Found_response.freeze | 1 + ...attributes_returns_Not_Found_response.json | 32 ++++ ...case_attributes_returns_OK_response.freeze | 1 + ...e_case_attributes_returns_OK_response.json | 62 ++++++ ...iority_returns_Bad_Request_response.freeze | 2 +- ...priority_returns_Bad_Request_response.json | 10 +- ...priority_returns_Not_Found_response.freeze | 2 +- ...e_case_priority_returns_OK_response.freeze | 2 +- ...ate_case_priority_returns_OK_response.json | 10 +- ...status_returns_Bad_Request_response.freeze | 2 +- ...e_status_returns_Bad_Request_response.json | 10 +- ...e_status_returns_Not_Found_response.freeze | 2 +- ...ate_case_status_returns_OK_response.freeze | 2 +- ...pdate_case_status_returns_OK_response.json | 10 +- .../api/client/v2/api/case_management.feature | 26 +++ .../com/datadog/api/client/v2/api/undo.json | 6 + 54 files changed, 1097 insertions(+), 110 deletions(-) create mode 100644 examples/v2/case-management/UpdateAttributes.java create mode 100644 src/main/java/com/datadog/api/client/v2/model/CaseUpdateAttributes.java create mode 100644 src/main/java/com/datadog/api/client/v2/model/CaseUpdateAttributesAttributes.java create mode 100644 src/main/java/com/datadog/api/client/v2/model/CaseUpdateAttributesRequest.java create mode 100644 src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Bad_Request_response.freeze create mode 100644 src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Bad_Request_response.json create mode 100644 src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Not_Found_response.freeze create mode 100644 src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Not_Found_response.json create mode 100644 src/test/resources/cassettes/features/v2/Update_case_attributes_returns_OK_response.freeze create mode 100644 src/test/resources/cassettes/features/v2/Update_case_attributes_returns_OK_response.json diff --git a/.generated-info b/.generated-info index 8095a1a8a13..07f40a846c1 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "dcf594e", - "generated": "2025-07-31 09:56:59.725" + "spec_repo_commit": "b75095c", + "generated": "2025-07-31 10:47:40.935" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4ae32284e0d..b125b71c69d 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -6891,7 +6891,7 @@ components: - data type: object CaseAttributes: - description: Case attributes + description: Case resource attributes properties: archived_at: description: Timestamp of when the case was archived @@ -6899,6 +6899,8 @@ components: nullable: true readOnly: true type: string + attributes: + $ref: '#/components/schemas/CaseObjectAttributes' closed_at: description: Timestamp of when the case was closed format: date-time @@ -7003,6 +7005,13 @@ components: required: - data type: object + CaseObjectAttributes: + additionalProperties: + items: + type: string + type: array + description: The definition of `CaseObjectAttributes` object. + type: object CasePriority: default: NOT_DEFINED description: Case priority @@ -7098,6 +7107,33 @@ components: type: string x-enum-varnames: - STANDARD + CaseUpdateAttributes: + description: Case update attributes + properties: + attributes: + $ref: '#/components/schemas/CaseUpdateAttributesAttributes' + type: + $ref: '#/components/schemas/CaseResourceType' + required: + - attributes + - type + type: object + CaseUpdateAttributesAttributes: + description: Case update attributes attributes + properties: + attributes: + $ref: '#/components/schemas/CaseObjectAttributes' + required: + - attributes + type: object + CaseUpdateAttributesRequest: + description: Case update attributes request + properties: + data: + $ref: '#/components/schemas/CaseUpdateAttributes' + required: + - data + type: object CaseUpdatePriority: description: Case priority status properties: @@ -45579,6 +45615,44 @@ paths: summary: Assign case tags: - Case Management + /api/v2/cases/{case_id}/attributes: + post: + description: Update case attributes + operationId: UpdateAttributes + parameters: + - $ref: '#/components/parameters/CaseIDPathParameter' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CaseUpdateAttributesRequest' + description: Case attributes update payload + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CaseResponse' + description: OK + '400': + $ref: '#/components/responses/BadRequestResponse' + '401': + $ref: '#/components/responses/UnauthorizedResponse' + '403': + $ref: '#/components/responses/ForbiddenResponse' + '404': + $ref: '#/components/responses/NotFoundResponse' + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - cases_write + summary: Update case attributes + tags: + - Case Management /api/v2/cases/{case_id}/priority: post: description: Update case priority diff --git a/examples/v2/case-management/UpdateAttributes.java b/examples/v2/case-management/UpdateAttributes.java new file mode 100644 index 00000000000..326d1bb3603 --- /dev/null +++ b/examples/v2/case-management/UpdateAttributes.java @@ -0,0 +1,47 @@ +// Update case attributes returns "OK" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.CaseManagementApi; +import com.datadog.api.client.v2.model.CaseResourceType; +import com.datadog.api.client.v2.model.CaseResponse; +import com.datadog.api.client.v2.model.CaseUpdateAttributes; +import com.datadog.api.client.v2.model.CaseUpdateAttributesAttributes; +import com.datadog.api.client.v2.model.CaseUpdateAttributesRequest; +import java.util.Arrays; +import java.util.Collections; +import java.util.Map; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + CaseManagementApi apiInstance = new CaseManagementApi(defaultClient); + + // there is a valid "case" in the system + String CASE_ID = System.getenv("CASE_ID"); + + CaseUpdateAttributesRequest body = + new CaseUpdateAttributesRequest() + .data( + new CaseUpdateAttributes() + .attributes( + new CaseUpdateAttributesAttributes() + .attributes( + Map.ofEntries( + Map.entry("env", Collections.singletonList("test")), + Map.entry("service", Arrays.asList("web-store", "web-api")), + Map.entry("team", Collections.singletonList("engineer"))))) + .type(CaseResourceType.CASE)); + + try { + CaseResponse result = apiInstance.updateAttributes(CASE_ID, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CaseManagementApi#updateAttributes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/src/main/java/com/datadog/api/client/v2/api/CaseManagementApi.java b/src/main/java/com/datadog/api/client/v2/api/CaseManagementApi.java index 684e9691583..df176c4d6b9 100644 --- a/src/main/java/com/datadog/api/client/v2/api/CaseManagementApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/CaseManagementApi.java @@ -11,6 +11,7 @@ import com.datadog.api.client.v2.model.CaseEmptyRequest; import com.datadog.api.client.v2.model.CaseResponse; import com.datadog.api.client.v2.model.CaseSortableField; +import com.datadog.api.client.v2.model.CaseUpdateAttributesRequest; import com.datadog.api.client.v2.model.CaseUpdatePriorityRequest; import com.datadog.api.client.v2.model.CaseUpdateStatusRequest; import com.datadog.api.client.v2.model.CasesResponse; @@ -1740,6 +1741,164 @@ public CompletableFuture> unassignCaseWithHttpInfoAsyn new GenericType() {}); } + /** + * Update case attributes. + * + *

See {@link #updateAttributesWithHttpInfo}. + * + * @param caseId Case's UUID or key (required) + * @param body Case attributes update payload (required) + * @return CaseResponse + * @throws ApiException if fails to make API call + */ + public CaseResponse updateAttributes(String caseId, CaseUpdateAttributesRequest body) + throws ApiException { + return updateAttributesWithHttpInfo(caseId, body).getData(); + } + + /** + * Update case attributes. + * + *

See {@link #updateAttributesWithHttpInfoAsync}. + * + * @param caseId Case's UUID or key (required) + * @param body Case attributes update payload (required) + * @return CompletableFuture<CaseResponse> + */ + public CompletableFuture updateAttributesAsync( + String caseId, CaseUpdateAttributesRequest body) { + return updateAttributesWithHttpInfoAsync(caseId, body) + .thenApply( + response -> { + return response.getData(); + }); + } + + /** + * Update case attributes + * + * @param caseId Case's UUID or key (required) + * @param body Case attributes update payload (required) + * @return ApiResponse<CaseResponse> + * @throws ApiException if fails to make API call + * @http.response.details + * + * + * + * + * + * + * + * + * + *
Response details
Status Code Description Response Headers
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
429 Too many requests -
+ */ + public ApiResponse updateAttributesWithHttpInfo( + String caseId, CaseUpdateAttributesRequest body) throws ApiException { + Object localVarPostBody = body; + + // verify the required parameter 'caseId' is set + if (caseId == null) { + throw new ApiException( + 400, "Missing the required parameter 'caseId' when calling updateAttributes"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException( + 400, "Missing the required parameter 'body' when calling updateAttributes"); + } + // create path and map variables + String localVarPath = + "/api/v2/cases/{case_id}/attributes" + .replaceAll("\\{" + "case_id" + "\\}", apiClient.escapeString(caseId.toString())); + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder = + apiClient.createBuilder( + "v2.CaseManagementApi.updateAttributes", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); + return apiClient.invokeAPI( + "POST", + builder, + localVarHeaderParams, + new String[] {"application/json"}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + + /** + * Update case attributes. + * + *

See {@link #updateAttributesWithHttpInfo}. + * + * @param caseId Case's UUID or key (required) + * @param body Case attributes update payload (required) + * @return CompletableFuture<ApiResponse<CaseResponse>> + */ + public CompletableFuture> updateAttributesWithHttpInfoAsync( + String caseId, CaseUpdateAttributesRequest body) { + Object localVarPostBody = body; + + // verify the required parameter 'caseId' is set + if (caseId == null) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException( + 400, "Missing the required parameter 'caseId' when calling updateAttributes")); + return result; + } + + // verify the required parameter 'body' is set + if (body == null) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally( + new ApiException( + 400, "Missing the required parameter 'body' when calling updateAttributes")); + return result; + } + // create path and map variables + String localVarPath = + "/api/v2/cases/{case_id}/attributes" + .replaceAll("\\{" + "case_id" + "\\}", apiClient.escapeString(caseId.toString())); + + Map localVarHeaderParams = new HashMap(); + + Invocation.Builder builder; + try { + builder = + apiClient.createBuilder( + "v2.CaseManagementApi.updateAttributes", + localVarPath, + new ArrayList(), + localVarHeaderParams, + new HashMap(), + new String[] {"application/json"}, + new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); + } catch (ApiException ex) { + CompletableFuture> result = new CompletableFuture<>(); + result.completeExceptionally(ex); + return result; + } + return apiClient.invokeAPIAsync( + "POST", + builder, + localVarHeaderParams, + new String[] {"application/json"}, + localVarPostBody, + new HashMap(), + false, + new GenericType() {}); + } + /** * Update case priority. * diff --git a/src/main/java/com/datadog/api/client/v2/model/Case.java b/src/main/java/com/datadog/api/client/v2/model/Case.java index d60dd3c0f04..2fcd203b01b 100644 --- a/src/main/java/com/datadog/api/client/v2/model/Case.java +++ b/src/main/java/com/datadog/api/client/v2/model/Case.java @@ -61,7 +61,7 @@ public Case attributes(CaseAttributes attributes) { } /** - * Case attributes + * Case resource attributes * * @return attributes */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CaseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CaseAttributes.java index 08333898f75..f4ceb3cf415 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CaseAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/CaseAttributes.java @@ -14,13 +14,15 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import java.time.OffsetDateTime; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; -/** Case attributes */ +/** Case resource attributes */ @JsonPropertyOrder({ CaseAttributes.JSON_PROPERTY_ARCHIVED_AT, + CaseAttributes.JSON_PROPERTY_ATTRIBUTES, CaseAttributes.JSON_PROPERTY_CLOSED_AT, CaseAttributes.JSON_PROPERTY_CREATED_AT, CaseAttributes.JSON_PROPERTY_DESCRIPTION, @@ -40,6 +42,9 @@ public class CaseAttributes { public static final String JSON_PROPERTY_ARCHIVED_AT = "archived_at"; private JsonNullable archivedAt = JsonNullable.undefined(); + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private Map> attributes = null; + public static final String JSON_PROPERTY_CLOSED_AT = "closed_at"; private JsonNullable closedAt = JsonNullable.undefined(); @@ -100,6 +105,35 @@ private void setArchivedAt_JsonNullable(JsonNullable archivedAt) this.archivedAt = archivedAt; } + public CaseAttributes attributes(Map> attributes) { + this.attributes = attributes; + return this; + } + + public CaseAttributes putAttributesItem(String key, List attributesItem) { + if (this.attributes == null) { + this.attributes = new HashMap<>(); + } + this.attributes.put(key, attributesItem); + return this; + } + + /** + * The definition of CaseObjectAttributes object. + * + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map> getAttributes() { + return attributes; + } + + public void setAttributes(Map> attributes) { + this.attributes = attributes; + } + /** * Timestamp of when the case was closed * @@ -411,6 +445,7 @@ public boolean equals(Object o) { } CaseAttributes caseAttributes = (CaseAttributes) o; return Objects.equals(this.archivedAt, caseAttributes.archivedAt) + && Objects.equals(this.attributes, caseAttributes.attributes) && Objects.equals(this.closedAt, caseAttributes.closedAt) && Objects.equals(this.createdAt, caseAttributes.createdAt) && Objects.equals(this.description, caseAttributes.description) @@ -429,6 +464,7 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash( archivedAt, + attributes, closedAt, createdAt, description, @@ -448,6 +484,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CaseAttributes {\n"); sb.append(" archivedAt: ").append(toIndentedString(archivedAt)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" closedAt: ").append(toIndentedString(closedAt)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/CaseUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CaseUpdateAttributes.java new file mode 100644 index 00000000000..c1e0a261b1f --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/CaseUpdateAttributes.java @@ -0,0 +1,181 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** Case update attributes */ +@JsonPropertyOrder({ + CaseUpdateAttributes.JSON_PROPERTY_ATTRIBUTES, + CaseUpdateAttributes.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class CaseUpdateAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private CaseUpdateAttributesAttributes attributes; + + public static final String JSON_PROPERTY_TYPE = "type"; + private CaseResourceType type = CaseResourceType.CASE; + + public CaseUpdateAttributes() {} + + @JsonCreator + public CaseUpdateAttributes( + @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) + CaseUpdateAttributesAttributes attributes, + @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) CaseResourceType type) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + this.type = type; + this.unparsed |= !type.isValid(); + } + + public CaseUpdateAttributes attributes(CaseUpdateAttributesAttributes attributes) { + this.attributes = attributes; + this.unparsed |= attributes.unparsed; + return this; + } + + /** + * Case update attributes attributes + * + * @return attributes + */ + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CaseUpdateAttributesAttributes getAttributes() { + return attributes; + } + + public void setAttributes(CaseUpdateAttributesAttributes attributes) { + this.attributes = attributes; + } + + public CaseUpdateAttributes type(CaseResourceType type) { + this.type = type; + this.unparsed |= !type.isValid(); + return this; + } + + /** + * Case resource type + * + * @return type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CaseResourceType getType() { + return type; + } + + public void setType(CaseResourceType type) { + if (!type.isValid()) { + this.unparsed = true; + } + this.type = type; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CaseUpdateAttributes + */ + @JsonAnySetter + public CaseUpdateAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this CaseUpdateAttributes object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CaseUpdateAttributes caseUpdateAttributes = (CaseUpdateAttributes) o; + return Objects.equals(this.attributes, caseUpdateAttributes.attributes) + && Objects.equals(this.type, caseUpdateAttributes.type) + && Objects.equals(this.additionalProperties, caseUpdateAttributes.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, type, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CaseUpdateAttributes {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/CaseUpdateAttributesAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CaseUpdateAttributesAttributes.java new file mode 100644 index 00000000000..3ef4d18785a --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/CaseUpdateAttributesAttributes.java @@ -0,0 +1,152 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** Case update attributes attributes */ +@JsonPropertyOrder({CaseUpdateAttributesAttributes.JSON_PROPERTY_ATTRIBUTES}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class CaseUpdateAttributesAttributes { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private Map> attributes = new HashMap>(); + + public CaseUpdateAttributesAttributes() {} + + @JsonCreator + public CaseUpdateAttributesAttributes( + @JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES) + Map> attributes) { + this.attributes = attributes; + } + + public CaseUpdateAttributesAttributes attributes(Map> attributes) { + this.attributes = attributes; + return this; + } + + public CaseUpdateAttributesAttributes putAttributesItem(String key, List attributesItem) { + this.attributes.put(key, attributesItem); + return this; + } + + /** + * The definition of CaseObjectAttributes object. + * + * @return attributes + */ + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Map> getAttributes() { + return attributes; + } + + public void setAttributes(Map> attributes) { + this.attributes = attributes; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CaseUpdateAttributesAttributes + */ + @JsonAnySetter + public CaseUpdateAttributesAttributes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this CaseUpdateAttributesAttributes object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CaseUpdateAttributesAttributes caseUpdateAttributesAttributes = + (CaseUpdateAttributesAttributes) o; + return Objects.equals(this.attributes, caseUpdateAttributesAttributes.attributes) + && Objects.equals( + this.additionalProperties, caseUpdateAttributesAttributes.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CaseUpdateAttributesAttributes {\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/datadog/api/client/v2/model/CaseUpdateAttributesRequest.java b/src/main/java/com/datadog/api/client/v2/model/CaseUpdateAttributesRequest.java new file mode 100644 index 00000000000..9a78ff90b52 --- /dev/null +++ b/src/main/java/com/datadog/api/client/v2/model/CaseUpdateAttributesRequest.java @@ -0,0 +1,146 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +package com.datadog.api.client.v2.model; + +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** Case update attributes request */ +@JsonPropertyOrder({CaseUpdateAttributesRequest.JSON_PROPERTY_DATA}) +@jakarta.annotation.Generated( + value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") +public class CaseUpdateAttributesRequest { + @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_DATA = "data"; + private CaseUpdateAttributes data; + + public CaseUpdateAttributesRequest() {} + + @JsonCreator + public CaseUpdateAttributesRequest( + @JsonProperty(required = true, value = JSON_PROPERTY_DATA) CaseUpdateAttributes data) { + this.data = data; + this.unparsed |= data.unparsed; + } + + public CaseUpdateAttributesRequest data(CaseUpdateAttributes data) { + this.data = data; + this.unparsed |= data.unparsed; + return this; + } + + /** + * Case update attributes + * + * @return data + */ + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CaseUpdateAttributes getData() { + return data; + } + + public void setData(CaseUpdateAttributes data) { + this.data = data; + } + + /** + * A container for additional, undeclared properties. This is a holder for any undeclared + * properties as specified with the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. If the property + * does not already exist, create it otherwise replace it. + * + * @param key The arbitrary key to set + * @param value The associated value + * @return CaseUpdateAttributesRequest + */ + @JsonAnySetter + public CaseUpdateAttributesRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return The additional properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key The arbitrary key to get + * @return The specific additional property for the given key + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + /** Return true if this CaseUpdateAttributesRequest object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CaseUpdateAttributesRequest caseUpdateAttributesRequest = (CaseUpdateAttributesRequest) o; + return Objects.equals(this.data, caseUpdateAttributesRequest.data) + && Objects.equals( + this.additionalProperties, caseUpdateAttributesRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(data, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CaseUpdateAttributesRequest {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ") + .append(toIndentedString(additionalProperties)) + .append("\n"); + sb.append('}'); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.freeze index 02ebd0b9106..081a252daba 100644 --- a/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:15.159Z \ No newline at end of file +2025-07-21T13:52:40.919Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.json index d0dfad27e73..86058089956 100644 --- a/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Archive_case_returns_Bad_Request_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"4e49aede-4c04-42d3-b5bc-f8eb4c1340df\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:15.280494299Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"4e49aede-4c04-42d3-b5bc-f8eb4c1340df\",\"key\":\"DDFC-182\",\"priority\":\"P4\",\"public_id\":\"242\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"6706fe66-cabd-4b22-b4c5-dd478bba421a\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:41.25066Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"6706fe66-cabd-4b22-b4c5-dd478bba421a\",\"key\":\"DDFC-72317\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72377\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a96" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a98" }, { "httpRequest": { @@ -37,7 +37,7 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/4e49aede-4c04-42d3-b5bc-f8eb4c1340df/archive", + "path": "/api/v2/cases/6706fe66-cabd-4b22-b4c5-dd478bba421a/archive", "keepAlive": false, "secure": true }, @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "36abb6ee-469d-9724-5458-bc30d5a98423" + "id": "75643134-d0d3-2339-03bf-06a1fd35338d" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Archive_case_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Archive_case_returns_Not_Found_response.freeze index 16674248e30..59cf7189dfa 100644 --- a/src/test/resources/cassettes/features/v2/Archive_case_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Archive_case_returns_Not_Found_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:15.378Z \ No newline at end of file +2025-07-21T13:52:41.730Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.freeze index f8ce6d98bba..57508d48548 100644 --- a/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:15.466Z \ No newline at end of file +2025-07-21T13:52:42.155Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.json index dbc24356eac..76d554d8b78 100644 --- a/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Archive_case_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"3752309b-6a77-4015-845a-02ff88647b4b\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:15.546103234Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"3752309b-6a77-4015-845a-02ff88647b4b\",\"key\":\"DDFC-183\",\"priority\":\"P4\",\"public_id\":\"243\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"b074b409-24f8-42ae-b545-b1486429630d\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:42.51392Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"b074b409-24f8-42ae-b545-b1486429630d\",\"key\":\"DDFC-72318\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72378\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a98" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a9a" }, { "httpRequest": { @@ -37,12 +37,12 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/3752309b-6a77-4015-845a-02ff88647b4b/archive", + "path": "/api/v2/cases/b074b409-24f8-42ae-b545-b1486429630d/archive", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"3752309b-6a77-4015-845a-02ff88647b4b\",\"type\":\"case\",\"attributes\":{\"archived_at\":\"2024-02-14T18:55:15.641594121Z\",\"attributes\":{},\"created_at\":\"2024-02-14T18:55:15.546103Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"3752309b-6a77-4015-845a-02ff88647b4b\",\"key\":\"DDFC-183\",\"priority\":\"P4\",\"public_id\":\"243\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"modified_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"b074b409-24f8-42ae-b545-b1486429630d\",\"type\":\"case\",\"attributes\":{\"archived_at\":\"2025-07-21T13:52:42.933945716Z\",\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:42.51392Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"b074b409-24f8-42ae-b545-b1486429630d\",\"key\":\"DDFC-72318\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2025-07-21T13:52:42.933946Z\",\"priority\":\"P4\",\"public_id\":\"72378\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"modified_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "1aa9fcd5-3f89-4d7a-8c83-a911899fa23a" + "id": "f102e988-9a3b-0592-a1d5-f6e9c4d2deb8" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.freeze index 2749371a9b7..7decaaaea4b 100644 --- a/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:15.651Z \ No newline at end of file +2025-07-21T13:52:43.015Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.json index 818814b1071..35fe4ea57ef 100644 --- a/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Assign_case_returns_Bad_Request_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"cf2e3b59-d504-4714-9853-38e4ceddb858\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:15.728783622Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"cf2e3b59-d504-4714-9853-38e4ceddb858\",\"key\":\"DDFC-184\",\"priority\":\"P4\",\"public_id\":\"244\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"510b0121-1477-43c0-8986-78f011016d48\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:43.335245Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"510b0121-1477-43c0-8986-78f011016d48\",\"key\":\"DDFC-72319\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72379\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a97" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a99" }, { "httpRequest": { @@ -37,12 +37,12 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/cf2e3b59-d504-4714-9853-38e4ceddb858/assign", + "path": "/api/v2/cases/510b0121-1477-43c0-8986-78f011016d48/assign", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"errors\":[{\"code\":\"invalid_command\",\"title\":\"error when validating input command: 'assigneeid' field must be an uuid\",\"meta\":{\"entity\":\"assigneeid\",\"rule\":\"uuid\"}}]}", + "body": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\"}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "ca5f66cb-321f-82c3-eca1-6ff6645a4670" + "id": "389b3a16-ce31-21bf-75a0-da30a1d8d867" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Assign_case_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Assign_case_returns_Not_Found_response.freeze index dac002f7f37..067940f74d7 100644 --- a/src/test/resources/cassettes/features/v2/Assign_case_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Assign_case_returns_Not_Found_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:15.832Z \ No newline at end of file +2025-07-21T13:52:43.820Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Assign_case_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Assign_case_returns_Not_Found_response.json index 70500e784ed..ed497e5b400 100644 --- a/src/test/resources/cassettes/features/v2/Assign_case_returns_Not_Found_response.json +++ b/src/test/resources/cassettes/features/v2/Assign_case_returns_Not_Found_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"email\":\"Test-Assign_case_returns_Not_Found_response-1707936915@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" + "json": "{\"data\":{\"attributes\":{\"email\":\"Test-Assign_case_returns_Not_Found_response-1753105963@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"users\",\"id\":\"9740b08d-cb6a-11ee-8bd8-2a1a3c7b5bdd\",\"attributes\":{\"name\":null,\"handle\":\"test-assign_case_returns_not_found_response-1707936915@datadoghq.com\",\"created_at\":\"2024-02-14T18:55:15.963542+00:00\",\"modified_at\":\"2024-02-14T18:55:15.963542+00:00\",\"email\":\"test-assign_case_returns_not_found_response-1707936915@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/379ecb2d1d9ca2e9ce66fa109609c256?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\"},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n", + "body": "{\"data\":{\"type\":\"users\",\"id\":\"fa033cd0-6639-11f0-b658-96290b93dbfc\",\"attributes\":{\"name\":null,\"handle\":\"test-assign_case_returns_not_found_response-1753105963@datadoghq.com\",\"created_at\":\"2025-07-21T13:52:44.217086+00:00\",\"modified_at\":\"2025-07-21T13:52:44.217086+00:00\",\"email\":\"test-assign_case_returns_not_found_response-1753105963@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/de9eda912656e39d585005ddc0880775?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\"},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "ac945209-9870-2c65-40f2-a77b1c0de9a9" + "id": "3a6509b8-912e-674e-1435-d921d51c7b19" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"assignee_id\":\"9740b08d-cb6a-11ee-8bd8-2a1a3c7b5bdd\"},\"type\":\"case\"}}" + "json": "{\"data\":{\"attributes\":{\"assignee_id\":\"fa033cd0-6639-11f0-b658-96290b93dbfc\"},\"type\":\"case\"}}" }, "headers": {}, "method": "POST", @@ -57,13 +57,13 @@ "timeToLive": { "unlimited": true }, - "id": "7e5fd7e0-24a2-f324-beaf-9b46ee44611b" + "id": "2fc59d78-30ab-c6f2-3dfd-fc7e3227a10f" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/users/9740b08d-cb6a-11ee-8bd8-2a1a3c7b5bdd", + "path": "/api/v2/users/fa033cd0-6639-11f0-b658-96290b93dbfc", "keepAlive": false, "secure": true }, @@ -78,6 +78,6 @@ "timeToLive": { "unlimited": true }, - "id": "ffd0c82c-5ca2-cde9-54a4-a3f107c65693" + "id": "13e04c01-3bdd-3931-4e4a-143c5dc2c240" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.freeze index 63999fedab2..4e634aa5c58 100644 --- a/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:16.362Z \ No newline at end of file +2025-07-21T13:52:45.309Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.json index cd3cf06b7e5..518a43931e8 100644 --- a/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Assign_case_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"2d07d89b-2f91-47c2-b3ea-ee28ffee5b4c\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:16.445823452Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"2d07d89b-2f91-47c2-b3ea-ee28ffee5b4c\",\"key\":\"DDFC-185\",\"priority\":\"P4\",\"public_id\":\"245\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"fd1228dc-d475-4a0b-8677-7a9ce3b50b3d\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:45.654592Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"fd1228dc-d475-4a0b-8677-7a9ce3b50b3d\",\"key\":\"DDFC-72320\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72380\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a91" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a93" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"email\":\"Test-Assign_case_returns_OK_response-1707936916@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" + "json": "{\"data\":{\"attributes\":{\"email\":\"Test-Assign_case_returns_OK_response-1753105965@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" }, "headers": {}, "method": "POST", @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"users\",\"id\":\"97a38d32-cb6a-11ee-9645-0a530ef9b7d3\",\"attributes\":{\"name\":null,\"handle\":\"test-assign_case_returns_ok_response-1707936916@datadoghq.com\",\"created_at\":\"2024-02-14T18:55:16.611469+00:00\",\"modified_at\":\"2024-02-14T18:55:16.611469+00:00\",\"email\":\"test-assign_case_returns_ok_response-1707936916@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/982f69dc821d8ef307cfc8907452899b?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\"},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n", + "body": "{\"data\":{\"type\":\"users\",\"id\":\"fb218c6d-6639-11f0-a2d3-1a819e56f795\",\"attributes\":{\"name\":null,\"handle\":\"test-assign_case_returns_ok_response-1753105965@datadoghq.com\",\"created_at\":\"2025-07-21T13:52:46.093451+00:00\",\"modified_at\":\"2025-07-21T13:52:46.093451+00:00\",\"email\":\"test-assign_case_returns_ok_response-1753105965@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/a6015cb53f5ee1693a8a69c8f6904fae?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\"},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n", "headers": { "Content-Type": [ "application/json" @@ -57,22 +57,22 @@ "timeToLive": { "unlimited": true }, - "id": "3a3b6859-0ae2-1086-b8f1-998b28be9d94" + "id": "1c46448e-7d25-abe9-27a6-cc18e2daee88" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"assignee_id\":\"97a38d32-cb6a-11ee-9645-0a530ef9b7d3\"},\"type\":\"case\"}}" + "json": "{\"data\":{\"attributes\":{\"assignee_id\":\"fb218c6d-6639-11f0-a2d3-1a819e56f795\"},\"type\":\"case\"}}" }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/2d07d89b-2f91-47c2-b3ea-ee28ffee5b4c/assign", + "path": "/api/v2/cases/fd1228dc-d475-4a0b-8677-7a9ce3b50b3d/assign", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"2d07d89b-2f91-47c2-b3ea-ee28ffee5b4c\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:16.445823Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"2d07d89b-2f91-47c2-b3ea-ee28ffee5b4c\",\"key\":\"DDFC-185\",\"modified_at\":\"2024-02-14T18:55:16.737803Z\",\"priority\":\"P4\",\"public_id\":\"245\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"97a38d32-cb6a-11ee-9645-0a530ef9b7d3\",\"type\":\"user\"}},\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"modified_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}},{\"id\":\"97a38d32-cb6a-11ee-9645-0a530ef9b7d3\",\"type\":\"user\",\"attributes\":{\"email\":\"test-assign_case_returns_ok_response-1707936916@datadoghq.com\",\"handle\":\"test-assign_case_returns_ok_response-1707936916@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"fd1228dc-d475-4a0b-8677-7a9ce3b50b3d\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:45.654592Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"fd1228dc-d475-4a0b-8677-7a9ce3b50b3d\",\"key\":\"DDFC-72320\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2025-07-21T13:52:46.52116Z\",\"priority\":\"P4\",\"public_id\":\"72380\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"fb218c6d-6639-11f0-a2d3-1a819e56f795\",\"type\":\"user\"}},\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"modified_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}},{\"id\":\"fb218c6d-6639-11f0-a2d3-1a819e56f795\",\"type\":\"user\",\"attributes\":{\"active\":false,\"email\":\"test-assign_case_returns_ok_response-1753105965@datadoghq.com\",\"handle\":\"test-assign_case_returns_ok_response-1753105965@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -87,13 +87,13 @@ "timeToLive": { "unlimited": true }, - "id": "c6589b42-256f-5337-31e7-ef59e1f12c97" + "id": "4ccb70fc-741d-3b01-ad3f-a75043756876" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/users/97a38d32-cb6a-11ee-9645-0a530ef9b7d3", + "path": "/api/v2/users/fb218c6d-6639-11f0-a2d3-1a819e56f795", "keepAlive": false, "secure": true }, @@ -108,6 +108,6 @@ "timeToLive": { "unlimited": true }, - "id": "47567621-c475-ed3f-0904-2cc0c8040eb0" + "id": "e845491b-aa68-cb59-40d8-6d0133e35e2a" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_case_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Create_a_case_returns_Bad_Request_response.freeze index 3d430913723..4494f306b1b 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_case_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Create_a_case_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:16.995Z \ No newline at end of file +2025-07-21T13:52:47.155Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_case_returns_CREATED_response.freeze b/src/test/resources/cassettes/features/v2/Create_a_case_returns_CREATED_response.freeze index d0a1a57a423..c1e8fb0c3bf 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_case_returns_CREATED_response.freeze +++ b/src/test/resources/cassettes/features/v2/Create_a_case_returns_CREATED_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:17.074Z \ No newline at end of file +2025-07-21T13:52:47.527Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Create_a_case_returns_CREATED_response.json b/src/test/resources/cassettes/features/v2/Create_a_case_returns_CREATED_response.json index d5444a75557..5d05eb38fc8 100644 --- a/src/test/resources/cassettes/features/v2/Create_a_case_returns_CREATED_response.json +++ b/src/test/resources/cassettes/features/v2/Create_a_case_returns_CREATED_response.json @@ -3,7 +3,7 @@ "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"email\":\"Test-Create_a_case_returns_CREATED_response-1707936917@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" + "json": "{\"data\":{\"attributes\":{\"email\":\"Test-Create_a_case_returns_CREATED_response-1753105967@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" }, "headers": {}, "method": "POST", @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"type\":\"users\",\"id\":\"97fb5e7f-cb6a-11ee-8de6-d2393b962484\",\"attributes\":{\"name\":null,\"handle\":\"test-create_a_case_returns_created_response-1707936917@datadoghq.com\",\"created_at\":\"2024-02-14T18:55:17.186960+00:00\",\"modified_at\":\"2024-02-14T18:55:17.186960+00:00\",\"email\":\"test-create_a_case_returns_created_response-1707936917@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/04ba872d0c124a11691bb75e2b774d08?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\"},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n", + "body": "{\"data\":{\"type\":\"users\",\"id\":\"fc35a29f-6639-11f0-8bee-a24ce66fd256\",\"attributes\":{\"name\":null,\"handle\":\"test-create_a_case_returns_created_response-1753105967@datadoghq.com\",\"created_at\":\"2025-07-21T13:52:47.902815+00:00\",\"modified_at\":\"2025-07-21T13:52:47.902815+00:00\",\"email\":\"test-create_a_case_returns_created_response-1753105967@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/600ad64c52b4a9b6a9f2a46d8fa9ec0a?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\"},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n", "headers": { "Content-Type": [ "application/json" @@ -27,13 +27,13 @@ "timeToLive": { "unlimited": true }, - "id": "3829ffdb-bba4-9b82-d5b2-2090560ccb0f" + "id": "c041f86f-bb92-fed5-164f-2b8e519f13ab" }, { "httpRequest": { "body": { "type": "JSON", - "json": "{\"data\":{\"attributes\":{\"priority\":\"NOT_DEFINED\",\"title\":\"Security breach investigation in 8216c516b64665ce\",\"type\":\"STANDARD\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"97fb5e7f-cb6a-11ee-8de6-d2393b962484\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + "json": "{\"data\":{\"attributes\":{\"priority\":\"NOT_DEFINED\",\"title\":\"Security breach investigation in 20df485fb3942e6f\",\"type\":\"STANDARD\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"fc35a29f-6639-11f0-8bee-a24ce66fd256\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "headers": {}, "method": "POST", @@ -42,7 +42,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"93237ca1-b5ee-4116-9bfc-d94f99cd9629\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:17.301872096Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"93237ca1-b5ee-4116-9bfc-d94f99cd9629\",\"key\":\"DDFC-186\",\"priority\":\"NOT_DEFINED\",\"public_id\":\"246\",\"status\":\"OPEN\",\"title\":\"Security breach investigation in 8216c516b64665ce\",\"type\":\"STANDARD\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"97fb5e7f-cb6a-11ee-8de6-d2393b962484\",\"type\":\"user\"}},\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}},{\"id\":\"97fb5e7f-cb6a-11ee-8de6-d2393b962484\",\"type\":\"user\",\"attributes\":{\"email\":\"test-create_a_case_returns_created_response-1707936917@datadoghq.com\",\"handle\":\"test-create_a_case_returns_created_response-1707936917@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"2275ce7b-781b-4539-b0f3-2cc1b2140565\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:48.320633Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"2275ce7b-781b-4539-b0f3-2cc1b2140565\",\"key\":\"DDFC-72321\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"NOT_DEFINED\",\"public_id\":\"72381\",\"status\":\"OPEN\",\"title\":\"Security breach investigation in 20df485fb3942e6f\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"fc35a29f-6639-11f0-8bee-a24ce66fd256\",\"type\":\"user\"}},\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}},{\"id\":\"fc35a29f-6639-11f0-8bee-a24ce66fd256\",\"type\":\"user\",\"attributes\":{\"active\":false,\"email\":\"test-create_a_case_returns_created_response-1753105967@datadoghq.com\",\"handle\":\"test-create_a_case_returns_created_response-1753105967@datadoghq.com\",\"name\":\"\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,13 +57,13 @@ "timeToLive": { "unlimited": true }, - "id": "70b806f6-6f2a-e96d-e214-b38e37c4c92d" + "id": "cd1eb429-0366-5851-7b6b-147e02d981e7" }, { "httpRequest": { "headers": {}, "method": "DELETE", - "path": "/api/v2/users/97fb5e7f-cb6a-11ee-8de6-d2393b962484", + "path": "/api/v2/users/fc35a29f-6639-11f0-8bee-a24ce66fd256", "keepAlive": false, "secure": true }, @@ -78,6 +78,6 @@ "timeToLive": { "unlimited": true }, - "id": "fe0bc438-04b9-aab7-9fa0-a88b85ff1e27" + "id": "84e4feda-c559-f349-d177-1d8c606e81fb" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_Not_Found_response.freeze index 1f1e9770dce..65a7dda9877 100644 --- a/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_Not_Found_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:17.678Z \ No newline at end of file +2025-07-21T13:52:48.953Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.freeze index ce3e1d89d5d..683f8abed3a 100644 --- a/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:17.758Z \ No newline at end of file +2025-07-21T13:52:49.345Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.json index 7091d2f2f7e..3415aa33143 100644 --- a/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Get_the_details_of_a_case_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"d981cc6f-654e-4528-8451-d3d99259d4d6\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:17.837538892Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"d981cc6f-654e-4528-8451-d3d99259d4d6\",\"key\":\"DDFC-187\",\"priority\":\"P4\",\"public_id\":\"247\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"5e66536f-3946-41fd-9e0f-183e719d7128\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:49.694835Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"5e66536f-3946-41fd-9e0f-183e719d7128\",\"key\":\"DDFC-72322\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72382\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -27,18 +27,18 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a8f" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a91" }, { "httpRequest": { "headers": {}, "method": "GET", - "path": "/api/v2/cases/d981cc6f-654e-4528-8451-d3d99259d4d6", + "path": "/api/v2/cases/5e66536f-3946-41fd-9e0f-183e719d7128", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"d981cc6f-654e-4528-8451-d3d99259d4d6\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:17.837539Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"d981cc6f-654e-4528-8451-d3d99259d4d6\",\"key\":\"DDFC-187\",\"priority\":\"P4\",\"public_id\":\"247\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"5e66536f-3946-41fd-9e0f-183e719d7128\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:49.694835Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"5e66536f-3946-41fd-9e0f-183e719d7128\",\"key\":\"DDFC-72322\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72382\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -53,6 +53,6 @@ "timeToLive": { "unlimited": true }, - "id": "69d1db1f-9175-ddb9-57bd-a5f6e89ae333" + "id": "2d750a1f-b5cb-9c2f-0ec8-401990f8293d" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.freeze index 5b768a1c886..22ddf6aec45 100644 --- a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:17.936Z \ No newline at end of file +2025-07-21T13:52:50.131Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.json index cfa2e05d9c5..db29a907092 100644 --- a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Bad_Request_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"7c588891-1486-4cf6-992f-f0c3a97f0245\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:18.021909299Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"7c588891-1486-4cf6-992f-f0c3a97f0245\",\"key\":\"DDFC-188\",\"priority\":\"P4\",\"public_id\":\"248\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"5fd92551-50b8-46e9-899d-5846cf3eab9e\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:50.459513Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"5fd92551-50b8-46e9-899d-5846cf3eab9e\",\"key\":\"DDFC-72323\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72383\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a93" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a95" }, { "httpRequest": { @@ -37,7 +37,7 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/7c588891-1486-4cf6-992f-f0c3a97f0245/unarchive", + "path": "/api/v2/cases/5fd92551-50b8-46e9-899d-5846cf3eab9e/unarchive", "keepAlive": false, "secure": true }, @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "3cb0b568-7b56-5978-fb3b-022598546774" + "id": "606a4ae8-236d-1bcf-f95b-75593921880d" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Not_Found_response.freeze index 034f1d4aa81..091e5f1693e 100644 --- a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_Not_Found_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:18.130Z \ No newline at end of file +2025-07-21T13:52:50.895Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.freeze index df7e85e9f41..c118a3ee003 100644 --- a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:18.220Z \ No newline at end of file +2025-07-21T13:52:51.279Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.json index 92683edf52b..4796d2e0d32 100644 --- a/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Unarchive_case_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"56b03839-5199-4207-94e6-648f5c363d1d\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:18.285988591Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"56b03839-5199-4207-94e6-648f5c363d1d\",\"key\":\"DDFC-189\",\"priority\":\"P4\",\"public_id\":\"249\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"b6a0f192-9be6-4898-b05b-f4cc308de679\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:51.610535Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"b6a0f192-9be6-4898-b05b-f4cc308de679\",\"key\":\"DDFC-72324\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72384\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a8d" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a8f" }, { "httpRequest": { @@ -37,12 +37,12 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/56b03839-5199-4207-94e6-648f5c363d1d/unarchive", + "path": "/api/v2/cases/b6a0f192-9be6-4898-b05b-f4cc308de679/unarchive", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"56b03839-5199-4207-94e6-648f5c363d1d\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:18.285989Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"56b03839-5199-4207-94e6-648f5c363d1d\",\"key\":\"DDFC-189\",\"priority\":\"P4\",\"public_id\":\"249\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"b6a0f192-9be6-4898-b05b-f4cc308de679\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:51.610535Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"b6a0f192-9be6-4898-b05b-f4cc308de679\",\"key\":\"DDFC-72324\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72384\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "4916ad79-2e8e-c09f-8dd7-b6750db0879d" + "id": "2e646eb3-3de0-9a50-a837-3aaf12064055" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.freeze index 5c53ccfe49e..7b3f4dbd149 100644 --- a/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:18.364Z \ No newline at end of file +2025-07-21T13:52:52.067Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.json index d7b920cc267..0e631f944a2 100644 --- a/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Unassign_case_returns_Bad_Request_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"4c89618c-11cc-40ba-bc6c-000e862910b1\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:18.434117143Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"4c89618c-11cc-40ba-bc6c-000e862910b1\",\"key\":\"DDFC-190\",\"priority\":\"P4\",\"public_id\":\"250\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"6e4af4e8-67fd-461a-9664-adf910673121\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:52.413703Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"6e4af4e8-67fd-461a-9664-adf910673121\",\"key\":\"DDFC-72325\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72385\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a95" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a97" }, { "httpRequest": { @@ -37,7 +37,7 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/4c89618c-11cc-40ba-bc6c-000e862910b1/unassign", + "path": "/api/v2/cases/6e4af4e8-67fd-461a-9664-adf910673121/unassign", "keepAlive": false, "secure": true }, @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "55fd3887-c946-0790-f62f-b43baff474d6" + "id": "c6d80aa4-c12f-d13c-9fd8-9c1ba24e6b71" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unassign_case_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Unassign_case_returns_Not_Found_response.freeze index 6a08f9742dc..d41e392f87a 100644 --- a/src/test/resources/cassettes/features/v2/Unassign_case_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Unassign_case_returns_Not_Found_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:18.522Z \ No newline at end of file +2025-07-21T13:52:52.854Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.freeze index e57766f0dfb..f5e55d1024e 100644 --- a/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:18.613Z \ No newline at end of file +2025-07-21T13:52:53.249Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.json index 5ae0d4b1749..a058576b87e 100644 --- a/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Unassign_case_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"fa3c26fc-fada-4308-8888-4067d97acf06\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:18.689935858Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"fa3c26fc-fada-4308-8888-4067d97acf06\",\"key\":\"DDFC-191\",\"priority\":\"P4\",\"public_id\":\"251\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"b222e3e7-19fe-434f-ab26-7e0845775ccd\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:53.581415Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"b222e3e7-19fe-434f-ab26-7e0845775ccd\",\"key\":\"DDFC-72326\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72386\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a92" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a94" }, { "httpRequest": { @@ -37,12 +37,12 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/fa3c26fc-fada-4308-8888-4067d97acf06/unassign", + "path": "/api/v2/cases/b222e3e7-19fe-434f-ab26-7e0845775ccd/unassign", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"fa3c26fc-fada-4308-8888-4067d97acf06\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:18.689936Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"fa3c26fc-fada-4308-8888-4067d97acf06\",\"key\":\"DDFC-191\",\"priority\":\"P4\",\"public_id\":\"251\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"b222e3e7-19fe-434f-ab26-7e0845775ccd\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:53.581415Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"b222e3e7-19fe-434f-ab26-7e0845775ccd\",\"key\":\"DDFC-72326\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72386\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "3f0d8b4d-9de6-a8b7-1b20-a4dd49686560" + "id": "17abcb43-5f8a-9c91-d3c5-68726f2e29e9" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Bad_Request_response.freeze new file mode 100644 index 00000000000..323ed8c6068 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Bad_Request_response.freeze @@ -0,0 +1 @@ +2025-07-21T08:23:41.749Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Bad_Request_response.json new file mode 100644 index 00000000000..c403571c4ea --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Bad_Request_response.json @@ -0,0 +1,62 @@ +[ + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + }, + "headers": {}, + "method": "POST", + "path": "/api/v2/cases", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":{\"id\":\"0fac8699-2b39-4acb-b290-05a0fd19eb95\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T08:23:42.090561Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"0fac8699-2b39-4acb-b290-05a0fd19eb95\",\"key\":\"DDFC-72247\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72307\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"team-intg-tools-libs-spam@datadoghq.com\",\"handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"name\":\"CI Account\"}}]}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 201, + "reasonPhrase": "Created" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a8d" + }, + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"data\":{\"attributes\":{\"attributes\":{\"service\":\"web-store\"}},\"type\":\"case\"}}" + }, + "headers": {}, + "method": "POST", + "path": "/api/v2/cases/0fac8699-2b39-4acb-b290-05a0fd19eb95/attributes", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\",\"detail\":\"error decoding attribute \\\"attributes\\\": invalid type string\"}]}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 400, + "reasonPhrase": "Bad Request" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "0bf3a515-5901-049e-8314-032a401e4ad4" + } +] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Not_Found_response.freeze new file mode 100644 index 00000000000..9cc9365f135 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Not_Found_response.freeze @@ -0,0 +1 @@ +2025-07-21T08:23:42.266Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Not_Found_response.json b/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Not_Found_response.json new file mode 100644 index 00000000000..dedae6e3e81 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_Not_Found_response.json @@ -0,0 +1,32 @@ +[ + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"data\":{\"attributes\":{\"attributes\":{}},\"type\":\"case\"}}" + }, + "headers": {}, + "method": "POST", + "path": "/api/v2/cases/67d80aa3-36ff-44b9-a694-c501a7591737/attributes", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"errors\":[{\"code\":\"resource_not_found\",\"title\":\"case not found\"}]}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 404, + "reasonPhrase": "Not Found" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "a270ed5f-23d2-441b-514a-7eca73834a42" + } +] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_OK_response.freeze new file mode 100644 index 00000000000..d438f1b5b22 --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_OK_response.freeze @@ -0,0 +1 @@ +2025-07-21T18:43:31.851Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_OK_response.json new file mode 100644 index 00000000000..0843824fcac --- /dev/null +++ b/src/test/resources/cassettes/features/v2/Update_case_attributes_returns_OK_response.json @@ -0,0 +1,62 @@ +[ + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + }, + "headers": {}, + "method": "POST", + "path": "/api/v2/cases", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":{\"id\":\"f396c907-777d-4985-9e9d-2a420a0c0515\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T18:42:41.549781Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"f396c907-777d-4985-9e9d-2a420a0c0515\",\"key\":\"DDFC-72342\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72402\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 201, + "reasonPhrase": "Created" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a8e" + }, + { + "httpRequest": { + "body": { + "type": "JSON", + "json": "{\"data\":{\"attributes\":{\"attributes\":{\"env\":[\"test\"],\"service\":[\"web-store\",\"web-api\"],\"team\":[\"engineer\"]}},\"type\":\"case\"}}" + }, + "headers": {}, + "method": "POST", + "path": "/api/v2/cases/f396c907-777d-4985-9e9d-2a420a0c0515/attributes", + "keepAlive": false, + "secure": true + }, + "httpResponse": { + "body": "{\"data\":{\"id\":\"f396c907-777d-4985-9e9d-2a420a0c0515\",\"type\":\"case\",\"attributes\":{\"attributes\":{\"env\":[\"test\"],\"service\":[\"web-store\",\"web-api\"],\"team\":[\"engineer\"]},\"comment_count\":0,\"created_at\":\"2025-07-21T18:42:41.549781Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"f396c907-777d-4985-9e9d-2a420a0c0515\",\"key\":\"DDFC-72342\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2025-07-21T18:42:41.694883Z\",\"priority\":\"P4\",\"public_id\":\"72402\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"modified_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", + "headers": { + "Content-Type": [ + "application/vnd.api+json" + ] + }, + "statusCode": 200, + "reasonPhrase": "OK" + }, + "times": { + "remainingTimes": 1 + }, + "timeToLive": { + "unlimited": true + }, + "id": "2bc87020-cc36-ac8d-24cf-bd38fc3c838f" + } +] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.freeze index b44760c0495..34a73d972c2 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:18.767Z \ No newline at end of file +2025-07-21T13:52:56.000Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.json index a9d2b8e87df..54ae5b0ac3f 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Bad_Request_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"683c81be-fa27-42c8-957c-897923a2f660\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:18.846163387Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"683c81be-fa27-42c8-957c-897923a2f660\",\"key\":\"DDFC-192\",\"priority\":\"P4\",\"public_id\":\"252\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"57868e9a-2697-4384-b724-8e118b20a7f3\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:56.317328Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"57868e9a-2697-4384-b724-8e118b20a7f3\",\"key\":\"DDFC-72329\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72389\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a8e" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a90" }, { "httpRequest": { @@ -37,12 +37,12 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/683c81be-fa27-42c8-957c-897923a2f660/priority", + "path": "/api/v2/cases/57868e9a-2697-4384-b724-8e118b20a7f3/priority", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"invalid priority P1234. Must be one of P1, P2, P3, P4, P5, NOT_DEFINED\"}]}", + "body": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"invalid priority P1234. Must be one of P2, P3, P4, P5, NOT_DEFINED, P1\"}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "66ade7a1-8fcb-23e3-0477-becade8c4e94" + "id": "72df50c0-46cd-23a2-9858-a891311aeca1" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Not_Found_response.freeze index e6fee30e9dc..f6b3d2f6982 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_Not_Found_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:18.927Z \ No newline at end of file +2025-07-21T13:52:56.765Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.freeze index 42fe59de7b3..9b134590a27 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:19.004Z \ No newline at end of file +2025-07-21T13:52:57.162Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.json index f2cc0c7a7f7..4010cd97a0e 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_priority_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"c55de906-a08b-4916-ade3-5f1b268379c3\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:19.080339451Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"c55de906-a08b-4916-ade3-5f1b268379c3\",\"key\":\"DDFC-193\",\"priority\":\"P4\",\"public_id\":\"253\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"18014b24-6e64-4ca5-8cac-7ccbdd65258b\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:57.488697Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"18014b24-6e64-4ca5-8cac-7ccbdd65258b\",\"key\":\"DDFC-72330\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72390\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a90" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a92" }, { "httpRequest": { @@ -37,12 +37,12 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/c55de906-a08b-4916-ade3-5f1b268379c3/priority", + "path": "/api/v2/cases/18014b24-6e64-4ca5-8cac-7ccbdd65258b/priority", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"c55de906-a08b-4916-ade3-5f1b268379c3\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:19.080339Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"c55de906-a08b-4916-ade3-5f1b268379c3\",\"key\":\"DDFC-193\",\"modified_at\":\"2024-02-14T18:55:19.160763Z\",\"priority\":\"P3\",\"public_id\":\"253\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"modified_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"18014b24-6e64-4ca5-8cac-7ccbdd65258b\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:57.488697Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"18014b24-6e64-4ca5-8cac-7ccbdd65258b\",\"key\":\"DDFC-72330\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2025-07-21T13:52:57.885095Z\",\"priority\":\"P3\",\"public_id\":\"72390\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"modified_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "ef7275fd-a837-9e37-89c1-47bc672c6205" + "id": "1a133ade-9b95-6e64-7d2b-b7ec6d4755b4" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.freeze b/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.freeze index 1c1c338c0f2..f149d8dad29 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:19.178Z \ No newline at end of file +2025-07-21T13:52:57.959Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.json b/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.json index 7cd522d698d..6f708e2f363 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_status_returns_Bad_Request_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"1732a7a1-667c-45e4-ad8c-73a1c1f9f6f0\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:19.251201316Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"1732a7a1-667c-45e4-ad8c-73a1c1f9f6f0\",\"key\":\"DDFC-194\",\"priority\":\"P4\",\"public_id\":\"254\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"98319575-b53b-43be-96b2-7595a5f1be6c\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:58.293018Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"98319575-b53b-43be-96b2-7595a5f1be6c\",\"key\":\"DDFC-72331\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72391\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a94" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a96" }, { "httpRequest": { @@ -37,12 +37,12 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/1732a7a1-667c-45e4-ad8c-73a1c1f9f6f0/status", + "path": "/api/v2/cases/98319575-b53b-43be-96b2-7595a5f1be6c/status", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"invalid status OPENED. Must be one of SUNKNOWN, OPEN, IN_PROGRESS, CLOSED\"}]}", + "body": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"invalid status OPENED. Must be one of PENDING_APPROVAL, APPROVED, IMPLEMENTING, CANCELLED, SUNKNOWN, ACKNOWLEDGED, TRIGGERED, RESOLVED, COMPLETED, DECLINED, OPEN, IN_PROGRESS, CLOSED\"}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "5a6cd045-981f-051d-23b9-74a2b1763207" + "id": "195135ee-0304-f678-903a-f6058a0be0e6" } ] \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_status_returns_Not_Found_response.freeze b/src/test/resources/cassettes/features/v2/Update_case_status_returns_Not_Found_response.freeze index 3725bea8b61..ca65b4f9cfe 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_status_returns_Not_Found_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_case_status_returns_Not_Found_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:19.338Z \ No newline at end of file +2025-07-21T13:52:58.721Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.freeze b/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.freeze index a7c1161cdca..086a7bba2e6 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.freeze +++ b/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.freeze @@ -1 +1 @@ -2024-02-14T18:55:19.415Z \ No newline at end of file +2025-07-21T13:52:59.116Z \ No newline at end of file diff --git a/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.json b/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.json index 11d85eee4c5..7cdd60a9c6c 100644 --- a/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.json +++ b/src/test/resources/cassettes/features/v2/Update_case_status_returns_OK_response.json @@ -12,7 +12,7 @@ "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"d1633979-1770-4e5b-a2d0-2ede9f2a8f43\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:19.487094769Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"d1633979-1770-4e5b-a2d0-2ede9f2a8f43\",\"key\":\"DDFC-195\",\"priority\":\"P4\",\"public_id\":\"255\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"6d09fb31-6357-4f35-b1af-eaa0047f19f0\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:59.449985Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"6d09fb31-6357-4f35-b1af-eaa0047f19f0\",\"key\":\"DDFC-72332\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"72392\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -27,7 +27,7 @@ "timeToLive": { "unlimited": true }, - "id": "0a6534d0-42f2-5075-64f8-7ab28f449a99" + "id": "0a6534d0-42f2-5075-64f8-7ab28f449a9b" }, { "httpRequest": { @@ -37,12 +37,12 @@ }, "headers": {}, "method": "POST", - "path": "/api/v2/cases/d1633979-1770-4e5b-a2d0-2ede9f2a8f43/status", + "path": "/api/v2/cases/6d09fb31-6357-4f35-b1af-eaa0047f19f0/status", "keepAlive": false, "secure": true }, "httpResponse": { - "body": "{\"data\":{\"id\":\"d1633979-1770-4e5b-a2d0-2ede9f2a8f43\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"created_at\":\"2024-02-14T18:55:19.487095Z\",\"creation_source\":\"MANUAL\",\"description\":\"\",\"insights\":[],\"internal_id\":\"d1633979-1770-4e5b-a2d0-2ede9f2a8f43\",\"key\":\"DDFC-195\",\"modified_at\":\"2024-02-14T18:55:19.559421Z\",\"priority\":\"P4\",\"public_id\":\"255\",\"status\":\"IN_PROGRESS\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"modified_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"\"}}]}", + "body": "{\"data\":{\"id\":\"6d09fb31-6357-4f35-b1af-eaa0047f19f0\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-07-21T13:52:59.449985Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"6d09fb31-6357-4f35-b1af-eaa0047f19f0\",\"key\":\"DDFC-72332\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2025-07-21T13:52:59.835103Z\",\"priority\":\"P4\",\"public_id\":\"72392\",\"status\":\"IN_PROGRESS\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"created_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"modified_by\":{\"data\":{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}}},\"included\":[{\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"type\":\"user\",\"attributes\":{\"active\":true,\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"name\":\"frog\"}}]}", "headers": { "Content-Type": [ "application/vnd.api+json" @@ -57,6 +57,6 @@ "timeToLive": { "unlimited": true }, - "id": "2e66ff37-7515-540b-c4d1-467ad830a2f7" + "id": "1b6a4861-322f-fe6c-3bd9-5d34b6d2e305" } ] \ No newline at end of file diff --git a/src/test/resources/com/datadog/api/client/v2/api/case_management.feature b/src/test/resources/com/datadog/api/client/v2/api/case_management.feature index e95b1dc1c4c..58c95f71668 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/case_management.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/case_management.feature @@ -263,6 +263,32 @@ Feature: Case Management When the request is sent Then the response status is 200 OK + @skip @team:DataDog/case-management + Scenario: Update case attributes returns "Bad Request" response + Given new "UpdateAttributes" request + And there is a valid "case" in the system + And request contains "case_id" parameter from "case.id" + And body with value { "data": { "type": "case", "attributes": { "attributes": { "service": "web-store"}}}} + When the request is sent + Then the response status is 400 Bad Request + + @team:DataDog/case-management + Scenario: Update case attributes returns "Not Found" response + Given new "UpdateAttributes" request + And request contains "case_id" parameter with value "67d80aa3-36ff-44b9-a694-c501a7591737" + And body with value { "data": { "type": "case", "attributes": { "attributes": {} } } } + When the request is sent + Then the response status is 404 Not Found + + @team:DataDog/case-management + Scenario: Update case attributes returns "OK" response + Given new "UpdateAttributes" request + And there is a valid "case" in the system + And request contains "case_id" parameter from "case.id" + And body with value {"data": {"attributes": {"attributes": {"env": ["test"], "service": ["web-store", "web-api"], "team": ["engineer"]}}, "type": "case"}} + When the request is sent + Then the response status is 200 OK + @team:DataDog/case-management Scenario: Update case priority returns "Bad Request" response Given new "UpdatePriority" request diff --git a/src/test/resources/com/datadog/api/client/v2/api/undo.json b/src/test/resources/com/datadog/api/client/v2/api/undo.json index a1fe13fed9d..53bef5692a4 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/undo.json +++ b/src/test/resources/com/datadog/api/client/v2/api/undo.json @@ -446,6 +446,12 @@ "type": "idempotent" } }, + "UpdateAttributes": { + "tag": "Case Management", + "undo": { + "type": "idempotent" + } + }, "UpdatePriority": { "tag": "Case Management", "undo": {