diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 21b4b1eb3c68..2f5c5b289f4b 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -200,6 +200,22 @@ components: required: true schema: type: string + CaseCustomAttributeIDPathParameter: + description: Case Custom attribute's UUID + example: f98a5a5b-e0ff-45d4-b2f5-afe6e74de505 + in: path + name: custom_attribute_id + required: true + schema: + type: string + CaseCustomAttributeKeyPathParameter: + description: Case Custom attribute's key + example: aws_region + in: path + name: custom_attribute_key + required: true + schema: + type: string CaseIDPathParameter: description: Case's UUID or key example: f98a5a5b-e0ff-45d4-b2f5-afe6e74de504 @@ -215,6 +231,22 @@ components: required: false schema: $ref: '#/components/schemas/CaseSortableField' + CaseTypeIDPathParameter: + description: Case type's UUID + example: f98a5a5b-e0ff-45d4-b2f5-afe6e74de505 + in: path + name: case_type_id + required: true + schema: + type: string + CellIDPathParameter: + description: Timeline cell's UUID + example: f98a5a5b-e0ff-45d4-b2f5-afe6e74de504 + in: path + name: cell_id + required: true + schema: + type: string CloudAccountID: description: Cloud Account id. in: path @@ -7336,6 +7368,11 @@ components: format: date-time readOnly: true type: string + custom_attributes: + additionalProperties: + $ref: '#/components/schemas/CustomAttributeValue' + description: Case custom attributes + type: object description: description: Description type: string @@ -7363,6 +7400,39 @@ components: type: string type: $ref: '#/components/schemas/CaseType' + type_id: + description: Case type UUID + example: 3b010bde-09ce-4449-b745-71dd5f861963 + type: string + type: object + CaseComment: + description: Case comment + properties: + attributes: + $ref: '#/components/schemas/CaseCommentAttributes' + type: + $ref: '#/components/schemas/CaseResourceType' + required: + - attributes + - type + type: object + CaseCommentAttributes: + description: Case comment attributes + properties: + comment: + description: The `CaseCommentAttributes` `message`. + example: This is my comment ! + type: string + required: + - comment + type: object + CaseCommentRequest: + description: Case comment request + properties: + data: + $ref: '#/components/schemas/CaseComment' + required: + - data type: object CaseCreate: description: Case creation data @@ -7389,11 +7459,13 @@ components: description: Title example: Security breach investigation type: string - type: - $ref: '#/components/schemas/CaseType' + type_id: + description: Case type UUID + example: 3b010bde-09ce-4449-b745-71dd5f861963 + type: string required: - title - - type + - type_id type: object CaseCreateRelationships: description: Relationships formed with the case on creation @@ -7524,6 +7596,7 @@ components: - caseTrigger type: object CaseType: + deprecated: true description: Case type enum: - STANDARD @@ -7531,6 +7604,86 @@ components: type: string x-enum-varnames: - STANDARD + CaseTypeCreate: + description: Case type + properties: + attributes: + $ref: '#/components/schemas/CaseTypeResourceAttributes' + type: + $ref: '#/components/schemas/CaseTypeResourceType' + required: + - attributes + - type + type: object + CaseTypeCreateRequest: + description: Case type create request + properties: + data: + $ref: '#/components/schemas/CaseTypeCreate' + required: + - data + type: object + CaseTypeResource: + description: The definition of `CaseType` object. + properties: + attributes: + $ref: '#/components/schemas/CaseTypeResourceAttributes' + id: + description: Case type's identifier + example: aeadc05e-98a8-11ec-ac2c-da7ad0900001 + type: string + type: + $ref: '#/components/schemas/CaseTypeResourceType' + type: object + CaseTypeResourceAttributes: + description: Case Type resource attributes + properties: + deleted_at: + description: Timestamp of when the case type was deleted + format: date-time + nullable: true + readOnly: true + type: string + description: + description: Case type description. + example: Investigations done in case management + type: string + emoji: + description: Case type emoji. + example: "\U0001F575\U0001F3FB\u200D\u2642\uFE0F" + type: string + name: + description: Case type name. + example: Investigation + type: string + required: + - name + - emoji + type: object + CaseTypeResourceType: + default: case_type + description: Case type resource type + enum: + - case_type + example: case_type + type: string + x-enum-varnames: + - CASE_TYPE + CaseTypeResponse: + description: Case type response + properties: + data: + $ref: '#/components/schemas/CaseTypeResource' + type: object + CaseTypesResponse: + description: Case types response. + properties: + data: + description: List of case types + items: + $ref: '#/components/schemas/CaseTypeResource' + type: array + type: object CaseUpdateAttributes: description: Case update attributes properties: @@ -7558,6 +7711,54 @@ components: required: - data type: object + CaseUpdateCustomAttribute: + description: Case update custom attribute + properties: + attributes: + $ref: '#/components/schemas/CustomAttributeValue' + type: + $ref: '#/components/schemas/CaseResourceType' + required: + - attributes + - type + type: object + CaseUpdateCustomAttributeRequest: + description: Case update custom attribute request + properties: + data: + $ref: '#/components/schemas/CaseUpdateCustomAttribute' + required: + - data + type: object + CaseUpdateDescription: + description: Case update description + properties: + attributes: + $ref: '#/components/schemas/CaseUpdateDescriptionAttributes' + type: + $ref: '#/components/schemas/CaseResourceType' + required: + - attributes + - type + type: object + CaseUpdateDescriptionAttributes: + description: Case update description attributes + properties: + description: + description: Case new description + example: Seeing some weird memory increase... We shouldn't ignore this + type: string + required: + - description + type: object + CaseUpdateDescriptionRequest: + description: Case update description request + properties: + data: + $ref: '#/components/schemas/CaseUpdateDescription' + required: + - data + type: object CaseUpdatePriority: description: Case priority status properties: @@ -7612,6 +7813,35 @@ components: required: - data type: object + CaseUpdateTitle: + description: Case update title + properties: + attributes: + $ref: '#/components/schemas/CaseUpdateTitleAttributes' + type: + $ref: '#/components/schemas/CaseResourceType' + required: + - attributes + - type + type: object + CaseUpdateTitleAttributes: + description: Case update title attributes + properties: + title: + description: Case new title + example: Memory leak investigation on API + type: string + required: + - title + type: object + CaseUpdateTitleRequest: + description: Case update title request + properties: + data: + $ref: '#/components/schemas/CaseUpdateTitle' + required: + - data + type: object CasesResponse: description: Response with cases properties: @@ -11317,6 +11547,177 @@ components: data: $ref: '#/components/schemas/CsmServerlessCoverageAnalysisData' type: object + CustomAttributeConfig: + description: The definition of `CustomAttributeConfig` object. + properties: + attributes: + $ref: '#/components/schemas/CustomAttributeConfigResourceAttributes' + id: + description: Custom attribute configs identifier + example: aeadc05e-98a8-11ec-ac2c-da7ad0900001 + type: string + type: + $ref: '#/components/schemas/CustomAttributeConfigResourceType' + type: object + CustomAttributeConfigAttributesCreate: + description: Custom attribute config resource attributes + properties: + description: + description: Custom attribute description. + example: AWS Region, must be a valid region supported by AWS + type: string + display_name: + description: Custom attribute name. + example: AWS Region + type: string + is_multi: + description: Whether multiple values can be set + example: true + type: boolean + key: + description: Custom attribute key. This will be the value use to search + on this custom attribute + example: aws_region + type: string + type: + $ref: '#/components/schemas/CustomAttributeType' + required: + - display_name + - key + - type + - is_multi + type: object + CustomAttributeConfigCreate: + description: Custom attribute config + properties: + attributes: + $ref: '#/components/schemas/CustomAttributeConfigAttributesCreate' + type: + $ref: '#/components/schemas/CustomAttributeConfigResourceType' + required: + - attributes + - type + type: object + CustomAttributeConfigCreateRequest: + description: Custom attribute config create request + properties: + data: + $ref: '#/components/schemas/CustomAttributeConfigCreate' + required: + - data + type: object + CustomAttributeConfigResourceAttributes: + description: Custom attribute resource attributes + properties: + case_type_id: + description: Custom attribute config identifier. + example: aeadc05e-98a8-11ec-ac2c-da7ad0900001 + type: string + description: + description: Custom attribute description. + example: AWS Region, must be a valid region supported by AWS + type: string + display_name: + description: Custom attribute name. + example: AWS Region + type: string + is_multi: + description: Whether multiple values can be set + example: true + type: boolean + key: + description: Custom attribute key. This will be the value use to search + on this custom attribute + example: aws_region + type: string + type: + $ref: '#/components/schemas/CustomAttributeType' + required: + - case_type_id + - display_name + - key + - type + - is_multi + type: object + CustomAttributeConfigResourceType: + default: custom_attribute + description: Custom attributes config JSON:API resource type + enum: + - custom_attribute + example: custom_attribute + type: string + x-enum-varnames: + - CUSTOM_ATTRIBUTE + CustomAttributeConfigResponse: + description: Custom attribute config response. + properties: + data: + $ref: '#/components/schemas/CustomAttributeConfig' + type: object + CustomAttributeConfigsResponse: + description: Custom attribute configs response. + properties: + data: + description: List of custom attribute configs of case type + items: + $ref: '#/components/schemas/CustomAttributeConfig' + type: array + type: object + CustomAttributeMultiNumberValue: + description: Values of multi NUMBER custom attribute + items: + description: NUMBER value + format: double + type: number + type: array + CustomAttributeMultiStringValue: + description: Value of multi TEXT/URL custom attribute + items: + description: TEXT/URL Value + type: string + type: array + CustomAttributeNumberValue: + description: Value of NUMBER custom attribute + format: double + type: number + CustomAttributeStringValue: + description: Value of TEXT/URL custom attribute + type: string + CustomAttributeType: + description: Custom attributes type + enum: + - URL + - TEXT + - NUMBER + example: NUMBER + type: string + x-enum-varnames: + - URL + - TEXT + - NUMBER + CustomAttributeValue: + description: Custom attribute values + properties: + is_multi: + description: If true, value must be an array + example: false + type: boolean + type: + $ref: '#/components/schemas/CustomAttributeType' + value: + $ref: '#/components/schemas/CustomAttributeValuesUnion' + required: + - type + - is_multi + - value + type: object + CustomAttributeValuesUnion: + description: Union of supported value for a custom attribute + oneOf: + - $ref: '#/components/schemas/CustomAttributeStringValue' + - $ref: '#/components/schemas/CustomAttributeMultiStringValue' + - $ref: '#/components/schemas/CustomAttributeNumberValue' + - $ref: '#/components/schemas/CustomAttributeMultiNumberValue' CustomConnection: description: A custom connection used by an app. properties: @@ -44234,6 +44635,120 @@ components: - time_zone - restrictions type: object + TimelineCell: + description: timeline cell + properties: + author: + $ref: '#/components/schemas/TimelineCellAuthor' + cell_content: + $ref: '#/components/schemas/TimelineCellContent' + created_at: + description: Timestamp of when the cell was created + format: date-time + readOnly: true + type: string + deleted_at: + description: Timestamp of when the cell was deleted + format: date-time + readOnly: true + type: string + modified_at: + description: Timestamp of when the cell was last modified + format: date-time + readOnly: true + type: string + type: + $ref: '#/components/schemas/TimelineCellType' + type: object + TimelineCellAuthor: + description: author of the timeline cell + oneOf: + - $ref: '#/components/schemas/TimelineCellAuthorUser' + TimelineCellAuthorUser: + description: timeline cell user author + properties: + content: + $ref: '#/components/schemas/TimelineCellAuthorUserContent' + type: + $ref: '#/components/schemas/TimelineCellAuthorUserType' + type: object + TimelineCellAuthorUserContent: + description: user author content. + properties: + email: + description: user email + type: string + handle: + description: user handle + type: string + id: + description: user UUID + type: string + name: + description: user name + type: string + type: object + TimelineCellAuthorUserType: + description: user author type. + enum: + - USER + example: USER + type: string + x-enum-varnames: + - USER + TimelineCellContent: + description: timeline cell content + oneOf: + - $ref: '#/components/schemas/TimelineCellContentComment' + TimelineCellContentComment: + description: comment content + properties: + message: + description: comment message + type: string + type: object + TimelineCellResource: + description: Timeline cell JSON:API resource + properties: + attributes: + $ref: '#/components/schemas/TimelineCell' + id: + description: Timeline cell's identifier + example: aeadc05e-98a8-11ec-ac2c-da7ad0900001 + type: string + type: + $ref: '#/components/schemas/TimelineCellResourceType' + required: + - id + - type + - attributes + type: object + TimelineCellResourceType: + default: timeline_cell + description: Timeline cell JSON:API resource type + enum: + - timeline_cell + example: timeline_cell + type: string + x-enum-varnames: + - TIMELINE_CELL + TimelineCellType: + description: Timeline cell content type + enum: + - COMMENT + example: COMMENT + type: string + x-enum-varnames: + - COMMENT + TimelineResponse: + description: Timeline response + properties: + data: + description: The `TimelineResponse` `data`. + items: + $ref: '#/components/schemas/TimelineCellResource' + type: array + type: object TimeseriesFormulaQueryRequest: description: A request wrapper around a single timeseries query to be executed. properties: @@ -49206,6 +49721,169 @@ paths: summary: Get the details of a project tags: - Case Management + /api/v2/cases/types: + get: + description: Get all case types + operationId: GetAllCaseTypes + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CaseTypesResponse' + description: OK + '401': + $ref: '#/components/responses/UnauthorizedResponse' + '403': + $ref: '#/components/responses/ForbiddenResponse' + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Get all case types + tags: + - Case Management Type + post: + description: Create a Case Type + operationId: CreateCaseType + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CaseTypeCreateRequest' + description: Case type payload + required: true + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/CaseTypeResponse' + description: CREATED + '400': + $ref: '#/components/responses/BadRequestResponse' + '401': + $ref: '#/components/responses/UnauthorizedResponse' + '403': + $ref: '#/components/responses/ForbiddenResponse' + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Create a case type + tags: + - Case Management Type + /api/v2/cases/types/custom_attributes: + get: + description: Get all custom attributes + operationId: GetAllCustomAttributes + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CustomAttributeConfigsResponse' + description: OK + '401': + $ref: '#/components/responses/UnauthorizedResponse' + '403': + $ref: '#/components/responses/ForbiddenResponse' + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Get all custom attributes + tags: + - Case Management Attribute + /api/v2/cases/types/{case_type_id}: + delete: + description: Delete a case type + operationId: DeleteCaseType + parameters: + - $ref: '#/components/parameters/CaseTypeIDPathParameter' + responses: + '204': + description: No Content + '401': + $ref: '#/components/responses/UnauthorizedResponse' + '403': + $ref: '#/components/responses/ForbiddenResponse' + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Delete a case type + tags: + - Case Management Type + /api/v2/cases/types/{case_type_id}/custom_attributes: + get: + description: Get all custom attribute config of case type + operationId: GetAllCustomAttributeConfigsByCaseType + parameters: + - $ref: '#/components/parameters/CaseTypeIDPathParameter' + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CustomAttributeConfigsResponse' + description: OK + '400': + $ref: '#/components/responses/BadRequestResponse' + '401': + $ref: '#/components/responses/UnauthorizedResponse' + '403': + $ref: '#/components/responses/ForbiddenResponse' + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Get all custom attributes config of case type + tags: + - Case Management Attribute + post: + description: Create custom attribute config for a case type + operationId: CreateCustomAttributeConfig + parameters: + - $ref: '#/components/parameters/CaseTypeIDPathParameter' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CustomAttributeConfigCreateRequest' + description: Custom attribute config payload + required: true + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/CustomAttributeConfigResponse' + description: CREATED + '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' + summary: Create custom attribute config for a case type + tags: + - Case Management Attribute + /api/v2/cases/types/{case_type_id}/custom_attributes/{custom_attribute_id}: + delete: + description: Delete custom attribute config + operationId: DeleteCustomAttributeConfig + parameters: + - $ref: '#/components/parameters/CaseTypeIDPathParameter' + - $ref: '#/components/parameters/CaseCustomAttributeIDPathParameter' + responses: + '204': + description: No Content + '400': + $ref: '#/components/responses/BadRequestResponse' + '401': + $ref: '#/components/responses/UnauthorizedResponse' + '403': + $ref: '#/components/responses/ForbiddenResponse' + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + summary: Delete custom attributes config + tags: + - Case Management Attribute /api/v2/cases/{case_id}: get: description: Get the details of case by `case_id` @@ -49351,6 +50029,168 @@ paths: summary: Update case attributes tags: - Case Management + /api/v2/cases/{case_id}/comment: + post: + description: Comment case + operationId: CommentCase + parameters: + - $ref: '#/components/parameters/CaseIDPathParameter' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CaseCommentRequest' + description: Case comment payload + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TimelineResponse' + 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' + summary: Comment case + tags: + - Case Management + /api/v2/cases/{case_id}/comment/{cell_id}: + delete: + description: Delete case comment + operationId: DeleteCaseComment + parameters: + - $ref: '#/components/parameters/CaseIDPathParameter' + - $ref: '#/components/parameters/CellIDPathParameter' + responses: + '204': + description: No Content + '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' + summary: Delete case comment + tags: + - Case Management + /api/v2/cases/{case_id}/custom_attributes/{custom_attribute_key}: + delete: + description: Delete custom attribute from case + operationId: DeleteCaseCustomAttribute + parameters: + - $ref: '#/components/parameters/CaseIDPathParameter' + - $ref: '#/components/parameters/CaseCustomAttributeKeyPathParameter' + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CaseResponse' + description: OK + '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: Delete custom attribute from case + tags: + - Case Management + post: + description: Update case custom attribute + operationId: UpdateCaseCustomAttribute + parameters: + - $ref: '#/components/parameters/CaseIDPathParameter' + - $ref: '#/components/parameters/CaseCustomAttributeKeyPathParameter' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CaseUpdateCustomAttributeRequest' + description: Update case custom attribute 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 custom attribute + tags: + - Case Management + /api/v2/cases/{case_id}/description: + post: + description: Update case description + operationId: UpdateCaseDescription + parameters: + - $ref: '#/components/parameters/CaseIDPathParameter' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CaseUpdateDescriptionRequest' + description: Case description 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 description + tags: + - Case Management /api/v2/cases/{case_id}/priority: post: description: Update case priority @@ -49427,6 +50267,44 @@ paths: summary: Update case status tags: - Case Management + /api/v2/cases/{case_id}/title: + post: + description: Update case title + operationId: UpdateCaseTitle + parameters: + - $ref: '#/components/parameters/CaseIDPathParameter' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CaseUpdateTitleRequest' + description: Case title 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 title + tags: + - Case Management /api/v2/cases/{case_id}/unarchive: post: description: Unarchive case @@ -70365,6 +71243,14 @@ tags: [Case Management page](https://docs.datadoghq.com/service_management/case_management/) for more information. name: Case Management +- description: View and configure custom attributes within Case Management. See the + [Case Management page](https://docs.datadoghq.com/service_management/case_management/) + for more information. + name: Case Management Attribute +- description: View and configure case types within Case Management. See the [Case + Management page](https://docs.datadoghq.com/service_management/case_management/) + for more information. + name: Case Management Type - description: The Cloud Cost Management API allows you to set up, edit, and delete Cloud Cost Management accounts for AWS, Azure, and GCP. You can query your cost data by using the [Metrics endpoint](https://docs.datadoghq.com/api/latest/metrics/#query-timeseries-data-across-multiple-products) diff --git a/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-Bad-Request-response_3121292786/frozen.json b/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-Bad-Request-response_3121292786/frozen.json new file mode 100644 index 000000000000..4e463c4047d5 --- /dev/null +++ b/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-Bad-Request-response_3121292786/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:54.654Z" diff --git a/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-Bad-Request-response_3121292786/recording.har b/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-Bad-Request-response_3121292786/recording.har new file mode 100644 index 000000000000..c5133a0b1de3 --- /dev/null +++ b/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-Bad-Request-response_3121292786/recording.har @@ -0,0 +1,157 @@ +{ + "log": { + "_recordingName": "Case Management Attribute/Create custom attribute config for a case type returns \"Bad Request\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "dc45fc730f09c12d941beaf799af6461", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 110, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 560, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"},\"type\":\"case_type\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types" + }, + "response": { + "bodySize": 154, + "content": { + "mimeType": "application/vnd.api+json", + "size": 154, + "text": "{\"data\":{\"id\":\"cd95d1a3-d547-4fd6-99ee-af1c7cc5e4c5\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 662, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-09-04T09:11:54.661Z", + "time": 431 + }, + { + "_id": "b62c6dd5473e0de1fc763b1926eadfa7", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 179, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 628, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"display_name\":\"AWS Region 17569771-0000-0000-0000-175697711400\",\"is_multi\":true,\"key\":\"region_5a943e5ba0a129d8\",\"type\":\"FLOAT\"},\"type\":\"custom_attribute\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/cd95d1a3-d547-4fd6-99ee-af1c7cc5e4c5/custom_attributes" + }, + "response": { + "bodySize": 51, + "content": { + "mimeType": "application/vnd.api+json", + "size": 51, + "text": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 661, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 400, + "statusText": "Bad Request" + }, + "startedDateTime": "2025-09-04T09:11:55.134Z", + "time": 388 + }, + { + "_id": "f40754011857e4a1f3d5b7203ae257f1", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 533, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/cd95d1a3-d547-4fd6-99ee-af1c7cc5e4c5" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 601, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-09-04T09:11:55.540Z", + "time": 385 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-CREATED-response_3050737976/frozen.json b/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-CREATED-response_3050737976/frozen.json new file mode 100644 index 000000000000..b5c9ec46824d --- /dev/null +++ b/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-CREATED-response_3050737976/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:55.943Z" diff --git a/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-CREATED-response_3050737976/recording.har b/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-CREATED-response_3050737976/recording.har new file mode 100644 index 000000000000..416bdd728f93 --- /dev/null +++ b/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-CREATED-response_3050737976/recording.har @@ -0,0 +1,157 @@ +{ + "log": { + "_recordingName": "Case Management Attribute/Create custom attribute config for a case type returns \"CREATED\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "dc45fc730f09c12d941beaf799af6461", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 110, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 560, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"},\"type\":\"case_type\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types" + }, + "response": { + "bodySize": 154, + "content": { + "mimeType": "application/vnd.api+json", + "size": 154, + "text": "{\"data\":{\"id\":\"1fab87e4-341d-4a79-a294-171b4e2c22f8\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 662, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-09-04T09:11:55.946Z", + "time": 380 + }, + { + "_id": "c3baaaf341aacb8b01dbd18b2d3f1ebe", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 180, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 628, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"display_name\":\"AWS Region 17569771-0000-0000-0000-175697711500\",\"is_multi\":true,\"key\":\"region_eaa423ff52828a39\",\"type\":\"NUMBER\"},\"type\":\"custom_attribute\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/1fab87e4-341d-4a79-a294-171b4e2c22f8/custom_attributes" + }, + "response": { + "bodySize": 301, + "content": { + "mimeType": "application/vnd.api+json", + "size": 301, + "text": "{\"data\":{\"id\":\"0dc4a14f-f96b-4a27-893a-72341da7ce1d\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"1fab87e4-341d-4a79-a294-171b4e2c22f8\",\"display_name\":\"AWS Region 17569771-0000-0000-0000-175697711500\",\"is_multi\":true,\"key\":\"region_eaa423ff52828a39\",\"type\":\"NUMBER\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 662, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-09-04T09:11:56.337Z", + "time": 393 + }, + { + "_id": "a7adf5a892feb41481d6140b3be18a43", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 533, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/1fab87e4-341d-4a79-a294-171b4e2c22f8" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 601, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-09-04T09:11:56.741Z", + "time": 390 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-Not-Found-response_1680034465/frozen.json b/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-Not-Found-response_1680034465/frozen.json new file mode 100644 index 000000000000..fe1c3d834637 --- /dev/null +++ b/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-Not-Found-response_1680034465/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:57.143Z" diff --git a/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-Not-Found-response_1680034465/recording.har b/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-Not-Found-response_1680034465/recording.har new file mode 100644 index 000000000000..2a53dd6b669b --- /dev/null +++ b/cassettes/v2/Case-Management-Attribute_4234170376/Create-custom-attribute-config-for-a-case-type-returns-Not-Found-response_1680034465/recording.har @@ -0,0 +1,67 @@ +{ + "log": { + "_recordingName": "Case Management Attribute/Create custom attribute config for a case type returns \"Not Found\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "0bbaaa9315bac6242156208fa76eeb5a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 180, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 628, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"display_name\":\"AWS Region 17569771-0000-0000-0000-175697711700\",\"is_multi\":true,\"key\":\"region_ea84cf4349d82f7c\",\"type\":\"NUMBER\"},\"type\":\"custom_attribute\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/9fd476d7-a955-454a-851d-980c655c02d3/custom_attributes" + }, + "response": { + "bodySize": 72, + "content": { + "mimeType": "application/vnd.api+json", + "size": 72, + "text": "{\"errors\":[{\"code\":\"resource_not_found\",\"title\":\"case_type not found\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 661, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 404, + "statusText": "Not Found" + }, + "startedDateTime": "2025-09-04T09:11:57.151Z", + "time": 390 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management-Attribute_4234170376/Delete-custom-attributes-config-returns-Bad-Request-response_1275460984/frozen.json b/cassettes/v2/Case-Management-Attribute_4234170376/Delete-custom-attributes-config-returns-Bad-Request-response_1275460984/frozen.json new file mode 100644 index 000000000000..e5eda55e3661 --- /dev/null +++ b/cassettes/v2/Case-Management-Attribute_4234170376/Delete-custom-attributes-config-returns-Bad-Request-response_1275460984/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:57.550Z" diff --git a/cassettes/v2/Case-Management-Attribute_4234170376/Delete-custom-attributes-config-returns-Bad-Request-response_1275460984/recording.har b/cassettes/v2/Case-Management-Attribute_4234170376/Delete-custom-attributes-config-returns-Bad-Request-response_1275460984/recording.har new file mode 100644 index 000000000000..a1e8a1caa086 --- /dev/null +++ b/cassettes/v2/Case-Management-Attribute_4234170376/Delete-custom-attributes-config-returns-Bad-Request-response_1275460984/recording.har @@ -0,0 +1,147 @@ +{ + "log": { + "_recordingName": "Case Management Attribute/Delete custom attributes config returns \"Bad Request\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "dc45fc730f09c12d941beaf799af6461", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 110, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 560, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"},\"type\":\"case_type\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types" + }, + "response": { + "bodySize": 154, + "content": { + "mimeType": "application/vnd.api+json", + "size": 154, + "text": "{\"data\":{\"id\":\"8fa9005a-76e7-4742-ab6c-b68b1b9f036b\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 662, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-09-04T09:11:57.563Z", + "time": 373 + }, + { + "_id": "aec5122641c097dfe1b77d05bc5b22be", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 576, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/8fa9005a-76e7-4742-ab6c-b68b1b9f036b/custom_attributes/not-an-uuid" + }, + "response": { + "bodySize": 144, + "content": { + "mimeType": "application/vnd.api+json", + "size": 144, + "text": "{\"errors\":[{\"status\":\"400\",\"title\":\"Invalid Parameter\",\"detail\":\"invalid parameter \\\"CustomAttributeId\\\" in \\\"path\\\"; expected type \\\"uuid\\\"\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 662, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 400, + "statusText": "Bad Request" + }, + "startedDateTime": "2025-09-04T09:11:57.940Z", + "time": 385 + }, + { + "_id": "0efbb1d9e2f42063e8868d1c87f3bca3", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 533, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/8fa9005a-76e7-4742-ab6c-b68b1b9f036b" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 601, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-09-04T09:11:58.344Z", + "time": 380 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management-Attribute_4234170376/Delete-custom-attributes-config-returns-No-Content-response_2111044902/frozen.json b/cassettes/v2/Case-Management-Attribute_4234170376/Delete-custom-attributes-config-returns-No-Content-response_2111044902/frozen.json new file mode 100644 index 000000000000..8b8eb709b3ad --- /dev/null +++ b/cassettes/v2/Case-Management-Attribute_4234170376/Delete-custom-attributes-config-returns-No-Content-response_2111044902/frozen.json @@ -0,0 +1 @@ +"2025-08-21T12:41:46.533Z" diff --git a/cassettes/v2/Case-Management-Attribute_4234170376/Delete-custom-attributes-config-returns-No-Content-response_2111044902/recording.har b/cassettes/v2/Case-Management-Attribute_4234170376/Delete-custom-attributes-config-returns-No-Content-response_2111044902/recording.har new file mode 100644 index 000000000000..315537cb6c9a --- /dev/null +++ b/cassettes/v2/Case-Management-Attribute_4234170376/Delete-custom-attributes-config-returns-No-Content-response_2111044902/recording.har @@ -0,0 +1,194 @@ +{ + "log": { + "_recordingName": "Case Management Attribute/Delete custom attributes config returns \"No Content\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "dc45fc730f09c12d941beaf799af6461", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 110, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 560, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"},\"type\":\"case_type\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types" + }, + "response": { + "bodySize": 154, + "content": { + "mimeType": "application/vnd.api+json", + "size": 154, + "text": "{\"data\":{\"id\":\"fdf93265-be3d-4a97-ae0d-540b049f7753\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-08-21T12:41:46.537Z", + "time": 387 + }, + { + "_id": "28e26c7b944dae65c47f1824e35eae3f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 226, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 628, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557801-0000-0000-0000-175578010600\",\"is_multi\":true,\"key\":\"attribute_a058b510f096c932\",\"type\":\"TEXT\"},\"type\":\"custom_attribute\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/fdf93265-be3d-4a97-ae0d-540b049f7753/custom_attributes" + }, + "response": { + "bodySize": 347, + "content": { + "mimeType": "application/vnd.api+json", + "size": 347, + "text": "{\"data\":{\"id\":\"7ce13520-94b7-4391-bb64-c45776011f05\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"fdf93265-be3d-4a97-ae0d-540b049f7753\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557801-0000-0000-0000-175578010600\",\"is_multi\":true,\"key\":\"attribute_a058b510f096c932\",\"type\":\"TEXT\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-08-21T12:41:46.930Z", + "time": 396 + }, + { + "_id": "c59c44850c64b61a4b2d2e78befb86b4", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 601, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/fdf93265-be3d-4a97-ae0d-540b049f7753/custom_attributes/7ce13520-94b7-4391-bb64-c45776011f05" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 602, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-21T12:41:47.332Z", + "time": 399 + }, + { + "_id": "b7827c1572349f0355e3feef612afa7c", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 533, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/fdf93265-be3d-4a97-ae0d-540b049f7753" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 602, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-21T12:41:47.738Z", + "time": 390 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management-Attribute_4234170376/Get-all-custom-attributes-config-of-case-type-returns-OK-response_3273320965/frozen.json b/cassettes/v2/Case-Management-Attribute_4234170376/Get-all-custom-attributes-config-of-case-type-returns-OK-response_3273320965/frozen.json new file mode 100644 index 000000000000..42fecb4604bc --- /dev/null +++ b/cassettes/v2/Case-Management-Attribute_4234170376/Get-all-custom-attributes-config-of-case-type-returns-OK-response_3273320965/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:58.728Z" diff --git a/cassettes/v2/Case-Management-Attribute_4234170376/Get-all-custom-attributes-config-of-case-type-returns-OK-response_3273320965/recording.har b/cassettes/v2/Case-Management-Attribute_4234170376/Get-all-custom-attributes-config-of-case-type-returns-OK-response_3273320965/recording.har new file mode 100644 index 000000000000..71dc6da42db3 --- /dev/null +++ b/cassettes/v2/Case-Management-Attribute_4234170376/Get-all-custom-attributes-config-of-case-type-returns-OK-response_3273320965/recording.har @@ -0,0 +1,147 @@ +{ + "log": { + "_recordingName": "Case Management Attribute/Get all custom attributes config of case type returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "dc45fc730f09c12d941beaf799af6461", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 110, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 560, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"},\"type\":\"case_type\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types" + }, + "response": { + "bodySize": 154, + "content": { + "mimeType": "application/vnd.api+json", + "size": 154, + "text": "{\"data\":{\"id\":\"cf9dfa09-a302-428a-83c0-cd9a61ca3308\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 662, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-09-04T09:11:58.732Z", + "time": 378 + }, + { + "_id": "a2282edb32b0023b6dbe84c3a4a4dc12", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 585, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/cf9dfa09-a302-428a-83c0-cd9a61ca3308/custom_attributes" + }, + "response": { + "bodySize": 11, + "content": { + "mimeType": "application/vnd.api+json", + "size": 11, + "text": "{\"data\":[]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 662, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-09-04T09:11:59.118Z", + "time": 410 + }, + { + "_id": "b0f5c405ba0f8930098b359d3a74fdea", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 533, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/cf9dfa09-a302-428a-83c0-cd9a61ca3308" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 601, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-09-04T09:11:59.531Z", + "time": 379 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management-Attribute_4234170376/Get-all-custom-attributes-returns-OK-response_3120075986/frozen.json b/cassettes/v2/Case-Management-Attribute_4234170376/Get-all-custom-attributes-returns-OK-response_3120075986/frozen.json new file mode 100644 index 000000000000..a332a563ef94 --- /dev/null +++ b/cassettes/v2/Case-Management-Attribute_4234170376/Get-all-custom-attributes-returns-OK-response_3120075986/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:59.924Z" diff --git a/cassettes/v2/Case-Management-Attribute_4234170376/Get-all-custom-attributes-returns-OK-response_3120075986/recording.har b/cassettes/v2/Case-Management-Attribute_4234170376/Get-all-custom-attributes-returns-OK-response_3120075986/recording.har new file mode 100644 index 000000000000..155b91438614 --- /dev/null +++ b/cassettes/v2/Case-Management-Attribute_4234170376/Get-all-custom-attributes-returns-OK-response_3120075986/recording.har @@ -0,0 +1,57 @@ +{ + "log": { + "_recordingName": "Case Management Attribute/Get all custom attributes returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "2a69ff63a582b23fc2e6dc1b92404b23", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 532, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/custom_attributes" + }, + "response": { + "bodySize": 21058, + "content": { + "mimeType": "application/vnd.api+json", + "size": 21058, + "text": "{\"data\":[{\"id\":\"bda504ee-c9d9-45d9-bb48-e08f41452e42\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"d9a99e7c-255c-4328-b29c-249bbbce55d5\",\"display_name\":\"AWS Region\",\"is_multi\":true,\"key\":\"aws_region\",\"type\":\"NUMBER\"}},{\"id\":\"e2b302ff-22de-4c4b-a1e0-6c485e4d5475\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"a8f6af82-7364-4fa2-be63-f9d82d49f126\",\"display_name\":\"AWS Region 17556340-0000-0000-0000-175563402000\",\"is_multi\":true,\"key\":\"region_0ee45d926ae1e848\",\"type\":\"NUMBER\"}},{\"id\":\"1333cfaf-56fd-4be3-83b0-5404920deb21\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"d3f2e924-efb4-4fea-858a-b0a104de58f1\",\"display_name\":\"AWS Region 17556346-0000-0000-0000-175563460700\",\"is_multi\":true,\"key\":\"region_77c0e57a87ea0c59\",\"type\":\"NUMBER\"}},{\"id\":\"71559a35-48cf-4bca-bc26-a58227513098\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"6fc2e97b-4d59-48ee-8a00-039b07f147e4\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556889-0000-0000-0000-175568896700\",\"is_multi\":true,\"key\":\"attribute_f083308d73cf8fb6\",\"type\":\"TEXT\"}},{\"id\":\"9a9dfa93-5247-4b9c-8016-e941bf7b90be\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"387f5315-b404-40f6-9005-cccac8ef06fa\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556889-0000-0000-0000-175568897500\",\"is_multi\":true,\"key\":\"attribute_9ba0031081800ba4\",\"type\":\"TEXT\"}},{\"id\":\"48376b02-6ce2-4933-84cb-901f326acb3f\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"37ab3980-5401-4a6f-ae3d-f0f428310448\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556889-0000-0000-0000-175568897800\",\"is_multi\":true,\"key\":\"attribute_c34388c70e9fcf0d\",\"type\":\"TEXT\"}},{\"id\":\"25e06f7e-2d3e-4ec0-8b27-7b4405a06bcd\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"9b42bc58-728f-4ea3-8ab9-d6194ef6e6a8\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556903-0000-0000-0000-175569039900\",\"is_multi\":true,\"key\":\"attribute_8378b7e8181b8c7e\",\"type\":\"TEXT\"}},{\"id\":\"3e191a3a-2ff3-413c-a90f-6209de01d780\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"d3f86d4c-876b-4ebd-9c71-050d5d60aacb\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556904-0000-0000-0000-175569040700\",\"is_multi\":true,\"key\":\"attribute_4a060a293658c6f4\",\"type\":\"TEXT\"}},{\"id\":\"aa4bccbc-7e9b-4b07-8ca2-df7143363aa7\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"644f21a0-a650-410c-a8ec-c7ceadeaa28d\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556904-0000-0000-0000-175569040900\",\"is_multi\":true,\"key\":\"attribute_523da46ac3093bf6\",\"type\":\"TEXT\"}},{\"id\":\"1462324f-dc66-431f-a947-c9388be48a24\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"14b8f6a9-3bd9-4fad-b66e-68dac1bf547a\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556911-0000-0000-0000-175569114600\",\"is_multi\":true,\"key\":\"attribute_814788f737a0ef11\",\"type\":\"TEXT\"}},{\"id\":\"3f8875d3-35bb-44ef-9fd0-fbab1df96f12\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"6c66be3b-c6d1-45b0-b1c4-473c04f3dc39\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556911-0000-0000-0000-175569115400\",\"is_multi\":true,\"key\":\"attribute_a98069ab218fcfe9\",\"type\":\"TEXT\"}},{\"id\":\"b2cd82c7-8be8-4463-8e8d-9401835f7522\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"fbd65d3f-0fd5-4898-958d-f1e4ded98164\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556911-0000-0000-0000-175569115700\",\"is_multi\":true,\"key\":\"attribute_d46a2098b9ee266f\",\"type\":\"TEXT\"}},{\"id\":\"a9230c4e-044b-4484-906d-6fa58695a811\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"581c81f2-968c-4f23-bc35-e5a4f76246e6\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556924-0000-0000-0000-175569240200\",\"is_multi\":true,\"key\":\"attribute_8859075b7a20193b\",\"type\":\"TEXT\"}},{\"id\":\"b4524398-8030-4efb-8a62-b756bd5a805e\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"2cf3b0ea-aced-42f8-af92-252b294fb478\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556924-0000-0000-0000-175569241100\",\"is_multi\":true,\"key\":\"attribute_86c4dfcf527d6e57\",\"type\":\"TEXT\"}},{\"id\":\"39317cd6-883f-44d6-9bed-5483d0159755\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"e2d429a0-5dc2-4e7d-aafc-07588da368b2\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556924-0000-0000-0000-175569241300\",\"is_multi\":true,\"key\":\"attribute_a134bb4fb8e28721\",\"type\":\"TEXT\"}},{\"id\":\"61982db9-3df8-4812-bb05-0e0653b9850c\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"cfbe7974-89c8-4198-ab82-8a184607d214\",\"display_name\":\"AWS Region 17556946-0000-0000-0000-175569462000\",\"is_multi\":true,\"key\":\"region_775cb03d363e3098\",\"type\":\"NUMBER\"}},{\"id\":\"59398b5f-7790-49ee-8788-7ff04cc6a9dc\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"d34c57fb-54a6-4f6c-a86e-3a73de621e2d\",\"display_name\":\"AWS Region 17556948-0000-0000-0000-175569483000\",\"is_multi\":true,\"key\":\"region_b52c3b58c2bf7600\",\"type\":\"NUMBER\"}},{\"id\":\"a7a2d485-b59a-48c2-a656-01118748e67a\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"70214597-0ebf-470d-a7c8-6c596d786ba2\",\"display_name\":\"AWS Region 17556949-0000-0000-0000-175569494400\",\"is_multi\":true,\"key\":\"region_b7851408833202a0\",\"type\":\"NUMBER\"}},{\"id\":\"52605ddf-9fac-40fe-aed9-0dacb93d9faf\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"eefd1896-506b-4035-9b60-110ac28e1814\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556952-0000-0000-0000-175569523900\",\"is_multi\":true,\"key\":\"attribute_5c0b319faa816705\",\"type\":\"TEXT\"}},{\"id\":\"688a583a-c76c-466a-97ef-835efb9411d6\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"c351af96-9af2-4847-a0c8-11b201b1ae5f\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556952-0000-0000-0000-175569524700\",\"is_multi\":true,\"key\":\"attribute_7d75ff84c4e2bc37\",\"type\":\"TEXT\"}},{\"id\":\"a33fb20d-794d-465e-a46c-be7976a3eecc\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"0c16ab5a-ac15-49a0-ad03-aef57d4d42e8\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556952-0000-0000-0000-175569524900\",\"is_multi\":true,\"key\":\"attribute_178cc47942e4b613\",\"type\":\"TEXT\"}},{\"id\":\"481e660d-e54a-4431-9eb6-aa3eafbba793\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"5ee6243b-b005-4bd4-a5f2-fe8c4ff2ddfe\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556955-0000-0000-0000-175569559100\",\"is_multi\":true,\"key\":\"attribute_ce39a90e4dbff5b2\",\"type\":\"TEXT\"}},{\"id\":\"d57330bb-2e36-4f85-a181-de5b407c0784\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"7f70d4a0-d06d-49f5-928f-c2ca73aeb862\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556955-0000-0000-0000-175569559900\",\"is_multi\":true,\"key\":\"attribute_5028395cf6855c3c\",\"type\":\"TEXT\"}},{\"id\":\"686b5832-2ea3-49a8-b56c-19209626b503\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"1387ec4d-f40a-4b31-8d0f-bc161326e588\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556956-0000-0000-0000-175569560200\",\"is_multi\":true,\"key\":\"attribute_30e2ba5485ed5459\",\"type\":\"TEXT\"}},{\"id\":\"3404866e-32d7-4f50-854c-a06e8f12e39a\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"02323717-20b8-4ecf-8c34-ef7dd1841f46\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556962-0000-0000-0000-175569621700\",\"is_multi\":true,\"key\":\"attribute_7d1796807c0cb52e\",\"type\":\"TEXT\"}},{\"id\":\"23ae2400-0dee-4f38-bb01-bef603a5a6ce\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"8ba67013-03d9-47e6-b0fc-746ce6587cef\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556962-0000-0000-0000-175569622600\",\"is_multi\":true,\"key\":\"attribute_749357e183774ae6\",\"type\":\"TEXT\"}},{\"id\":\"5c06455e-72c8-422e-9ef8-3c2dcbd74bdb\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"7615e5a7-d95b-41b2-a082-47bf7ac815b9\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556962-0000-0000-0000-175569622800\",\"is_multi\":true,\"key\":\"attribute_a4e4d3ba3d31a1ef\",\"type\":\"TEXT\"}},{\"id\":\"79120912-9860-42f0-9ba6-e42ee7aacaaf\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"b9e753b2-d41d-40d6-8c1c-3e8522b9cfd5\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556964-0000-0000-0000-175569640700\",\"is_multi\":true,\"key\":\"attribute_e265f65dbcb73e83\",\"type\":\"TEXT\"}},{\"id\":\"9763ab6a-4c89-403d-95d5-3fe4313f0d6b\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"ba86214d-a2f3-4067-b507-77d75ad9db7d\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556964-0000-0000-0000-175569641600\",\"is_multi\":true,\"key\":\"attribute_3964549f8b8f9c18\",\"type\":\"TEXT\"}},{\"id\":\"ee11612f-2bc5-4d4b-8c6c-6ab3661ae7d6\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"7a256076-d73a-4581-a955-c036ca560fd3\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556964-0000-0000-0000-175569641900\",\"is_multi\":true,\"key\":\"attribute_7566d967ae17a843\",\"type\":\"TEXT\"}},{\"id\":\"599f166e-e3cc-4884-8bae-815313734aee\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"ca5baeb1-1abf-4983-8761-922382085818\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556964-0000-0000-0000-175569649000\",\"is_multi\":true,\"key\":\"attribute_60c26d0a25bc30d4\",\"type\":\"TEXT\"}},{\"id\":\"1bdfa747-cf2e-4e0c-8b41-06d8d5d55c04\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"a080a4f4-8f02-47b0-854f-b96d06d137e8\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556964-0000-0000-0000-175569649800\",\"is_multi\":true,\"key\":\"attribute_77453b443abcee52\",\"type\":\"TEXT\"}},{\"id\":\"a8822151-6c4b-45a5-9259-e881b235503f\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"220d930b-828d-4b57-a38f-f09ced11d439\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556965-0000-0000-0000-175569650100\",\"is_multi\":true,\"key\":\"attribute_1915854b20a2258d\",\"type\":\"TEXT\"}},{\"id\":\"6fc1b29c-338d-4ab1-bf7e-6a0467a32c76\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"7eb35cdb-4622-4a60-beb1-d292387b0314\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556967-0000-0000-0000-175569673400\",\"is_multi\":true,\"key\":\"attribute_6f914c880f7b16f5\",\"type\":\"TEXT\"}},{\"id\":\"85c0c697-fe36-4118-9d0e-01fa549f42ca\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"bb399fc7-2ae4-4b9c-a645-b46f50b01347\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556967-0000-0000-0000-175569674300\",\"is_multi\":true,\"key\":\"attribute_db02e2104de4b2ff\",\"type\":\"TEXT\"}},{\"id\":\"97ffb8a9-75b7-40cb-a086-2e20954d0b00\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"2402c3fb-d0a2-4460-bd62-da434e3dff7c\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556967-0000-0000-0000-175569674500\",\"is_multi\":true,\"key\":\"attribute_5a41c02f06567fd0\",\"type\":\"TEXT\"}},{\"id\":\"c4dbb6c6-5f3a-4d91-a105-58717ae692ba\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"b300e2b4-5084-443b-b8f2-d1d3611be8d6\",\"display_name\":\"AWS Region 17556983-0000-0000-0000-175569839300\",\"is_multi\":true,\"key\":\"region_fa9fe2cc487703c1\",\"type\":\"NUMBER\"}},{\"id\":\"14cc89ac-6ce2-4f75-a761-bf724ef1fc4a\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"c8338d5b-1e0b-4d0e-a404-35ca2f47ff0d\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556984-0000-0000-0000-175569843800\",\"is_multi\":true,\"key\":\"attribute_5aa6271564fed657\",\"type\":\"TEXT\"}},{\"id\":\"cafa5687-2248-4f06-8d99-4afbcaa902c8\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"3879f548-5eec-4c3f-8d7b-b0b2671fd522\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556984-0000-0000-0000-175569844700\",\"is_multi\":true,\"key\":\"attribute_af26a7482e81c29e\",\"type\":\"TEXT\"}},{\"id\":\"13f4bfa6-aa37-47c1-95c5-187f47944a3b\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"6e04d185-29aa-4770-b14d-fd2741f049cc\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17556984-0000-0000-0000-175569845000\",\"is_multi\":true,\"key\":\"attribute_988ac85e509c81a6\",\"type\":\"TEXT\"}},{\"id\":\"c9a3bb56-eb9e-4b4b-9283-db8f1dc68605\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"895b0b2c-98de-482b-b315-195ca654cfd0\",\"display_name\":\"AWS Region 17557048-0000-0000-0000-175570480500\",\"is_multi\":true,\"key\":\"region_0bc4f8f70481eb5f\",\"type\":\"NUMBER\"}},{\"id\":\"a1d3eb0e-c8c5-4fcc-bb7b-a9e630d9b394\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"f66b10ec-73f2-420c-8c2e-b2264cb5577a\",\"display_name\":\"AWS Region 17557050-0000-0000-0000-175570501300\",\"is_multi\":true,\"key\":\"region_63d115f6f026a1ba\",\"type\":\"NUMBER\"}},{\"id\":\"f4a4bf9a-c1e0-4f10-8429-45754b878c21\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"a9a925b3-6198-4ad1-8fb7-1d6e2691ed4f\",\"display_name\":\"AWS Region 17557748-0000-0000-0000-175577488500\",\"is_multi\":true,\"key\":\"region_8264a16ae84e0888\",\"type\":\"NUMBER\"}},{\"id\":\"00011772-5eb7-4ef7-a517-bbb81c349119\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"b93415ca-0644-47d6-9547-f1af159ebe69\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557749-0000-0000-0000-175577495000\",\"is_multi\":true,\"key\":\"attribute_84def13b217a3016\",\"type\":\"TEXT\"}},{\"id\":\"72c3cc35-62ef-49e8-b6c6-0e92d379d824\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"e9e97b17-30cf-4068-8c5a-657b509b56bf\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557749-0000-0000-0000-175577495900\",\"is_multi\":true,\"key\":\"attribute_58502fb5f71ba03c\",\"type\":\"TEXT\"}},{\"id\":\"f69cc9b7-d422-4b17-916d-d37702882a43\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"56855740-86fc-42c5-9ed3-82bed933cfa3\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557749-0000-0000-0000-175577496200\",\"is_multi\":true,\"key\":\"attribute_11aa72538cbc80b0\",\"type\":\"TEXT\"}},{\"id\":\"a7162904-b251-4be6-9122-7e7063f26cfa\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"21779b8e-c1e1-4886-94e9-1b5b18d21366\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557756-0000-0000-0000-175577565600\",\"is_multi\":true,\"key\":\"attribute_da8b014dc613e74e\",\"type\":\"TEXT\"}},{\"id\":\"6f9ac272-9f08-47d4-b6d9-e2213a8c67e9\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"dd9805ac-43e8-447d-a521-25bbddf47f8a\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557756-0000-0000-0000-175577566500\",\"is_multi\":true,\"key\":\"attribute_7d7558fef3d3f18a\",\"type\":\"TEXT\"}},{\"id\":\"d489ec89-c7d9-4777-ae78-94327a9761d7\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"1295370d-69c2-43d1-899f-71e9d67e5474\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557756-0000-0000-0000-175577566800\",\"is_multi\":true,\"key\":\"attribute_cea115a7c56274af\",\"type\":\"TEXT\"}},{\"id\":\"b8472f11-c928-4600-bf66-57e4ef0ac2ac\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"b7b7e66e-e6a4-451f-95a1-ad427e83da19\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557766-0000-0000-0000-175577664100\",\"is_multi\":true,\"key\":\"attribute_b1e51c15e5eb4c95\",\"type\":\"TEXT\"}},{\"id\":\"f72172a1-50c2-404a-81cd-4b79c7dc6cfd\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"615f2510-83f5-46ba-b244-012ced51027a\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557766-0000-0000-0000-175577664900\",\"is_multi\":true,\"key\":\"attribute_87f0debab731bcf4\",\"type\":\"TEXT\"}},{\"id\":\"93911656-ee55-4269-a8a0-640cd2292eae\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"6010ef55-cf69-4e91-959d-a6f14a6384ee\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557766-0000-0000-0000-175577665200\",\"is_multi\":true,\"key\":\"attribute_d97d47c4d1519f5d\",\"type\":\"TEXT\"}},{\"id\":\"680b2451-2eaa-445e-8a60-73c114e0e10a\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"e4641157-ebc4-4e6d-b785-84fc8f0347f3\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557769-0000-0000-0000-175577694200\",\"is_multi\":true,\"key\":\"attribute_f462946738b6f280\",\"type\":\"TEXT\"}},{\"id\":\"1fa53572-5ba9-441c-8280-c0e1421569ea\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"602b0512-58e4-4fa5-a004-dccd954b7ab8\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557769-0000-0000-0000-175577695100\",\"is_multi\":true,\"key\":\"attribute_7f2c794a40953354\",\"type\":\"TEXT\"}},{\"id\":\"1458f000-f648-4f8a-910d-faf267187405\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"0295702b-41e6-4a9e-8681-a237d11b5843\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557769-0000-0000-0000-175577695300\",\"is_multi\":true,\"key\":\"attribute_fb1043dd816c6a32\",\"type\":\"TEXT\"}},{\"id\":\"65a48561-437a-4f26-9eab-69de97482927\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"bfa696f1-341e-4216-ba15-81ac431d6419\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557777-0000-0000-0000-175577775000\",\"is_multi\":true,\"key\":\"attribute_4b505c18f8fde726\",\"type\":\"TEXT\"}},{\"id\":\"9679710e-1710-4b81-9fdc-a8aefdc5181c\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"54997fa0-0c3f-43cb-9e84-39f5f5ce3f09\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557777-0000-0000-0000-175577775800\",\"is_multi\":true,\"key\":\"attribute_f6b3b818b9e7896f\",\"type\":\"TEXT\"}},{\"id\":\"812ca37d-f3e8-4f12-9f38-a7f72321b7fc\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"1e036814-3134-4bc5-8e97-1f14ba77fac3\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557777-0000-0000-0000-175577776000\",\"is_multi\":true,\"key\":\"attribute_48ad4b2bdda0532c\",\"type\":\"TEXT\"}},{\"id\":\"c18c3669-9507-4293-ac56-08711b1e16a6\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"3dd78296-b989-466d-97ef-428517d851ee\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557789-0000-0000-0000-175577890200\",\"is_multi\":true,\"key\":\"attribute_08d279361f9bcdbb\",\"type\":\"TEXT\"}},{\"id\":\"49cb8cff-1ff0-4476-b0c9-042e08935cb9\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"b36e8af6-a952-43bb-b54b-d7b80fc1344e\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557789-0000-0000-0000-175577891000\",\"is_multi\":true,\"key\":\"attribute_1d2a4f8f9b39a284\",\"type\":\"TEXT\"}},{\"id\":\"df10a213-93aa-4406-98a7-f9a7c5dccefd\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"bf109065-175f-4d2f-848d-8f5232dfce1a\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557789-0000-0000-0000-175577891300\",\"is_multi\":true,\"key\":\"attribute_661efcf8a00203e4\",\"type\":\"TEXT\"}},{\"id\":\"63f3f34c-5ec2-4d90-ba8e-63431a6a7010\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"c19925d5-97c0-4e0e-a49e-fef562db5519\",\"display_name\":\"AWS Region 17557801-0000-0000-0000-175578010300\",\"is_multi\":true,\"key\":\"region_ba6c2c263864f56d\",\"type\":\"NUMBER\"}},{\"id\":\"b69de08d-1bf5-40d5-9945-a2156baf85a4\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"c731cc10-0e89-436c-a9aa-4bd8a2e6ca31\",\"display_name\":\"AWS Region 17569762-0000-0000-0000-175697622500\",\"is_multi\":true,\"key\":\"region_397146208a8593df\",\"type\":\"NUMBER\"}},{\"id\":\"0dc4a14f-f96b-4a27-893a-72341da7ce1d\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"1fab87e4-341d-4a79-a294-171b4e2c22f8\",\"display_name\":\"AWS Region 17569771-0000-0000-0000-175697711500\",\"is_multi\":true,\"key\":\"region_eaa423ff52828a39\",\"type\":\"NUMBER\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 671, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-09-04T09:11:59.932Z", + "time": 464 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management-Type_547522336/Create-a-case-type-returns-Bad-Request-response_1282628130/frozen.json b/cassettes/v2/Case-Management-Type_547522336/Create-a-case-type-returns-Bad-Request-response_1282628130/frozen.json new file mode 100644 index 000000000000..e964ebad6274 --- /dev/null +++ b/cassettes/v2/Case-Management-Type_547522336/Create-a-case-type-returns-Bad-Request-response_1282628130/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:10:57.127Z" diff --git a/cassettes/v2/Case-Management-Type_547522336/Create-a-case-type-returns-Bad-Request-response_1282628130/recording.har b/cassettes/v2/Case-Management-Type_547522336/Create-a-case-type-returns-Bad-Request-response_1282628130/recording.har new file mode 100644 index 000000000000..48052230a70a --- /dev/null +++ b/cassettes/v2/Case-Management-Type_547522336/Create-a-case-type-returns-Bad-Request-response_1282628130/recording.har @@ -0,0 +1,67 @@ +{ + "log": { + "_recordingName": "Case Management Type/Create a case type returns \"Bad Request\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "5bab3f9566b1499da89cb11b6fdd5570", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 143, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 560, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"Investigations done in case management\",\"emoji\":\"notanemoji\",\"name\":\"Investigation\"},\"type\":\"case_type\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types" + }, + "response": { + "bodySize": 51, + "content": { + "mimeType": "application/vnd.api+json", + "size": 51, + "text": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 661, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 400, + "statusText": "Bad Request" + }, + "startedDateTime": "2025-09-04T09:10:57.135Z", + "time": 397 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management-Type_547522336/Create-a-case-type-returns-CREATED-response_620906248/frozen.json b/cassettes/v2/Case-Management-Type_547522336/Create-a-case-type-returns-CREATED-response_620906248/frozen.json new file mode 100644 index 000000000000..e2a80d8f2310 --- /dev/null +++ b/cassettes/v2/Case-Management-Type_547522336/Create-a-case-type-returns-CREATED-response_620906248/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:10:57.543Z" diff --git a/cassettes/v2/Case-Management-Type_547522336/Create-a-case-type-returns-CREATED-response_620906248/recording.har b/cassettes/v2/Case-Management-Type_547522336/Create-a-case-type-returns-CREATED-response_620906248/recording.har new file mode 100644 index 000000000000..5f0d64e95c94 --- /dev/null +++ b/cassettes/v2/Case-Management-Type_547522336/Create-a-case-type-returns-CREATED-response_620906248/recording.har @@ -0,0 +1,104 @@ +{ + "log": { + "_recordingName": "Case Management Type/Create a case type returns \"CREATED\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "28a9041b1142bed5dadfea904b8411ae", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 137, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 560, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"},\"type\":\"case_type\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types" + }, + "response": { + "bodySize": 181, + "content": { + "mimeType": "application/vnd.api+json", + "size": 181, + "text": "{\"data\":{\"id\":\"fd1c8062-ecc0-4b79-b466-3ab057b54018\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 662, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-09-04T09:10:57.547Z", + "time": 397 + }, + { + "_id": "d408fa900380096b8351ba53760df976", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 533, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/fd1c8062-ecc0-4b79-b466-3ab057b54018" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 601, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-09-04T09:10:57.950Z", + "time": 394 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management-Type_547522336/Delete-a-case-type-returns-NotContent-response_374999211/frozen.json b/cassettes/v2/Case-Management-Type_547522336/Delete-a-case-type-returns-NotContent-response_374999211/frozen.json new file mode 100644 index 000000000000..e1d3dfb9f48e --- /dev/null +++ b/cassettes/v2/Case-Management-Type_547522336/Delete-a-case-type-returns-NotContent-response_374999211/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:10:58.349Z" diff --git a/cassettes/v2/Case-Management-Type_547522336/Delete-a-case-type-returns-NotContent-response_374999211/recording.har b/cassettes/v2/Case-Management-Type_547522336/Delete-a-case-type-returns-NotContent-response_374999211/recording.har new file mode 100644 index 000000000000..63d683bcaa83 --- /dev/null +++ b/cassettes/v2/Case-Management-Type_547522336/Delete-a-case-type-returns-NotContent-response_374999211/recording.har @@ -0,0 +1,141 @@ +{ + "log": { + "_recordingName": "Case Management Type/Delete a case type returns \"NotContent\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "dc45fc730f09c12d941beaf799af6461", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 110, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 560, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"},\"type\":\"case_type\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types" + }, + "response": { + "bodySize": 154, + "content": { + "mimeType": "application/vnd.api+json", + "size": 154, + "text": "{\"data\":{\"id\":\"3e4616fc-83a9-4321-a026-a710a71d082b\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 662, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-09-04T09:10:58.351Z", + "time": 390 + }, + { + "_id": "86b616ec31aec8bdbbc3f11260524f24", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 533, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/3e4616fc-83a9-4321-a026-a710a71d082b" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 601, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-09-04T09:10:58.749Z", + "time": 396 + }, + { + "_id": "86b616ec31aec8bdbbc3f11260524f24", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 533, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/3e4616fc-83a9-4321-a026-a710a71d082b" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 601, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-09-04T09:10:59.152Z", + "time": 407 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management-Type_547522336/Delete-a-case-type-returns-OK-response_2594830727/frozen.json b/cassettes/v2/Case-Management-Type_547522336/Delete-a-case-type-returns-OK-response_2594830727/frozen.json new file mode 100644 index 000000000000..0f67654f3fd4 --- /dev/null +++ b/cassettes/v2/Case-Management-Type_547522336/Delete-a-case-type-returns-OK-response_2594830727/frozen.json @@ -0,0 +1 @@ +"2025-08-19T18:29:15.696Z" diff --git a/cassettes/v2/Case-Management-Type_547522336/Delete-a-case-type-returns-OK-response_2594830727/recording.har b/cassettes/v2/Case-Management-Type_547522336/Delete-a-case-type-returns-OK-response_2594830727/recording.har new file mode 100644 index 000000000000..535496010ad5 --- /dev/null +++ b/cassettes/v2/Case-Management-Type_547522336/Delete-a-case-type-returns-OK-response_2594830727/recording.har @@ -0,0 +1,141 @@ +{ + "log": { + "_recordingName": "Case Management Type/Delete a case type returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "dc45fc730f09c12d941beaf799af6461", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 110, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 560, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"},\"type\":\"case_type\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types" + }, + "response": { + "bodySize": 154, + "content": { + "mimeType": "application/vnd.api+json", + "size": 154, + "text": "{\"data\":{\"id\":\"08c89b77-5c9d-4f4f-8d0f-fe6d36351539\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-08-19T18:29:15.698Z", + "time": 431 + }, + { + "_id": "e1d14add9dc11a58dd348b8718d53f2f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 533, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/08c89b77-5c9d-4f4f-8d0f-fe6d36351539" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 602, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-19T18:29:16.133Z", + "time": 424 + }, + { + "_id": "e1d14add9dc11a58dd348b8718d53f2f", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 533, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/08c89b77-5c9d-4f4f-8d0f-fe6d36351539" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 602, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-19T18:29:16.562Z", + "time": 418 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management-Type_547522336/Get-all-case-types-returns-OK-response_593753823/frozen.json b/cassettes/v2/Case-Management-Type_547522336/Get-all-case-types-returns-OK-response_593753823/frozen.json new file mode 100644 index 000000000000..9572a2e6bef2 --- /dev/null +++ b/cassettes/v2/Case-Management-Type_547522336/Get-all-case-types-returns-OK-response_593753823/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:10:59.564Z" diff --git a/cassettes/v2/Case-Management-Type_547522336/Get-all-case-types-returns-OK-response_593753823/recording.har b/cassettes/v2/Case-Management-Type_547522336/Get-all-case-types-returns-OK-response_593753823/recording.har new file mode 100644 index 000000000000..da2c9f8f665c --- /dev/null +++ b/cassettes/v2/Case-Management-Type_547522336/Get-all-case-types-returns-OK-response_593753823/recording.har @@ -0,0 +1,57 @@ +{ + "log": { + "_recordingName": "Case Management Type/Get all case types returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "ef27994a81ec33072212e9c5048936b8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 507, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types" + }, + "response": { + "bodySize": 36223, + "content": { + "mimeType": "application/vnd.api+json", + "size": 36223, + "text": "{\"data\":[{\"id\":\"00000000-0000-0000-0000-000000000001\",\"type\":\"case_type\",\"attributes\":{\"description\":\"General tasks and investigations\",\"emoji\":\"\",\"name\":\"Standard\"}},{\"id\":\"00000000-0000-0000-0000-000000000002\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Triage and investigate correlated alerts and events\",\"emoji\":\"\",\"name\":\"Event Management\"}},{\"id\":\"00000000-0000-0000-0000-000000000003\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Used By Datadog Security products and for general security workflows\",\"emoji\":\"\",\"name\":\"Security\"}},{\"id\":\"00000000-0000-0000-0000-000000000004\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Request and track approvals\",\"emoji\":\"\",\"name\":\"Change Request\"}},{\"id\":\"00000000-0000-0000-0000-000000000005\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Triage and investigate errors\",\"emoji\":\"\",\"name\":\"Error Tracking\"}},{\"id\":\"38d28f4f-7ce8-4fbd-ae42-326edf758eb8\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"b2304cb7-a65c-4f71-bb17-0800b4badb16\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"95802802-1241-4825-835b-1c0322a7ef97\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"1855fd31-e717-4af4-85d0-698c652ea0b6\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"0cab85fe-12ee-423e-a86e-2363d0e6f5ac\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"5755912a-fb4b-4597-b118-1b0b40f7bb85\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T09:09:06.196109Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"7ab3b17d-a929-465f-80fa-ada92a865000\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"7c4b1f31-e48a-49c3-bd41-4646baa16649\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T09:13:20.969149Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"09c05ec2-311a-4c36-a813-f72a4a85ec45\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"ecea0a37-7f91-4e88-9b16-6f25cd4bdef3\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T09:15:45.46212Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"5458e2b8-7362-4b38-85b3-1ab1ea73e08f\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"9daa0418-d01c-498a-96d2-7cfe1b2158d5\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T09:17:15.497537Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"1e2c240d-168c-4b12-aa9b-92376f59f633\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T09:18:31.367268Z\",\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"af272a35-fa50-4619-b3df-1ee540b8586a\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T09:18:32.54125Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"e7717df7-6d36-4cf0-9e07-e58a5fac1cde\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T09:22:35.514966Z\",\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"c0da0f83-128b-434c-a535-b1414efab20b\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T09:22:36.72Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"a6029ab5-177f-437c-97cb-764b2dc80cb6\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T18:24:37.254566Z\",\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"933b2876-4617-4674-8ac1-64fa9fa56b87\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T18:24:38.561424Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"20303a04-10d7-4a67-8afb-cecfb6783004\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T18:29:15.253583Z\",\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"08c89b77-5c9d-4f4f-8d0f-fe6d36351539\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T18:29:16.570705Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"0aec1cee-fa44-468c-86ff-3afab2292f30\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T18:34:51.437054Z\",\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"dd0ca022-0166-4012-8179-dab74b6e4946\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T18:34:52.380136Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"581f9946-2777-4ca2-98f5-839a8583507b\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:12:42.070634Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"d9a99e7c-255c-4328-b29c-249bbbce55d5\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:12:43.427514Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"05978c06-ac0e-480b-a7d5-e1a8f8fe8005\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:12:45.680688Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"ce6e2d21-6719-46d8-8639-f8a196f42678\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:25:30.303213Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"3d9d8463-80fa-4434-a9e4-5dc4f3669c4e\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:25:31.642643Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"fa261a4c-91f2-4d06-972f-a35bee0543f3\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:25:33.792069Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"1de6d896-26ac-4349-9b00-6acfe4879fda\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:37:44.971336Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"f2578542-b2b9-4180-81cf-2eec21b94af1\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:37:46.300977Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"e3c1d47a-e3ae-43ab-8181-334c3bba197e\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:37:48.496084Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"3d603ba5-4391-425b-b12c-cb6dcecc44d6\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:43:19.932314Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"29174d43-f800-4e6f-8756-bf632cd6de41\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:43:22.335462Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"f997d450-7912-4801-a26b-dde8e5ee077e\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:44:00.498935Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"94df43bd-6d07-4187-9a0a-0b8fdee7d1cc\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:44:02.704517Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"b53a3523-4a91-4a29-8634-7d10457d7922\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:46:02.69294Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"2ce0cf3d-c48e-40a2-a3c1-bd5790617e48\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:46:04.026799Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"f86f0afb-4e9d-4cd3-b72a-c62befbee6f1\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:46:05.838903Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"3d86fef6-9e70-4167-b067-4136058dac19\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:49:07.463675Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"55be152c-d505-406f-b1b6-e3ea735cbf5b\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:49:08.784736Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"b108c666-e8e9-4c4e-b912-2c12b00f4f32\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:49:10.569418Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"a706b5ab-f74e-4a11-b3a2-02eb6879241d\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:49:50.869037Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"921b1edd-bbd8-4130-8fb6-417d0be654bd\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:49:52.205117Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"27f02f54-745d-4398-a1a5-ca77708df7e1\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:49:53.955522Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"1e002aff-0037-49f2-b266-4929032860be\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:52:04.296502Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"d9c649e3-92d5-4149-8f1b-e512c466a16d\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:52:05.632924Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"07eb5ad1-bac7-4eab-9341-8edb850f1b74\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:52:07.394803Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"f15cae28-3df0-4c46-ba06-2bd1570a7f68\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:57:00.706851Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"4a252863-46c5-474a-acef-dfd42982ed68\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:57:02.039005Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"9e32b021-edaf-408e-8659-c2b850a1abf3\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:57:03.353195Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"c229eb1e-e333-4f9b-937e-5aeb78d9069f\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:58:47.224259Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"0f4d4aed-e1d3-4fec-88db-f932656653dd\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:58:48.558757Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"c5065726-f32f-4554-a819-de0362e5a773\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T19:58:50.336027Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"e2018774-4cfa-4ad6-8bd0-366479b8de8e\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T20:03:19.632702Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"a46e33f1-d290-4aa8-a192-b4f58e063330\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T20:03:20.945982Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"e935a49b-d4cf-45f3-a63d-5fc857237fbe\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T20:03:22.683799Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"cb091c10-d4b9-4d93-be90-3b8c1166c4e4\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T20:05:50.137825Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"12b06e26-8f8f-45d0-be5d-0a3c1046ebb8\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T20:05:51.471366Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"ada38cc4-4191-484d-bfea-604c921839f5\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T20:05:53.224893Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"ce15011e-b4ea-41e6-8628-4131f2773ae4\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T20:07:00.572959Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"a8f6af82-7364-4fa2-be63-f9d82d49f126\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T20:07:01.933445Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"2f08290c-c478-4c47-9f00-36973b7b021a\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T20:07:03.713436Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"6bdcc12d-4f8f-4b9f-b33a-645b1c1fac78\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T20:16:47.195594Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"d3f2e924-efb4-4fea-858a-b0a104de58f1\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T20:16:48.531005Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"6e204166-35d3-4150-85c9-2b3f1d6a85c5\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-19T20:16:50.266373Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"3024568e-3252-40be-b2c5-ecc1898ad815\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T09:16:27.084779Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"2b8488a4-bdab-482c-8a9c-d2a571da65a9\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T09:17:37.421421Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"f0e8ea33-8b30-47de-b9fe-f77b651381a7\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T09:20:12.422783Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"127dd6ad-3a98-4fc6-9e51-edb38b509385\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T09:20:13.955239Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"e7773938-e80d-4bbc-874f-7c655daadee8\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T10:57:28.035038Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"c8e6f6e7-19e3-433e-bba9-73a013527105\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T10:57:35.415978Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"3feeec2b-a582-42a2-a4a2-b6ea50dc5876\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T10:57:36.981262Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"1c08bb63-9e9e-4a0d-bc5a-b90dabe3c95d\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T11:19:10.000286Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"fe1f962c-99bd-4de2-90c2-0d685a383ce1\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T11:19:17.329016Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"45efdca9-7cde-4363-888c-c6ffc37000fc\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T11:19:19.242715Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"6fc2e97b-4d59-48ee-8a00-039b07f147e4\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T11:22:49.696501Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"387f5315-b404-40f6-9005-cccac8ef06fa\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T11:22:57.691398Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"37ab3980-5401-4a6f-ae3d-f0f428310448\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T11:23:00.351616Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"9b42bc58-728f-4ea3-8ab9-d6194ef6e6a8\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T11:46:41.280003Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"d3f86d4c-876b-4ebd-9c71-050d5d60aacb\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T11:46:49.368221Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"644f21a0-a650-410c-a8ec-c7ceadeaa28d\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T11:46:51.227809Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"14b8f6a9-3bd9-4fad-b66e-68dac1bf547a\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T11:59:08.635193Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"6c66be3b-c6d1-45b0-b1c4-473c04f3dc39\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T11:59:16.615113Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"fbd65d3f-0fd5-4898-958d-f1e4ded98164\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T11:59:19.279382Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"581c81f2-968c-4f23-bc35-e5a4f76246e6\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T12:20:04.568041Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"2cf3b0ea-aced-42f8-af92-252b294fb478\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T12:20:12.864796Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"e2d429a0-5dc2-4e7d-aafc-07588da368b2\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T12:20:15.558827Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"7a657b5f-8683-451e-a006-57ea6976073f\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T12:57:00.687594Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"cfbe7974-89c8-4198-ab82-8a184607d214\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"6915e7c1-3e5e-40fb-b7c8-6bc23b427d20\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T12:57:03.107095Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"71f640f9-7639-4531-93a7-de3fb2ca12a0\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"96dd3710-e051-49f3-b26a-e8dd9a51f87f\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T12:57:05.538619Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"4d130488-a5f8-4f0a-a738-91dbf1fbf3a6\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:00:30.252878Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"d34c57fb-54a6-4f6c-a86e-3a73de621e2d\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"184c9894-a9a3-49cf-a6cc-489e6842a3dd\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:00:32.655453Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"032f775d-3a79-426c-bcb7-6b42d3be7ac7\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"fb17bf17-f0bb-4722-b4e5-32445e7f5527\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:00:35.022904Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"7f184906-a942-4917-a4e0-e8e2fa74b990\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:02:24.873029Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"70214597-0ebf-470d-a7c8-6c596d786ba2\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:02:26.060226Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"e7b57afc-4e28-4c57-9d17-42b1c48eebd9\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:02:27.638116Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"289574f3-de0e-47f0-81c7-06ae80937f31\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:02:29.214104Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"897c1c2e-5f52-46be-9abd-e7a01d3420f4\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:02:30.403304Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"eefd1896-506b-4035-9b60-110ac28e1814\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:07:20.994716Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"c351af96-9af2-4847-a0c8-11b201b1ae5f\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:07:29.127227Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"0c16ab5a-ac15-49a0-ad03-aef57d4d42e8\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:07:31.878967Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"5ee6243b-b005-4bd4-a5f2-fe8c4ff2ddfe\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:13:13.116651Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"7f70d4a0-d06d-49f5-928f-c2ca73aeb862\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:13:21.344841Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"1387ec4d-f40a-4b31-8d0f-bc161326e588\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:13:24.125802Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"02323717-20b8-4ecf-8c34-ef7dd1841f46\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:23:39.707537Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"8ba67013-03d9-47e6-b0fc-746ce6587cef\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:23:48.028828Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"7615e5a7-d95b-41b2-a082-47bf7ac815b9\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:23:50.74861Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"b9e753b2-d41d-40d6-8c1c-3e8522b9cfd5\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:26:49.560438Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"ba86214d-a2f3-4067-b507-77d75ad9db7d\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:26:58.639584Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"7a256076-d73a-4581-a955-c036ca560fd3\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:27:01.335547Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"ca5baeb1-1abf-4983-8761-922382085818\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:28:12.129245Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"a080a4f4-8f02-47b0-854f-b96d06d137e8\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:28:20.260597Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"220d930b-828d-4b57-a38f-f09ced11d439\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:28:23.005866Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"7eb35cdb-4622-4a60-beb1-d292387b0314\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:32:16.836893Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"bb399fc7-2ae4-4b9c-a645-b46f50b01347\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:32:24.852829Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"2402c3fb-d0a2-4460-bd62-da434e3dff7c\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:32:27.626252Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"14c085b7-3e9b-4dfd-9dc0-3adc9e2aaef8\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:59:31.577893Z\",\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"ebfc643b-bf3e-4dab-bff0-8c297d1773f3\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:59:32.398071Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"dc882f3b-36c2-4488-bb32-60367b473df2\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:59:53.449498Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"b300e2b4-5084-443b-b8f2-d1d3611be8d6\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:59:54.609448Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"adc74163-422f-4667-a3a6-9c361863333e\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:59:56.196341Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"25acc483-052f-412f-92a5-00ef2c22fbbb\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:59:57.745023Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"ffa14c93-06d0-4cc2-bcce-f41901be46df\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T13:59:58.908354Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"c8338d5b-1e0b-4d0e-a404-35ca2f47ff0d\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T14:00:40.051477Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"3879f548-5eec-4c3f-8d7b-b0b2671fd522\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T14:00:49.182953Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"6e04d185-29aa-4770-b14d-fd2741f049cc\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T14:00:52.010409Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"02f6995d-1ce3-4890-b797-e00b3761eafc\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T15:46:45.09765Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"895b0b2c-98de-482b-b315-195ca654cfd0\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T15:46:46.298225Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"1debd831-4fa0-40af-b9ca-58e1a718ecb3\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T15:46:47.832594Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"fe5f13b0-63d5-4a2a-8396-08a2a4e831ab\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T15:46:49.386532Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"34c76089-ee0c-4f48-bf98-6b9d4e792544\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T15:46:50.530716Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"a7168617-45a8-4fa1-9657-b6c18f4b4a1b\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T15:47:09.132674Z\",\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"b7459998-1c94-4840-a0ab-3d030f5d582b\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T15:47:09.896859Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"9adc531f-1c5f-4140-b833-32f35e8dbee2\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T15:50:13.125537Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"f66b10ec-73f2-420c-8c2e-b2264cb5577a\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T15:50:14.31455Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"da768aba-f8c0-473c-bd1c-e4ea9d9f682b\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T15:50:15.939157Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"4937b115-31fa-4b14-b03b-774a978cbe86\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T15:50:17.533068Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"887f07b4-8b57-4949-880d-12fb460c9b37\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-20T15:50:18.74212Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"559cfd8c-3fb3-4a1c-b0f1-bb36cde9634a\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:14:45.824907Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"a9a925b3-6198-4ad1-8fb7-1d6e2691ed4f\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:14:46.984977Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"e5e19e07-79a9-42d1-b8b7-72d4290648eb\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:14:48.524998Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"1ceaf193-152c-481f-8eb0-08e9470f6d8b\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:14:50.414457Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"6cef1f4c-7201-4e60-b7a1-7843a82835d2\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:14:51.834989Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"6d142c7f-6ab3-4d54-8cdf-f600ddb40ea2\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:15:15.232477Z\",\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"d6cc97e5-830f-467f-9d7e-d44fe9376cb2\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:15:16.048802Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"b93415ca-0644-47d6-9547-f1af159ebe69\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:15:52.950749Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"e9e97b17-30cf-4068-8c5a-657b509b56bf\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:16:01.620133Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"56855740-86fc-42c5-9ed3-82bed933cfa3\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:16:04.310919Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"21779b8e-c1e1-4886-94e9-1b5b18d21366\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:27:38.520987Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"dd9805ac-43e8-447d-a521-25bbddf47f8a\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:27:47.342964Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"1295370d-69c2-43d1-899f-71e9d67e5474\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:27:50.106242Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"b7b7e66e-e6a4-451f-95a1-ad427e83da19\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:44:03.293497Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"615f2510-83f5-46ba-b244-012ced51027a\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:44:11.483169Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"6010ef55-cf69-4e91-959d-a6f14a6384ee\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:44:14.154381Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"e4641157-ebc4-4e6d-b785-84fc8f0347f3\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:49:04.540305Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"602b0512-58e4-4fa5-a004-dccd954b7ab8\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:49:12.994315Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"0295702b-41e6-4a9e-8681-a237d11b5843\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T11:49:15.713764Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"bfa696f1-341e-4216-ba15-81ac431d6419\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T12:02:32.063175Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"54997fa0-0c3f-43cb-9e84-39f5f5ce3f09\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T12:02:40.160052Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"1e036814-3134-4bc5-8e97-1f14ba77fac3\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T12:02:42.899008Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"3dd78296-b989-466d-97ef-428517d851ee\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T12:21:44.554387Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"b36e8af6-a952-43bb-b54b-d7b80fc1344e\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T12:21:52.745427Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"bf109065-175f-4d2f-848d-8f5232dfce1a\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T12:21:55.422802Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"869f4c88-f545-4aa1-a03f-152bb52186bf\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T12:41:43.69428Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"c19925d5-97c0-4e0e-a49e-fef562db5519\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T12:41:44.899197Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"1f787bd5-127a-4005-85df-6d24eb8955c1\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T12:41:46.505589Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"fdf93265-be3d-4a97-ae0d-540b049f7753\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T12:41:48.1106Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"f69a1398-c8b2-47bf-a624-4374634b4cf6\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T12:41:49.337557Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"5ec976bf-2f12-43c4-be20-542518b5906e\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T12:42:17.873694Z\",\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"c0bff0de-fe8f-4edd-83c5-b07e1480ca5f\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-08-21T12:42:18.644537Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"cd55412c-1231-4a0f-bc15-ea9b18d3a725\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-09-04T08:57:05.266866Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"c731cc10-0e89-436c-a9aa-4bd8a2e6ca31\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-09-04T08:57:06.551977Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"80c93fe7-a888-4e9d-abb1-abd31f5df031\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-09-04T08:57:08.15913Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"38619645-ccb4-4787-9755-6d3881fa5c3e\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-09-04T08:57:09.311993Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"f1e661ad-1076-4f84-8165-254304c10a2a\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-09-04T08:57:28.016602Z\",\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"a2cbb86a-010d-4dae-8d90-f97207c3ce63\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-09-04T08:57:28.845895Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"00000000-0000-0000-0000-000000000007\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Triage and investigate logs optimization insights\",\"emoji\":\"\",\"name\":\"Logs Optimization Insights\"}},{\"id\":\"658965cb-30af-417a-b83d-4ea61d7ad995\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-09-04T09:04:13.717815Z\",\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"baa64ec8-924d-4d8e-bc41-819fe61d6e22\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-09-04T09:04:14.541556Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"b13fcd85-8d58-4539-9100-2b7d811a1fb4\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-09-04T09:05:19.972962Z\",\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"3e9ee917-5e9d-405b-a9e7-433092714e91\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-09-04T09:05:20.810533Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}},{\"id\":\"fd1c8062-ecc0-4b79-b466-3ab057b54018\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-09-04T09:10:58.297595Z\",\"description\":\"Investigations done in case management\",\"emoji\":\"\ud83d\udc51\",\"name\":\"Investigation\"}},{\"id\":\"3e4616fc-83a9-4321-a026-a710a71d082b\",\"type\":\"case_type\",\"attributes\":{\"deleted_at\":\"2025-09-04T09:10:59.098774Z\",\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 670, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-09-04T09:10:59.565Z", + "time": 495 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Archive-case-returns-Bad-Request-response_3307115673/frozen.json b/cassettes/v2/Case-Management_2486725080/Archive-case-returns-Bad-Request-response_3307115673/frozen.json index 2430585c88f6..4f4967a56cfa 100644 --- a/cassettes/v2/Case-Management_2486725080/Archive-case-returns-Bad-Request-response_3307115673/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Archive-case-returns-Bad-Request-response_3307115673/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:40.919Z" +"2025-09-04T09:11:13.081Z" diff --git a/cassettes/v2/Case-Management_2486725080/Archive-case-returns-Bad-Request-response_3307115673/recording.har b/cassettes/v2/Case-Management_2486725080/Archive-case-returns-Bad-Request-response_3307115673/recording.har index 5b7370fafe06..519cccaa29c8 100644 --- a/cassettes/v2/Case-Management_2486725080/Archive-case-returns-Bad-Request-response_3307115673/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Archive-case-returns-Bad-Request-response_3307115673/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "0a6534d042f2507564f87ab28f449a8d", + "_id": "79babc387a705347c8a673b0e70145e9", "_order": 0, "cache": {}, "request": { - "bodySize": 195, + "bodySize": 226, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/cases" }, "response": { - "bodySize": 838, + "bodySize": 839, "content": { "mimeType": "application/vnd.api+json", - "size": 838, - "text": "{\"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\"}}]}" + "size": 839, + "text": "{\"data\":{\"id\":\"fca84d5c-af51-4531-a33b-a1eda1ed3a7a\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:13.435621Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"fca84d5c-af51-4531-a33b-a1eda1ed3a7a\",\"key\":\"DDFC-79572\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79659\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -57,11 +57,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T13:52:40.926Z", - "time": 397 + "startedDateTime": "2025-09-04T09:11:13.086Z", + "time": 420 }, { - "_id": "75643134d0d3233903bf06a1fd35338d", + "_id": "7385c8eafddb221bd0e369a69c562dca", "_order": 0, "cache": {}, "request": { @@ -88,7 +88,7 @@ "text": "{\"data\":{\"type\":\"project\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/cases/6706fe66-cabd-4b22-b4c5-dd478bba421a/archive" + "url": "https://api.datadoghq.com/api/v2/cases/fca84d5c-af51-4531-a33b-a1eda1ed3a7a/archive" }, "response": { "bodySize": 108, @@ -110,8 +110,8 @@ "status": 400, "statusText": "Bad Request" }, - "startedDateTime": "2025-07-21T13:52:41.332Z", - "time": 372 + "startedDateTime": "2025-09-04T09:11:13.513Z", + "time": 390 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Archive-case-returns-Not-Found-response_3250820290/frozen.json b/cassettes/v2/Case-Management_2486725080/Archive-case-returns-Not-Found-response_3250820290/frozen.json index 463177057157..f4ad6d722f1e 100644 --- a/cassettes/v2/Case-Management_2486725080/Archive-case-returns-Not-Found-response_3250820290/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Archive-case-returns-Not-Found-response_3250820290/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:41.730Z" +"2025-09-04T09:11:13.910Z" diff --git a/cassettes/v2/Case-Management_2486725080/Archive-case-returns-Not-Found-response_3250820290/recording.har b/cassettes/v2/Case-Management_2486725080/Archive-case-returns-Not-Found-response_3250820290/recording.har index 588478b62ca7..70f1ce801e7e 100644 --- a/cassettes/v2/Case-Management_2486725080/Archive-case-returns-Not-Found-response_3250820290/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Archive-case-returns-Not-Found-response_3250820290/recording.har @@ -57,8 +57,8 @@ "status": 404, "statusText": "Not Found" }, - "startedDateTime": "2025-07-21T13:52:41.735Z", - "time": 392 + "startedDateTime": "2025-09-04T09:11:13.912Z", + "time": 403 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Archive-case-returns-OK-response_1644289173/frozen.json b/cassettes/v2/Case-Management_2486725080/Archive-case-returns-OK-response_1644289173/frozen.json index 6f1fa9a84828..194d47c9f866 100644 --- a/cassettes/v2/Case-Management_2486725080/Archive-case-returns-OK-response_1644289173/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Archive-case-returns-OK-response_1644289173/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:42.155Z" +"2025-09-04T09:11:14.320Z" diff --git a/cassettes/v2/Case-Management_2486725080/Archive-case-returns-OK-response_1644289173/recording.har b/cassettes/v2/Case-Management_2486725080/Archive-case-returns-OK-response_1644289173/recording.har index edf74e49698e..a50a57e4bc85 100644 --- a/cassettes/v2/Case-Management_2486725080/Archive-case-returns-OK-response_1644289173/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Archive-case-returns-OK-response_1644289173/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "0a6534d042f2507564f87ab28f449a8d", + "_id": "79babc387a705347c8a673b0e70145e9", "_order": 0, "cache": {}, "request": { - "bodySize": 195, + "bodySize": 226, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/cases" }, "response": { - "bodySize": 838, + "bodySize": 839, "content": { "mimeType": "application/vnd.api+json", - "size": 838, - "text": "{\"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\"}}]}" + "size": 839, + "text": "{\"data\":{\"id\":\"7b15678b-3c1a-4a3c-9225-d79744eea1e6\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:14.670432Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"7b15678b-3c1a-4a3c-9225-d79744eea1e6\",\"key\":\"DDFC-79573\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79660\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -57,11 +57,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T13:52:42.177Z", - "time": 412 + "startedDateTime": "2025-09-04T09:11:14.322Z", + "time": 408 }, { - "_id": "f102e9889a3b0592a1d5f6e9c4d2deb8", + "_id": "5310131497c13fe7cd06a1cd3c893cda", "_order": 0, "cache": {}, "request": { @@ -88,14 +88,14 @@ "text": "{\"data\":{\"type\":\"case\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/cases/b074b409-24f8-42ae-b545-b1486429630d/archive" + "url": "https://api.datadoghq.com/api/v2/cases/7b15678b-3c1a-4a3c-9225-d79744eea1e6/archive" }, "response": { "bodySize": 1012, "content": { "mimeType": "application/vnd.api+json", "size": 1012, - "text": "{\"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\"}}]}" + "text": "{\"data\":{\"id\":\"7b15678b-3c1a-4a3c-9225-d79744eea1e6\",\"type\":\"case\",\"attributes\":{\"archived_at\":\"2025-09-04T09:11:15.086830231Z\",\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:14.670432Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"7b15678b-3c1a-4a3c-9225-d79744eea1e6\",\"key\":\"DDFC-79573\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2025-09-04T09:11:15.08683Z\",\"priority\":\"P4\",\"public_id\":\"79660\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -110,8 +110,8 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-07-21T13:52:42.597Z", - "time": 412 + "startedDateTime": "2025-09-04T09:11:14.738Z", + "time": 416 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Assign-case-returns-Bad-Request-response_1562814608/frozen.json b/cassettes/v2/Case-Management_2486725080/Assign-case-returns-Bad-Request-response_1562814608/frozen.json index 81e746e2c780..f28a09492eba 100644 --- a/cassettes/v2/Case-Management_2486725080/Assign-case-returns-Bad-Request-response_1562814608/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Assign-case-returns-Bad-Request-response_1562814608/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:43.015Z" +"2025-09-04T09:11:15.167Z" diff --git a/cassettes/v2/Case-Management_2486725080/Assign-case-returns-Bad-Request-response_1562814608/recording.har b/cassettes/v2/Case-Management_2486725080/Assign-case-returns-Bad-Request-response_1562814608/recording.har index 879c3f1e497d..bcc30cdc468f 100644 --- a/cassettes/v2/Case-Management_2486725080/Assign-case-returns-Bad-Request-response_1562814608/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Assign-case-returns-Bad-Request-response_1562814608/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "0a6534d042f2507564f87ab28f449a8d", + "_id": "79babc387a705347c8a673b0e70145e9", "_order": 0, "cache": {}, "request": { - "bodySize": 195, + "bodySize": 226, "cookies": [], "headers": [ { @@ -32,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/cases" @@ -42,7 +42,7 @@ "content": { "mimeType": "application/vnd.api+json", "size": 839, - "text": "{\"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\"}}]}" + "text": "{\"data\":{\"id\":\"02e38234-b846-4f84-80db-d2ac455786bc\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:15.505673Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"02e38234-b846-4f84-80db-d2ac455786bc\",\"key\":\"DDFC-79574\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79661\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -57,11 +57,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T13:52:43.017Z", - "time": 384 + "startedDateTime": "2025-09-04T09:11:15.169Z", + "time": 395 }, { - "_id": "389b3a16ce3121bf75a0da30a1d8d867", + "_id": "6f5ebb4ff355deb7a0af0efd18908a9e", "_order": 0, "cache": {}, "request": { @@ -88,7 +88,7 @@ "text": "{\"data\":{\"attributes\":{\"assignee_id\":\"invalid-uuid\"},\"type\":\"case\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/cases/510b0121-1477-43c0-8986-78f011016d48/assign" + "url": "https://api.datadoghq.com/api/v2/cases/02e38234-b846-4f84-80db-d2ac455786bc/assign" }, "response": { "bodySize": 51, @@ -110,8 +110,8 @@ "status": 400, "statusText": "Bad Request" }, - "startedDateTime": "2025-07-21T13:52:43.407Z", - "time": 399 + "startedDateTime": "2025-09-04T09:11:15.573Z", + "time": 388 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Assign-case-returns-Not-Found-response_3693775655/frozen.json b/cassettes/v2/Case-Management_2486725080/Assign-case-returns-Not-Found-response_3693775655/frozen.json index 9113f8468596..d27357d4bff0 100644 --- a/cassettes/v2/Case-Management_2486725080/Assign-case-returns-Not-Found-response_3693775655/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Assign-case-returns-Not-Found-response_3693775655/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:43.820Z" +"2025-09-04T09:11:15.970Z" diff --git a/cassettes/v2/Case-Management_2486725080/Assign-case-returns-Not-Found-response_3693775655/recording.har b/cassettes/v2/Case-Management_2486725080/Assign-case-returns-Not-Found-response_3693775655/recording.har index dea343054521..50af53484dac 100644 --- a/cassettes/v2/Case-Management_2486725080/Assign-case-returns-Not-Found-response_3693775655/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Assign-case-returns-Not-Found-response_3693775655/recording.har @@ -8,7 +8,7 @@ }, "entries": [ { - "_id": "3a6509b8912e674e1435d921d51c7b19", + "_id": "37a00101c4274a1f008cccd844a81f19", "_order": 0, "cache": {}, "request": { @@ -32,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Assign_case_returns_Not_Found_response-1753105963@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" + "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Assign_case_returns_Not_Found_response-1756977075@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/users" @@ -42,7 +42,7 @@ "content": { "mimeType": "application/json", "size": 681, - "text": "{\"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" + "text": "{\"data\":{\"type\":\"users\",\"id\":\"1ca94dc0-896f-11f0-985d-62f106ac4786\",\"attributes\":{\"name\":null,\"handle\":\"test-assign_case_returns_not_found_response-1756977075@datadoghq.com\",\"created_at\":\"2025-09-04T09:11:16.371835+00:00\",\"modified_at\":\"2025-09-04T09:11:16.371835+00:00\",\"email\":\"test-assign_case_returns_not_found_response-1756977075@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/7f6fbbdaaec3f024a847e57cc7871a5b?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" }, "cookies": [], "headers": [ @@ -57,11 +57,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T13:52:43.831Z", - "time": 471 + "startedDateTime": "2025-09-04T09:11:15.972Z", + "time": 482 }, { - "_id": "2fc59d7830abc6f23dfdfc7e3227a10f", + "_id": "5f3a1b46944b9f0651aac44bb1f701b9", "_order": 0, "cache": {}, "request": { @@ -85,7 +85,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"assignee_id\":\"fa033cd0-6639-11f0-b658-96290b93dbfc\"},\"type\":\"case\"}}" + "text": "{\"data\":{\"attributes\":{\"assignee_id\":\"1ca94dc0-896f-11f0-985d-62f106ac4786\"},\"type\":\"case\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/cases/67d80aa3-36ff-44b9-a694-c501a7591737/assign" @@ -110,11 +110,11 @@ "status": 404, "statusText": "Not Found" }, - "startedDateTime": "2025-07-21T13:52:44.313Z", - "time": 392 + "startedDateTime": "2025-09-04T09:11:16.462Z", + "time": 387 }, { - "_id": "13e04c013bdd39314e4a143c5dc2c240", + "_id": "832e7b261fb328cd25a4a19cb59347b5", "_order": 0, "cache": {}, "request": { @@ -131,7 +131,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/users/fa033cd0-6639-11f0-b658-96290b93dbfc" + "url": "https://api.datadoghq.com/api/v2/users/1ca94dc0-896f-11f0-985d-62f106ac4786" }, "response": { "bodySize": 0, @@ -147,8 +147,8 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-07-21T13:52:44.713Z", - "time": 581 + "startedDateTime": "2025-09-04T09:11:16.852Z", + "time": 543 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Assign-case-returns-OK-response_198940254/frozen.json b/cassettes/v2/Case-Management_2486725080/Assign-case-returns-OK-response_198940254/frozen.json index be46aaf666a0..ff3bf6fcc509 100644 --- a/cassettes/v2/Case-Management_2486725080/Assign-case-returns-OK-response_198940254/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Assign-case-returns-OK-response_198940254/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:45.309Z" +"2025-09-04T09:11:17.399Z" diff --git a/cassettes/v2/Case-Management_2486725080/Assign-case-returns-OK-response_198940254/recording.har b/cassettes/v2/Case-Management_2486725080/Assign-case-returns-OK-response_198940254/recording.har index a0838b9e4dfe..e09447083d62 100644 --- a/cassettes/v2/Case-Management_2486725080/Assign-case-returns-OK-response_198940254/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Assign-case-returns-OK-response_198940254/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "0a6534d042f2507564f87ab28f449a8d", + "_id": "79babc387a705347c8a673b0e70145e9", "_order": 0, "cache": {}, "request": { - "bodySize": 195, + "bodySize": 226, "cookies": [], "headers": [ { @@ -32,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/cases" @@ -42,7 +42,7 @@ "content": { "mimeType": "application/vnd.api+json", "size": 839, - "text": "{\"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\"}}]}" + "text": "{\"data\":{\"id\":\"83cd4a4b-daa1-411e-b243-f0e3e16633c9\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:17.746905Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"83cd4a4b-daa1-411e-b243-f0e3e16633c9\",\"key\":\"DDFC-79575\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79662\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -57,11 +57,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T13:52:45.314Z", - "time": 405 + "startedDateTime": "2025-09-04T09:11:17.401Z", + "time": 411 }, { - "_id": "1c46448e7d25abe927a6cc18e2daee88", + "_id": "4e77bd79dfbacf4bb0da2e8933cdb06e", "_order": 0, "cache": {}, "request": { @@ -85,7 +85,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Assign_case_returns_OK_response-1753105965@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" + "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Assign_case_returns_OK_response-1756977077@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/users" @@ -95,7 +95,7 @@ "content": { "mimeType": "application/json", "size": 667, - "text": "{\"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" + "text": "{\"data\":{\"type\":\"users\",\"id\":\"1dc0a795-896f-11f0-bd9e-16e3d3627ffa\",\"attributes\":{\"name\":null,\"handle\":\"test-assign_case_returns_ok_response-1756977077@datadoghq.com\",\"created_at\":\"2025-09-04T09:11:18.202591+00:00\",\"modified_at\":\"2025-09-04T09:11:18.202591+00:00\",\"email\":\"test-assign_case_returns_ok_response-1756977077@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/4862ba84e6f6da12eab168d6bce97855?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" }, "cookies": [], "headers": [ @@ -110,11 +110,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T13:52:45.725Z", - "time": 451 + "startedDateTime": "2025-09-04T09:11:17.820Z", + "time": 459 }, { - "_id": "4ccb70fc741d3b01ad3fa75043756876", + "_id": "84af4f317c9e0ecc85368ef1c2c0d40a", "_order": 0, "cache": {}, "request": { @@ -138,17 +138,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"assignee_id\":\"fb218c6d-6639-11f0-a2d3-1a819e56f795\"},\"type\":\"case\"}}" + "text": "{\"data\":{\"attributes\":{\"assignee_id\":\"1dc0a795-896f-11f0-bd9e-16e3d3627ffa\"},\"type\":\"case\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/cases/fd1228dc-d475-4a0b-8677-7a9ce3b50b3d/assign" + "url": "https://api.datadoghq.com/api/v2/cases/83cd4a4b-daa1-411e-b243-f0e3e16633c9/assign" }, "response": { - "bodySize": 1290, + "bodySize": 1289, "content": { "mimeType": "application/vnd.api+json", - "size": 1290, - "text": "{\"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\":\"\"}}]}" + "size": 1289, + "text": "{\"data\":{\"id\":\"83cd4a4b-daa1-411e-b243-f0e3e16633c9\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:17.746905Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"83cd4a4b-daa1-411e-b243-f0e3e16633c9\",\"key\":\"DDFC-79575\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2025-09-04T09:11:18.6384Z\",\"priority\":\"P4\",\"public_id\":\"79662\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"1dc0a795-896f-11f0-bd9e-16e3d3627ffa\",\"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\":\"1dc0a795-896f-11f0-bd9e-16e3d3627ffa\",\"type\":\"user\",\"attributes\":{\"active\":false,\"email\":\"test-assign_case_returns_ok_response-1756977077@datadoghq.com\",\"handle\":\"test-assign_case_returns_ok_response-1756977077@datadoghq.com\",\"name\":\"\"}}]}" }, "cookies": [], "headers": [ @@ -163,11 +163,11 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-07-21T13:52:46.181Z", - "time": 422 + "startedDateTime": "2025-09-04T09:11:18.283Z", + "time": 435 }, { - "_id": "e845491baa68cb5940d86d0133e35e2a", + "_id": "481f8213d3f82d4d871effbcd569e955", "_order": 0, "cache": {}, "request": { @@ -184,7 +184,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/users/fb218c6d-6639-11f0-a2d3-1a819e56f795" + "url": "https://api.datadoghq.com/api/v2/users/1dc0a795-896f-11f0-bd9e-16e3d3627ffa" }, "response": { "bodySize": 0, @@ -200,8 +200,8 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-07-21T13:52:46.614Z", - "time": 536 + "startedDateTime": "2025-09-04T09:11:18.723Z", + "time": 548 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Comment-case-returns-Bad-Request-response_77675610/frozen.json b/cassettes/v2/Case-Management_2486725080/Comment-case-returns-Bad-Request-response_77675610/frozen.json new file mode 100644 index 000000000000..105151e3fd06 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Comment-case-returns-Bad-Request-response_77675610/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:19.280Z" diff --git a/cassettes/v2/Case-Management_2486725080/Comment-case-returns-Bad-Request-response_77675610/recording.har b/cassettes/v2/Case-Management_2486725080/Comment-case-returns-Bad-Request-response_77675610/recording.har new file mode 100644 index 000000000000..327fa05bbdcc --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Comment-case-returns-Bad-Request-response_77675610/recording.har @@ -0,0 +1,120 @@ +{ + "log": { + "_recordingName": "Case Management/Comment case returns \"Bad Request\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "79babc387a705347c8a673b0e70145e9", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 226, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 550, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases" + }, + "response": { + "bodySize": 839, + "content": { + "mimeType": "application/vnd.api+json", + "size": 839, + "text": "{\"data\":{\"id\":\"4f9ed7de-cce9-4d37-aa43-7590b0a4c19c\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:19.630411Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"4f9ed7de-cce9-4d37-aa43-7590b0a4c19c\",\"key\":\"DDFC-79576\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79663\",\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-09-04T09:11:19.281Z", + "time": 411 + }, + { + "_id": "31f46694069626c6cbaea9b3f389aa7d", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 52, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 595, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"comment\":\"\"},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/4f9ed7de-cce9-4d37-aa43-7590b0a4c19c/comment" + }, + "response": { + "bodySize": 51, + "content": { + "mimeType": "application/vnd.api+json", + "size": 51, + "text": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 400, + "statusText": "Bad Request" + }, + "startedDateTime": "2025-09-04T09:11:19.703Z", + "time": 387 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Comment-case-returns-Not-Found-response_740758345/frozen.json b/cassettes/v2/Case-Management_2486725080/Comment-case-returns-Not-Found-response_740758345/frozen.json new file mode 100644 index 000000000000..0f474094523c --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Comment-case-returns-Not-Found-response_740758345/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:20.098Z" diff --git a/cassettes/v2/Case-Management_2486725080/Comment-case-returns-Not-Found-response_740758345/recording.har b/cassettes/v2/Case-Management_2486725080/Comment-case-returns-Not-Found-response_740758345/recording.har new file mode 100644 index 000000000000..5a7e09413bb1 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Comment-case-returns-Not-Found-response_740758345/recording.har @@ -0,0 +1,67 @@ +{ + "log": { + "_recordingName": "Case Management/Comment case returns \"Not Found\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "880d2358dcbdddea2416553756adc9c8", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 65, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 595, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"comment\":\"Hello world !\"},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/67d80aa3-36ff-44b9-a694-c501a7591737/comment" + }, + "response": { + "bodySize": 67, + "content": { + "mimeType": "application/vnd.api+json", + "size": 67, + "text": "{\"errors\":[{\"code\":\"resource_not_found\",\"title\":\"case not found\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 404, + "statusText": "Not Found" + }, + "startedDateTime": "2025-09-04T09:11:20.100Z", + "time": 405 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Comment-case-returns-OK-response_3372004392/frozen.json b/cassettes/v2/Case-Management_2486725080/Comment-case-returns-OK-response_3372004392/frozen.json new file mode 100644 index 000000000000..3d3ea60cf02d --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Comment-case-returns-OK-response_3372004392/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:20.512Z" diff --git a/cassettes/v2/Case-Management_2486725080/Comment-case-returns-OK-response_3372004392/recording.har b/cassettes/v2/Case-Management_2486725080/Comment-case-returns-OK-response_3372004392/recording.har new file mode 100644 index 000000000000..e6b8f9629c8a --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Comment-case-returns-OK-response_3372004392/recording.har @@ -0,0 +1,120 @@ +{ + "log": { + "_recordingName": "Case Management/Comment case returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "79babc387a705347c8a673b0e70145e9", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 226, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 550, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases" + }, + "response": { + "bodySize": 838, + "content": { + "mimeType": "application/vnd.api+json", + "size": 838, + "text": "{\"data\":{\"id\":\"11e8d302-1fcd-42f4-a2b3-068369d9b57b\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:20.84912Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"11e8d302-1fcd-42f4-a2b3-068369d9b57b\",\"key\":\"DDFC-79577\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79664\",\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-09-04T09:11:20.514Z", + "time": 397 + }, + { + "_id": "c610f86be26c6131e4d94af0db55fdcd", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 65, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 595, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"comment\":\"Hello World !\"},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/11e8d302-1fcd-42f4-a2b3-068369d9b57b/comment" + }, + "response": { + "bodySize": 412, + "content": { + "mimeType": "application/vnd.api+json", + "size": 412, + "text": "{\"data\":[{\"id\":\"5d1fb1c1-9ee1-4110-8771-e6a01f4737ab\",\"type\":\"timeline_cell\",\"attributes\":{\"author\":{\"type\":\"USER\",\"content\":{\"ID\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"name\":\"frog\",\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"active\":true}},\"cell_content\":{\"message\":\"Hello World !\"},\"content\":\"{\\\"message\\\":\\\"Hello World !\\\"}\",\"created_at\":\"2025-09-04T09:11:21.264914024Z\",\"type\":\"COMMENT\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 664, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-09-04T09:11:20.920Z", + "time": 414 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-Bad-Request-response_1348998798/frozen.json b/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-Bad-Request-response_1348998798/frozen.json index 4641c9ca96f3..6e7c0220e187 100644 --- a/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-Bad-Request-response_1348998798/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-Bad-Request-response_1348998798/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:47.155Z" +"2025-09-04T09:11:21.344Z" diff --git a/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-Bad-Request-response_1348998798/recording.har b/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-Bad-Request-response_1348998798/recording.har index 6a296b4517d4..96e98b618207 100644 --- a/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-Bad-Request-response_1348998798/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-Bad-Request-response_1348998798/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "c53a0d9163086fd6b142d95814505a59", + "_id": "b714f7be4f02fd0bca99211aecb702f1", "_order": 0, "cache": {}, "request": { - "bodySize": 303, + "bodySize": 334, "cookies": [], "headers": [ { @@ -32,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"priority\":\"NOT_DEFINED\",\"title\":\"Security breach investigation\",\"type\":\"STANDARD\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"userx\"}},\"project\":{\"data\":{\"id\":\"e555e290-ed65-49bd-ae18-8acbfcf18db7\",\"type\":\"project\"}}},\"type\":\"case\"}}" + "text": "{\"data\":{\"attributes\":{\"priority\":\"NOT_DEFINED\",\"title\":\"Security breach investigation\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"userx\"}},\"project\":{\"data\":{\"id\":\"e555e290-ed65-49bd-ae18-8acbfcf18db7\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/cases" @@ -57,8 +57,8 @@ "status": 400, "statusText": "Bad Request" }, - "startedDateTime": "2025-07-21T13:52:47.158Z", - "time": 363 + "startedDateTime": "2025-09-04T09:11:21.346Z", + "time": 365 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-CREATED-response_3810133052/frozen.json b/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-CREATED-response_3810133052/frozen.json index 13675cce053d..f648bf596d04 100644 --- a/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-CREATED-response_3810133052/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-CREATED-response_3810133052/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:47.527Z" +"2025-09-04T09:11:21.717Z" diff --git a/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-CREATED-response_3810133052/recording.har b/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-CREATED-response_3810133052/recording.har index 52eb74c60377..8a9842a709df 100644 --- a/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-CREATED-response_3810133052/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-CREATED-response_3810133052/recording.har @@ -8,7 +8,7 @@ }, "entries": [ { - "_id": "c041f86fbb92fed5164f2b8e519f13ab", + "_id": "3591c24ef76c50c8c96b7a49e8364565", "_order": 0, "cache": {}, "request": { @@ -32,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Create_a_case_returns_CREATED_response-1753105967@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" + "text": "{\"data\":{\"attributes\":{\"email\":\"Test-Create_a_case_returns_CREATED_response-1756977081@datadoghq.com\",\"title\":\"user title\"},\"type\":\"users\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/users" @@ -42,7 +42,7 @@ "content": { "mimeType": "application/json", "size": 681, - "text": "{\"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" + "text": "{\"data\":{\"type\":\"users\",\"id\":\"20134afc-896f-11f0-a107-e2d7850d515a\",\"attributes\":{\"name\":null,\"handle\":\"test-create_a_case_returns_created_response-1756977081@datadoghq.com\",\"created_at\":\"2025-09-04T09:11:22.099612+00:00\",\"modified_at\":\"2025-09-04T09:11:22.099612+00:00\",\"email\":\"test-create_a_case_returns_created_response-1756977081@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/35ad815464ecd132d1705473121496ce?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" }, "cookies": [], "headers": [ @@ -57,15 +57,15 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T13:52:47.529Z", - "time": 454 + "startedDateTime": "2025-09-04T09:11:21.719Z", + "time": 469 }, { - "_id": "cd1eb429036658517b6b147e02d981e7", + "_id": "0cc37d31642627037eb34db7451db052", "_order": 0, "cache": {}, "request": { - "bodySize": 322, + "bodySize": 353, "cookies": [], "headers": [ { @@ -85,7 +85,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"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\"}}" + "text": "{\"data\":{\"attributes\":{\"priority\":\"NOT_DEFINED\",\"title\":\"Security breach investigation in d3f911bd7889076d\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"20134afc-896f-11f0-a107-e2d7850d515a\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/cases" @@ -95,7 +95,7 @@ "content": { "mimeType": "application/vnd.api+json", "size": 1225, - "text": "{\"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\":\"\"}}]}" + "text": "{\"data\":{\"id\":\"d65bf4a7-e9e6-481a-ba1c-3e3d44cefeac\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:22.529731Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"d65bf4a7-e9e6-481a-ba1c-3e3d44cefeac\",\"key\":\"DDFC-79578\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"NOT_DEFINED\",\"public_id\":\"79665\",\"status\":\"OPEN\",\"title\":\"Security breach investigation in d3f911bd7889076d\",\"type\":\"STANDARD\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"20134afc-896f-11f0-a107-e2d7850d515a\",\"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\":\"20134afc-896f-11f0-a107-e2d7850d515a\",\"type\":\"user\",\"attributes\":{\"active\":false,\"email\":\"test-create_a_case_returns_created_response-1756977081@datadoghq.com\",\"handle\":\"test-create_a_case_returns_created_response-1756977081@datadoghq.com\",\"name\":\"\"}}]}" }, "cookies": [], "headers": [ @@ -110,11 +110,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T13:52:47.987Z", - "time": 400 + "startedDateTime": "2025-09-04T09:11:22.193Z", + "time": 402 }, { - "_id": "84e4fedac559f349d1771d8c606e81fb", + "_id": "951e3504ca12b258fd5d1f9d3a24975e", "_order": 0, "cache": {}, "request": { @@ -131,7 +131,7 @@ "httpVersion": "HTTP/1.1", "method": "DELETE", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/users/fc35a29f-6639-11f0-8bee-a24ce66fd256" + "url": "https://api.datadoghq.com/api/v2/users/20134afc-896f-11f0-a107-e2d7850d515a" }, "response": { "bodySize": 0, @@ -147,8 +147,8 @@ "status": 204, "statusText": "No Content" }, - "startedDateTime": "2025-07-21T13:52:48.392Z", - "time": 555 + "startedDateTime": "2025-09-04T09:11:22.610Z", + "time": 518 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-Not-Found-response_3213086197/frozen.json b/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-Not-Found-response_3213086197/frozen.json new file mode 100644 index 000000000000..ce5554375eef --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-Not-Found-response_3213086197/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:23.133Z" diff --git a/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-Not-Found-response_3213086197/recording.har b/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-Not-Found-response_3213086197/recording.har new file mode 100644 index 000000000000..e8a98075508c --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Create-a-case-returns-Not-Found-response_3213086197/recording.har @@ -0,0 +1,67 @@ +{ + "log": { + "_recordingName": "Case Management/Create a case returns \"Not Found\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "b841b949dcccc1b6aee68c012b8f6b14", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 333, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 550, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"priority\":\"NOT_DEFINED\",\"title\":\"Security breach investigation\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"assignee\":{\"data\":{\"id\":\"00000000-0000-0000-0000-000000000000\",\"type\":\"user\"}},\"project\":{\"data\":{\"id\":\"721074c8-63df-4d8f-a43d-ab41dd24ec35\",\"type\":\"project\"}}},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases" + }, + "response": { + "bodySize": 70, + "content": { + "mimeType": "application/vnd.api+json", + "size": 70, + "text": "{\"errors\":[{\"code\":\"resource_not_found\",\"title\":\"project not found\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 662, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 404, + "statusText": "Not Found" + }, + "startedDateTime": "2025-09-04T09:11:23.134Z", + "time": 380 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-Bad-Request-response_1362431713/frozen.json b/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-Bad-Request-response_1362431713/frozen.json new file mode 100644 index 000000000000..45afe3ec9e72 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-Bad-Request-response_1362431713/frozen.json @@ -0,0 +1 @@ +"2025-08-21T12:21:38.654Z" diff --git a/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-Bad-Request-response_1362431713/recording.har b/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-Bad-Request-response_1362431713/recording.har new file mode 100644 index 000000000000..f181b5a6a21d --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-Bad-Request-response_1362431713/recording.har @@ -0,0 +1,110 @@ +{ + "log": { + "_recordingName": "Case Management/Delete case comment returns \"Bad Request\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "79babc387a705347c8a673b0e70145e9", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 226, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 550, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases" + }, + "response": { + "bodySize": 839, + "content": { + "mimeType": "application/vnd.api+json", + "size": 839, + "text": "{\"data\":{\"id\":\"b17ef97a-c38f-4b67-91a6-546a0a3da4d3\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-08-21T12:21:39.002325Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"b17ef97a-c38f-4b67-91a6-546a0a3da4d3\",\"key\":\"DDFC-77682\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"77765\",\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-08-21T12:21:38.655Z", + "time": 395 + }, + { + "_id": "0d109e7876b0a1bd29e991aec50d6e3b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 550, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/b17ef97a-c38f-4b67-91a6-546a0a3da4d3/comment/not-an-uuid" + }, + "response": { + "bodySize": 136, + "content": { + "mimeType": "application/vnd.api+json", + "size": 136, + "text": "{\"errors\":[{\"status\":\"400\",\"title\":\"Invalid Parameter\",\"detail\":\"invalid parameter \\\"CommentID\\\" in \\\"path\\\"; expected type \\\"uuid\\\"\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 664, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 400, + "statusText": "Bad Request" + }, + "startedDateTime": "2025-08-21T12:21:39.054Z", + "time": 368 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-No-Content-response_54436853/frozen.json b/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-No-Content-response_54436853/frozen.json new file mode 100644 index 000000000000..ab4780c7f265 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-No-Content-response_54436853/frozen.json @@ -0,0 +1 @@ +"2025-08-21T12:21:39.426Z" diff --git a/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-No-Content-response_54436853/recording.har b/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-No-Content-response_54436853/recording.har new file mode 100644 index 000000000000..e0d7ff6b9af1 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-No-Content-response_54436853/recording.har @@ -0,0 +1,200 @@ +{ + "log": { + "_recordingName": "Case Management/Delete case comment returns \"No Content\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "79babc387a705347c8a673b0e70145e9", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 226, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 550, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases" + }, + "response": { + "bodySize": 839, + "content": { + "mimeType": "application/vnd.api+json", + "size": 839, + "text": "{\"data\":{\"id\":\"ba3da7da-9df1-4b1d-82be-e7d3d8ee865f\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-08-21T12:21:39.790273Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"ba3da7da-9df1-4b1d-82be-e7d3d8ee865f\",\"key\":\"DDFC-77683\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"77766\",\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-08-21T12:21:39.427Z", + "time": 411 + }, + { + "_id": "d5077314a7607c701fcdbacbb8044b97", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 76, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 595, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"comment\":\"This is my new comment !\"},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/ba3da7da-9df1-4b1d-82be-e7d3d8ee865f/comment" + }, + "response": { + "bodySize": 434, + "content": { + "mimeType": "application/vnd.api+json", + "size": 434, + "text": "{\"data\":[{\"id\":\"bd8ee088-15bc-43a1-bc95-92e365b71459\",\"type\":\"timeline_cell\",\"attributes\":{\"author\":{\"type\":\"USER\",\"content\":{\"ID\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"name\":\"frog\",\"email\":\"frog@datadoghq.com\",\"handle\":\"frog@datadoghq.com\",\"active\":true}},\"cell_content\":{\"message\":\"This is my new comment !\"},\"content\":\"{\\\"message\\\":\\\"This is my new comment !\\\"}\",\"created_at\":\"2025-08-21T12:21:40.169700502Z\",\"type\":\"COMMENT\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 664, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-21T12:21:39.842Z", + "time": 379 + }, + { + "_id": "6f2856057524df4e04ab8966b3eddc4a", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 575, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/ba3da7da-9df1-4b1d-82be-e7d3d8ee865f/comment/bd8ee088-15bc-43a1-bc95-92e365b71459" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 603, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-21T12:21:40.226Z", + "time": 411 + }, + { + "_id": "6f2856057524df4e04ab8966b3eddc4a", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 575, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/ba3da7da-9df1-4b1d-82be-e7d3d8ee865f/comment/bd8ee088-15bc-43a1-bc95-92e365b71459" + }, + "response": { + "bodySize": 76, + "content": { + "mimeType": "application/vnd.api+json", + "size": 76, + "text": "{\"errors\":[{\"code\":\"resource_not_found\",\"title\":\"timeline cell not found\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 404, + "statusText": "Not Found" + }, + "startedDateTime": "2025-08-21T12:21:40.641Z", + "time": 447 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-Not-Found-response_1312572714/frozen.json b/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-Not-Found-response_1312572714/frozen.json new file mode 100644 index 000000000000..361062829191 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-Not-Found-response_1312572714/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:23.522Z" diff --git a/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-Not-Found-response_1312572714/recording.har b/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-Not-Found-response_1312572714/recording.har new file mode 100644 index 000000000000..b2e90a0206df --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Delete-case-comment-returns-Not-Found-response_1312572714/recording.har @@ -0,0 +1,110 @@ +{ + "log": { + "_recordingName": "Case Management/Delete case comment returns \"Not Found\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "79babc387a705347c8a673b0e70145e9", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 226, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 550, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases" + }, + "response": { + "bodySize": 839, + "content": { + "mimeType": "application/vnd.api+json", + "size": 839, + "text": "{\"data\":{\"id\":\"255b1c94-ffd2-4c21-b4cc-f6b768881031\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:23.855638Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"255b1c94-ffd2-4c21-b4cc-f6b768881031\",\"key\":\"DDFC-79579\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79667\",\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-09-04T09:11:23.524Z", + "time": 394 + }, + { + "_id": "9dc68bb50fe6f6b904dd1db9a7d70a7e", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 575, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/255b1c94-ffd2-4c21-b4cc-f6b768881031/comment/23fca2aa-4967-4936-bdd7-9157d9e456d7" + }, + "response": { + "bodySize": 76, + "content": { + "mimeType": "application/vnd.api+json", + "size": 76, + "text": "{\"errors\":[{\"code\":\"resource_not_found\",\"title\":\"timeline cell not found\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 404, + "statusText": "Not Found" + }, + "startedDateTime": "2025-09-04T09:11:23.925Z", + "time": 386 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Delete-custom-attribute-from-case-returns-Not-Found-response_4044732176/frozen.json b/cassettes/v2/Case-Management_2486725080/Delete-custom-attribute-from-case-returns-Not-Found-response_4044732176/frozen.json new file mode 100644 index 000000000000..daf8ecf2ff75 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Delete-custom-attribute-from-case-returns-Not-Found-response_4044732176/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:24.318Z" diff --git a/cassettes/v2/Case-Management_2486725080/Delete-custom-attribute-from-case-returns-Not-Found-response_4044732176/recording.har b/cassettes/v2/Case-Management_2486725080/Delete-custom-attribute-from-case-returns-Not-Found-response_4044732176/recording.har new file mode 100644 index 000000000000..c1c663f12bbd --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Delete-custom-attribute-from-case-returns-Not-Found-response_4044732176/recording.har @@ -0,0 +1,110 @@ +{ + "log": { + "_recordingName": "Case Management/Delete custom attribute from case returns \"Not Found\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "79babc387a705347c8a673b0e70145e9", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 226, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 550, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases" + }, + "response": { + "bodySize": 839, + "content": { + "mimeType": "application/vnd.api+json", + "size": 839, + "text": "{\"data\":{\"id\":\"c80dba0a-3ff4-4f42-8681-3443bd11ba59\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:24.640662Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"c80dba0a-3ff4-4f42-8681-3443bd11ba59\",\"key\":\"DDFC-79580\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79668\",\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-09-04T09:11:24.320Z", + "time": 382 + }, + { + "_id": "2663d838781ae2a7ab71c24361ddb166", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 581, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/c80dba0a-3ff4-4f42-8681-3443bd11ba59/custom_attributes/invalid_key" + }, + "response": { + "bodySize": 166, + "content": { + "mimeType": "application/vnd.api+json", + "size": 166, + "text": "{\"errors\":[{\"code\":\"resource_not_found\",\"title\":\"failed to update case (command func error): custom attribute configuration not found\",\"meta\":{\"key\":\"invalid_key\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 664, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 404, + "statusText": "Not Found" + }, + "startedDateTime": "2025-09-04T09:11:24.711Z", + "time": 402 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Delete-custom-attribute-from-case-returns-OK-response_3299389491/frozen.json b/cassettes/v2/Case-Management_2486725080/Delete-custom-attribute-from-case-returns-OK-response_3299389491/frozen.json new file mode 100644 index 000000000000..c03e38fd9af6 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Delete-custom-attribute-from-case-returns-OK-response_3299389491/frozen.json @@ -0,0 +1 @@ +"2025-08-21T12:21:42.721Z" diff --git a/cassettes/v2/Case-Management_2486725080/Delete-custom-attribute-from-case-returns-OK-response_3299389491/recording.har b/cassettes/v2/Case-Management_2486725080/Delete-custom-attribute-from-case-returns-OK-response_3299389491/recording.har new file mode 100644 index 000000000000..393f5eea3d28 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Delete-custom-attribute-from-case-returns-OK-response_3299389491/recording.har @@ -0,0 +1,253 @@ +{ + "log": { + "_recordingName": "Case Management/Delete custom attribute from case returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "dc45fc730f09c12d941beaf799af6461", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 110, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 560, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"},\"type\":\"case_type\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types" + }, + "response": { + "bodySize": 154, + "content": { + "mimeType": "application/vnd.api+json", + "size": 154, + "text": "{\"data\":{\"id\":\"3dd78296-b989-466d-97ef-428517d851ee\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-08-21T12:21:42.722Z", + "time": 357 + }, + { + "_id": "eed2101fc442228b8e95d4e94cd0ee5f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 226, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 628, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557789-0000-0000-0000-175577890200\",\"is_multi\":true,\"key\":\"attribute_08d279361f9bcdbb\",\"type\":\"TEXT\"},\"type\":\"custom_attribute\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/3dd78296-b989-466d-97ef-428517d851ee/custom_attributes" + }, + "response": { + "bodySize": 347, + "content": { + "mimeType": "application/vnd.api+json", + "size": 347, + "text": "{\"data\":{\"id\":\"c18c3669-9507-4293-ac56-08711b1e16a6\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"3dd78296-b989-466d-97ef-428517d851ee\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557789-0000-0000-0000-175577890200\",\"is_multi\":true,\"key\":\"attribute_08d279361f9bcdbb\",\"type\":\"TEXT\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-08-21T12:21:43.083Z", + "time": 379 + }, + { + "_id": "2006258b82c550f44e19b5b4f4ca3f5c", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 226, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 550, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"3dd78296-b989-466d-97ef-428517d851ee\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases" + }, + "response": { + "bodySize": 839, + "content": { + "mimeType": "application/vnd.api+json", + "size": 839, + "text": "{\"data\":{\"id\":\"15f17d2e-4972-44d9-9f31-684f2d19a16c\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-08-21T12:21:43.791404Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"15f17d2e-4972-44d9-9f31-684f2d19a16c\",\"key\":\"DDFC-77686\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"77769\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"TUNKNOWN\",\"type_id\":\"3dd78296-b989-466d-97ef-428517d851ee\"},\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-08-21T12:21:43.464Z", + "time": 377 + }, + { + "_id": "cc204f0001c79cb8606a150e24c6ab29", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + } + ], + "headersSize": 596, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/15f17d2e-4972-44d9-9f31-684f2d19a16c/custom_attributes/attribute_08d279361f9bcdbb" + }, + "response": { + "bodySize": 839, + "content": { + "mimeType": "application/vnd.api+json", + "size": 839, + "text": "{\"data\":{\"id\":\"15f17d2e-4972-44d9-9f31-684f2d19a16c\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-08-21T12:21:43.791404Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"15f17d2e-4972-44d9-9f31-684f2d19a16c\",\"key\":\"DDFC-77686\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"77769\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"TUNKNOWN\",\"type_id\":\"3dd78296-b989-466d-97ef-428517d851ee\"},\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 664, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-21T12:21:43.845Z", + "time": 377 + }, + { + "_id": "c176159588eb1b828849239e3345d4ae", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 533, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/3dd78296-b989-466d-97ef-428517d851ee" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 602, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-21T12:21:44.226Z", + "time": 363 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Get-the-details-of-a-case-returns-Not-Found-response_3332065607/frozen.json b/cassettes/v2/Case-Management_2486725080/Get-the-details-of-a-case-returns-Not-Found-response_3332065607/frozen.json index 81b71f13abfa..c76b4861029f 100644 --- a/cassettes/v2/Case-Management_2486725080/Get-the-details-of-a-case-returns-Not-Found-response_3332065607/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Get-the-details-of-a-case-returns-Not-Found-response_3332065607/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:48.953Z" +"2025-09-04T09:11:25.122Z" diff --git a/cassettes/v2/Case-Management_2486725080/Get-the-details-of-a-case-returns-Not-Found-response_3332065607/recording.har b/cassettes/v2/Case-Management_2486725080/Get-the-details-of-a-case-returns-Not-Found-response_3332065607/recording.har index 030dd847f303..c64d0c8ddfa3 100644 --- a/cassettes/v2/Case-Management_2486725080/Get-the-details-of-a-case-returns-Not-Found-response_3332065607/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Get-the-details-of-a-case-returns-Not-Found-response_3332065607/recording.har @@ -47,8 +47,8 @@ "status": 404, "statusText": "Not Found" }, - "startedDateTime": "2025-07-21T13:52:48.955Z", - "time": 384 + "startedDateTime": "2025-09-04T09:11:25.124Z", + "time": 400 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Get-the-details-of-a-case-returns-OK-response_1678668670/frozen.json b/cassettes/v2/Case-Management_2486725080/Get-the-details-of-a-case-returns-OK-response_1678668670/frozen.json index 0a4c09cb0078..d8e2fd3a1bbf 100644 --- a/cassettes/v2/Case-Management_2486725080/Get-the-details-of-a-case-returns-OK-response_1678668670/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Get-the-details-of-a-case-returns-OK-response_1678668670/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:49.345Z" +"2025-09-04T09:11:25.531Z" diff --git a/cassettes/v2/Case-Management_2486725080/Get-the-details-of-a-case-returns-OK-response_1678668670/recording.har b/cassettes/v2/Case-Management_2486725080/Get-the-details-of-a-case-returns-OK-response_1678668670/recording.har index abf00b817287..5a302338dd61 100644 --- a/cassettes/v2/Case-Management_2486725080/Get-the-details-of-a-case-returns-OK-response_1678668670/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Get-the-details-of-a-case-returns-OK-response_1678668670/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "0a6534d042f2507564f87ab28f449a8d", + "_id": "79babc387a705347c8a673b0e70145e9", "_order": 0, "cache": {}, "request": { - "bodySize": 195, + "bodySize": 226, "cookies": [], "headers": [ { @@ -32,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/cases" @@ -42,7 +42,7 @@ "content": { "mimeType": "application/vnd.api+json", "size": 839, - "text": "{\"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\"}}]}" + "text": "{\"data\":{\"id\":\"c8c5c6e5-d64c-4bd4-88bb-cdb4614ccf47\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:25.855053Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"c8c5c6e5-d64c-4bd4-88bb-cdb4614ccf47\",\"key\":\"DDFC-79581\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79669\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -57,11 +57,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T13:52:49.352Z", - "time": 401 + "startedDateTime": "2025-09-04T09:11:25.532Z", + "time": 385 }, { - "_id": "2d750a1fb5cb9c2f0ec8401990f8293d", + "_id": "fb002ce8389049d6dbea18b4eec62fa7", "_order": 0, "cache": {}, "request": { @@ -78,14 +78,14 @@ "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://api.datadoghq.com/api/v2/cases/5e66536f-3946-41fd-9e0f-183e719d7128" + "url": "https://api.datadoghq.com/api/v2/cases/c8c5c6e5-d64c-4bd4-88bb-cdb4614ccf47" }, "response": { "bodySize": 839, "content": { "mimeType": "application/vnd.api+json", "size": 839, - "text": "{\"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\"}}]}" + "text": "{\"data\":{\"id\":\"c8c5c6e5-d64c-4bd4-88bb-cdb4614ccf47\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:25.855053Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"c8c5c6e5-d64c-4bd4-88bb-cdb4614ccf47\",\"key\":\"DDFC-79581\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79669\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -100,8 +100,8 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-07-21T13:52:49.758Z", - "time": 365 + "startedDateTime": "2025-09-04T09:11:25.921Z", + "time": 391 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-Bad-Request-response_3573022260/frozen.json b/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-Bad-Request-response_3573022260/frozen.json index d2f911894840..1d68beb0e25e 100644 --- a/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-Bad-Request-response_3573022260/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-Bad-Request-response_3573022260/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:50.131Z" +"2025-09-04T09:11:26.321Z" diff --git a/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-Bad-Request-response_3573022260/recording.har b/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-Bad-Request-response_3573022260/recording.har index 8c4ea35ed64b..dd0b9b7656ab 100644 --- a/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-Bad-Request-response_3573022260/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-Bad-Request-response_3573022260/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "0a6534d042f2507564f87ab28f449a8d", + "_id": "79babc387a705347c8a673b0e70145e9", "_order": 0, "cache": {}, "request": { - "bodySize": 195, + "bodySize": 226, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/cases" }, "response": { - "bodySize": 839, + "bodySize": 838, "content": { "mimeType": "application/vnd.api+json", - "size": 839, - "text": "{\"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\"}}]}" + "size": 838, + "text": "{\"data\":{\"id\":\"2d7085e1-281e-4b68-945b-52f003e92634\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:26.64793Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"2d7085e1-281e-4b68-945b-52f003e92634\",\"key\":\"DDFC-79582\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79670\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -57,11 +57,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T13:52:50.133Z", - "time": 388 + "startedDateTime": "2025-09-04T09:11:26.322Z", + "time": 385 }, { - "_id": "606a4ae8236d1bcff95b75593921880d", + "_id": "11658e5b389613ce0afa4f5f3de23461", "_order": 0, "cache": {}, "request": { @@ -88,7 +88,7 @@ "text": "{\"data\":{\"type\":\"project\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/cases/5fd92551-50b8-46e9-899d-5846cf3eab9e/unarchive" + "url": "https://api.datadoghq.com/api/v2/cases/2d7085e1-281e-4b68-945b-52f003e92634/unarchive" }, "response": { "bodySize": 108, @@ -110,8 +110,8 @@ "status": 400, "statusText": "Bad Request" }, - "startedDateTime": "2025-07-21T13:52:50.525Z", - "time": 364 + "startedDateTime": "2025-09-04T09:11:26.710Z", + "time": 370 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-Not-Found-response_2591944147/frozen.json b/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-Not-Found-response_2591944147/frozen.json index c70685247a2b..c2d605c2e2ab 100644 --- a/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-Not-Found-response_2591944147/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-Not-Found-response_2591944147/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:50.895Z" +"2025-09-04T09:11:27.083Z" diff --git a/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-Not-Found-response_2591944147/recording.har b/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-Not-Found-response_2591944147/recording.har index fb63ce6861fe..2301598a8d92 100644 --- a/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-Not-Found-response_2591944147/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-Not-Found-response_2591944147/recording.har @@ -51,14 +51,14 @@ "value": "application/vnd.api+json" } ], - "headersSize": 662, + "headersSize": 663, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 404, "statusText": "Not Found" }, - "startedDateTime": "2025-07-21T13:52:50.897Z", - "time": 378 + "startedDateTime": "2025-09-04T09:11:27.085Z", + "time": 384 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-OK-response_720357866/frozen.json b/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-OK-response_720357866/frozen.json index c0d3211f2d27..1125a9964fc5 100644 --- a/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-OK-response_720357866/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-OK-response_720357866/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:51.279Z" +"2025-09-04T09:11:27.475Z" diff --git a/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-OK-response_720357866/recording.har b/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-OK-response_720357866/recording.har index 1707e51ba2b4..86ae2123dc7b 100644 --- a/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-OK-response_720357866/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Unarchive-case-returns-OK-response_720357866/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "0a6534d042f2507564f87ab28f449a8d", + "_id": "79babc387a705347c8a673b0e70145e9", "_order": 0, "cache": {}, "request": { - "bodySize": 195, + "bodySize": 226, "cookies": [], "headers": [ { @@ -32,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/cases" @@ -42,7 +42,7 @@ "content": { "mimeType": "application/vnd.api+json", "size": 839, - "text": "{\"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\"}}]}" + "text": "{\"data\":{\"id\":\"9882b0ba-1e67-47ae-a352-3120ebece513\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:27.804083Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"9882b0ba-1e67-47ae-a352-3120ebece513\",\"key\":\"DDFC-79583\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79671\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 662, + "headersSize": 663, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T13:52:51.280Z", - "time": 389 + "startedDateTime": "2025-09-04T09:11:27.477Z", + "time": 388 }, { - "_id": "2e646eb33de09a50a8373aaf12064055", + "_id": "f2b3dd4b72ece5e3ae9944fee4705ba5", "_order": 0, "cache": {}, "request": { @@ -88,14 +88,14 @@ "text": "{\"data\":{\"type\":\"case\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/cases/b6a0f192-9be6-4898-b05b-f4cc308de679/unarchive" + "url": "https://api.datadoghq.com/api/v2/cases/9882b0ba-1e67-47ae-a352-3120ebece513/unarchive" }, "response": { "bodySize": 839, "content": { "mimeType": "application/vnd.api+json", "size": 839, - "text": "{\"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\"}}]}" + "text": "{\"data\":{\"id\":\"9882b0ba-1e67-47ae-a352-3120ebece513\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:27.804083Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"9882b0ba-1e67-47ae-a352-3120ebece513\",\"key\":\"DDFC-79583\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79671\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -104,14 +104,14 @@ "value": "application/vnd.api+json" } ], - "headersSize": 663, + "headersSize": 664, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-07-21T13:52:51.674Z", - "time": 387 + "startedDateTime": "2025-09-04T09:11:27.872Z", + "time": 403 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-Bad-Request-response_1235480583/frozen.json b/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-Bad-Request-response_1235480583/frozen.json index ffe94d260201..26973f0a987b 100644 --- a/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-Bad-Request-response_1235480583/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-Bad-Request-response_1235480583/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:52.067Z" +"2025-09-04T09:11:28.279Z" diff --git a/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-Bad-Request-response_1235480583/recording.har b/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-Bad-Request-response_1235480583/recording.har index 4c07d5bd8169..313d9973e2ef 100644 --- a/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-Bad-Request-response_1235480583/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-Bad-Request-response_1235480583/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "0a6534d042f2507564f87ab28f449a8d", + "_id": "79babc387a705347c8a673b0e70145e9", "_order": 0, "cache": {}, "request": { - "bodySize": 195, + "bodySize": 226, "cookies": [], "headers": [ { @@ -32,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/cases" @@ -42,7 +42,7 @@ "content": { "mimeType": "application/vnd.api+json", "size": 839, - "text": "{\"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\"}}]}" + "text": "{\"data\":{\"id\":\"d9bff15e-ffb9-4611-8fcb-3e571f5f124a\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:28.606449Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"d9bff15e-ffb9-4611-8fcb-3e571f5f124a\",\"key\":\"DDFC-79584\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79672\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 662, + "headersSize": 663, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T13:52:52.068Z", - "time": 402 + "startedDateTime": "2025-09-04T09:11:28.280Z", + "time": 386 }, { - "_id": "c6d80aa4c12fd13c9fd89c1ba24e6b71", + "_id": "bfbc9647bf36cfe613c1cd857d45b195", "_order": 0, "cache": {}, "request": { @@ -88,7 +88,7 @@ "text": "{\"data\":{\"type\":\"project\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/cases/6e4af4e8-67fd-461a-9664-adf910673121/unassign" + "url": "https://api.datadoghq.com/api/v2/cases/d9bff15e-ffb9-4611-8fcb-3e571f5f124a/unassign" }, "response": { "bodySize": 108, @@ -104,14 +104,14 @@ "value": "application/vnd.api+json" } ], - "headersSize": 663, + "headersSize": 664, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 400, "statusText": "Bad Request" }, - "startedDateTime": "2025-07-21T13:52:52.474Z", - "time": 374 + "startedDateTime": "2025-09-04T09:11:28.670Z", + "time": 373 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-Not-Found-response_2139056352/frozen.json b/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-Not-Found-response_2139056352/frozen.json index 19d9a9d07483..57235e09e6f8 100644 --- a/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-Not-Found-response_2139056352/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-Not-Found-response_2139056352/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:52.854Z" +"2025-09-04T09:11:29.048Z" diff --git a/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-Not-Found-response_2139056352/recording.har b/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-Not-Found-response_2139056352/recording.har index 86492e6ef314..1309e08355d9 100644 --- a/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-Not-Found-response_2139056352/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-Not-Found-response_2139056352/recording.har @@ -51,14 +51,14 @@ "value": "application/vnd.api+json" } ], - "headersSize": 662, + "headersSize": 663, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 404, "statusText": "Not Found" }, - "startedDateTime": "2025-07-21T13:52:52.855Z", - "time": 387 + "startedDateTime": "2025-09-04T09:11:29.049Z", + "time": 392 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-OK-response_1230954147/frozen.json b/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-OK-response_1230954147/frozen.json index cf0cbda5767b..5540c6284e80 100644 --- a/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-OK-response_1230954147/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-OK-response_1230954147/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:53.249Z" +"2025-09-04T09:11:29.448Z" diff --git a/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-OK-response_1230954147/recording.har b/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-OK-response_1230954147/recording.har index 17d96d95e833..3d3dcc62ba95 100644 --- a/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-OK-response_1230954147/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Unassign-case-returns-OK-response_1230954147/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "0a6534d042f2507564f87ab28f449a8d", + "_id": "79babc387a705347c8a673b0e70145e9", "_order": 0, "cache": {}, "request": { - "bodySize": 195, + "bodySize": 226, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/cases" }, "response": { - "bodySize": 839, + "bodySize": 838, "content": { "mimeType": "application/vnd.api+json", - "size": 839, - "text": "{\"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\"}}]}" + "size": 838, + "text": "{\"data\":{\"id\":\"48f6f20d-be05-4653-9149-ad1594a3c32a\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:29.79158Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"48f6f20d-be05-4653-9149-ad1594a3c32a\",\"key\":\"DDFC-79585\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79673\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 662, + "headersSize": 663, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T13:52:53.251Z", - "time": 389 + "startedDateTime": "2025-09-04T09:11:29.449Z", + "time": 402 }, { - "_id": "17abcb435f8a9c91d3c568726f2e29e9", + "_id": "bf8cb3452ed8f7d20937aaec335eff18", "_order": 0, "cache": {}, "request": { @@ -88,14 +88,14 @@ "text": "{\"data\":{\"type\":\"case\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/cases/b222e3e7-19fe-434f-ab26-7e0845775ccd/unassign" + "url": "https://api.datadoghq.com/api/v2/cases/48f6f20d-be05-4653-9149-ad1594a3c32a/unassign" }, "response": { - "bodySize": 839, + "bodySize": 838, "content": { "mimeType": "application/vnd.api+json", - "size": 839, - "text": "{\"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\"}}]}" + "size": 838, + "text": "{\"data\":{\"id\":\"48f6f20d-be05-4653-9149-ad1594a3c32a\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:29.79158Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"48f6f20d-be05-4653-9149-ad1594a3c32a\",\"key\":\"DDFC-79585\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79673\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -104,14 +104,14 @@ "value": "application/vnd.api+json" } ], - "headersSize": 663, + "headersSize": 664, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-07-21T13:52:53.644Z", - "time": 382 + "startedDateTime": "2025-09-04T09:11:29.859Z", + "time": 399 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-attributes-returns-Not-Found-response_1931523892/frozen.json b/cassettes/v2/Case-Management_2486725080/Update-case-attributes-returns-Not-Found-response_1931523892/frozen.json index bb386bb01fb0..3d345dac2525 100644 --- a/cassettes/v2/Case-Management_2486725080/Update-case-attributes-returns-Not-Found-response_1931523892/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Update-case-attributes-returns-Not-Found-response_1931523892/frozen.json @@ -1 +1 @@ -"2025-07-21T08:23:42.266Z" +"2025-09-04T09:11:30.265Z" diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-attributes-returns-Not-Found-response_1931523892/recording.har b/cassettes/v2/Case-Management_2486725080/Update-case-attributes-returns-Not-Found-response_1931523892/recording.har index a652f6f276c9..15e40b2049d1 100644 --- a/cassettes/v2/Case-Management_2486725080/Update-case-attributes-returns-Not-Found-response_1931523892/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Update-case-attributes-returns-Not-Found-response_1931523892/recording.har @@ -57,8 +57,8 @@ "status": 404, "statusText": "Not Found" }, - "startedDateTime": "2025-07-21T08:23:42.269Z", - "time": 129 + "startedDateTime": "2025-09-04T09:11:30.267Z", + "time": 401 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-attributes-returns-OK-response_3587261335/frozen.json b/cassettes/v2/Case-Management_2486725080/Update-case-attributes-returns-OK-response_3587261335/frozen.json index 84005dc06633..987f868de808 100644 --- a/cassettes/v2/Case-Management_2486725080/Update-case-attributes-returns-OK-response_3587261335/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Update-case-attributes-returns-OK-response_3587261335/frozen.json @@ -1 +1 @@ -"2025-07-21T18:43:31.851Z" +"2025-09-04T09:11:30.673Z" diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-attributes-returns-OK-response_3587261335/recording.har b/cassettes/v2/Case-Management_2486725080/Update-case-attributes-returns-OK-response_3587261335/recording.har index 7996f423fbb4..06077c0fd77d 100644 --- a/cassettes/v2/Case-Management_2486725080/Update-case-attributes-returns-OK-response_3587261335/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Update-case-attributes-returns-OK-response_3587261335/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "0a6534d042f2507564f87ab28f449a8d", + "_id": "79babc387a705347c8a673b0e70145e9", "_order": 0, "cache": {}, "request": { - "bodySize": 195, + "bodySize": 226, "cookies": [], "headers": [ { @@ -32,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/cases" @@ -42,7 +42,7 @@ "content": { "mimeType": "application/vnd.api+json", "size": 839, - "text": "{\"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\"}}]}" + "text": "{\"data\":{\"id\":\"94309113-8be0-4b7e-aeba-ee9bb8155832\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:31.008744Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"94309113-8be0-4b7e-aeba-ee9bb8155832\",\"key\":\"DDFC-79586\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79674\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -57,11 +57,11 @@ "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T18:43:31.855Z", - "time": 142 + "startedDateTime": "2025-09-04T09:11:30.677Z", + "time": 392 }, { - "_id": "2bc87020cc36ac8d24cfbd38fc3c838f", + "_id": "d5d4972c62f5ffe7f6a6c1011d71dc35", "_order": 0, "cache": {}, "request": { @@ -88,14 +88,14 @@ "text": "{\"data\":{\"attributes\":{\"attributes\":{\"env\":[\"test\"],\"service\":[\"web-store\",\"web-api\"],\"team\":[\"engineer\"]}},\"type\":\"case\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/cases/f396c907-777d-4985-9e9d-2a420a0c0515/attributes" + "url": "https://api.datadoghq.com/api/v2/cases/94309113-8be0-4b7e-aeba-ee9bb8155832/attributes" }, "response": { "bodySize": 1034, "content": { "mimeType": "application/vnd.api+json", "size": 1034, - "text": "{\"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\"}}]}" + "text": "{\"data\":{\"id\":\"94309113-8be0-4b7e-aeba-ee9bb8155832\",\"type\":\"case\",\"attributes\":{\"attributes\":{\"env\":[\"test\"],\"service\":[\"web-store\",\"web-api\"],\"team\":[\"engineer\"]},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:31.008744Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"94309113-8be0-4b7e-aeba-ee9bb8155832\",\"key\":\"DDFC-79586\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2025-09-04T09:11:31.407893Z\",\"priority\":\"P4\",\"public_id\":\"79674\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -110,8 +110,8 @@ "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-07-21T18:43:32.005Z", - "time": 147 + "startedDateTime": "2025-09-04T09:11:31.073Z", + "time": 398 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-Bad-Request-response_989269633/frozen.json b/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-Bad-Request-response_989269633/frozen.json new file mode 100644 index 000000000000..b75b1f74ba7a --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-Bad-Request-response_989269633/frozen.json @@ -0,0 +1 @@ +"2025-08-21T12:21:50.857Z" diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-Bad-Request-response_989269633/recording.har b/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-Bad-Request-response_989269633/recording.har new file mode 100644 index 000000000000..109c3148bad2 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-Bad-Request-response_989269633/recording.har @@ -0,0 +1,263 @@ +{ + "log": { + "_recordingName": "Case Management/Update case custom attribute returns \"Bad Request\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "dc45fc730f09c12d941beaf799af6461", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 110, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 560, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"},\"type\":\"case_type\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types" + }, + "response": { + "bodySize": 154, + "content": { + "mimeType": "application/vnd.api+json", + "size": 154, + "text": "{\"data\":{\"id\":\"b36e8af6-a952-43bb-b54b-d7b80fc1344e\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 662, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-08-21T12:21:50.859Z", + "time": 362 + }, + { + "_id": "17affdbd013fa6c5e2109650279d068d", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 226, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 628, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557789-0000-0000-0000-175577891000\",\"is_multi\":true,\"key\":\"attribute_1d2a4f8f9b39a284\",\"type\":\"TEXT\"},\"type\":\"custom_attribute\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/b36e8af6-a952-43bb-b54b-d7b80fc1344e/custom_attributes" + }, + "response": { + "bodySize": 347, + "content": { + "mimeType": "application/vnd.api+json", + "size": 347, + "text": "{\"data\":{\"id\":\"49cb8cff-1ff0-4476-b0c9-042e08935cb9\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"b36e8af6-a952-43bb-b54b-d7b80fc1344e\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557789-0000-0000-0000-175577891000\",\"is_multi\":true,\"key\":\"attribute_1d2a4f8f9b39a284\",\"type\":\"TEXT\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 662, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-08-21T12:21:51.225Z", + "time": 375 + }, + { + "_id": "3067b3e8003f854ec61a9be47132765f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 226, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 550, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"b36e8af6-a952-43bb-b54b-d7b80fc1344e\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases" + }, + "response": { + "bodySize": 838, + "content": { + "mimeType": "application/vnd.api+json", + "size": 838, + "text": "{\"data\":{\"id\":\"5ed64f4d-a8d0-4dc6-879c-9b5f10a25cdb\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-08-21T12:21:51.92835Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"5ed64f4d-a8d0-4dc6-879c-9b5f10a25cdb\",\"key\":\"DDFC-77693\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"77776\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"TUNKNOWN\",\"type_id\":\"b36e8af6-a952-43bb-b54b-d7b80fc1344e\"},\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 662, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-08-21T12:21:51.604Z", + "time": 374 + }, + { + "_id": "a6b09b05138c036e2806d8fbb89a4fbe", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 86, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 646, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"is_multi\":true,\"type\":\"FLOAT\",\"value\":[1,2.4]},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/5ed64f4d-a8d0-4dc6-879c-9b5f10a25cdb/custom_attributes/attribute_1d2a4f8f9b39a284" + }, + "response": { + "bodySize": 51, + "content": { + "mimeType": "application/vnd.api+json", + "size": 51, + "text": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 662, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 400, + "statusText": "Bad Request" + }, + "startedDateTime": "2025-08-21T12:21:51.981Z", + "time": 405 + }, + { + "_id": "dbd94a38e14aa2378d063fda458ade55", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 533, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/b36e8af6-a952-43bb-b54b-d7b80fc1344e" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 601, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-21T12:21:52.390Z", + "time": 399 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-Not-Found-response_2460053450/frozen.json b/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-Not-Found-response_2460053450/frozen.json new file mode 100644 index 000000000000..cdc0f9d5e252 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-Not-Found-response_2460053450/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:31.477Z" diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-Not-Found-response_2460053450/recording.har b/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-Not-Found-response_2460053450/recording.har new file mode 100644 index 000000000000..c756af979939 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-Not-Found-response_2460053450/recording.har @@ -0,0 +1,120 @@ +{ + "log": { + "_recordingName": "Case Management/Update case custom attribute returns \"Not Found\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "79babc387a705347c8a673b0e70145e9", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 226, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 550, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases" + }, + "response": { + "bodySize": 839, + "content": { + "mimeType": "application/vnd.api+json", + "size": 839, + "text": "{\"data\":{\"id\":\"29ab4133-4059-4733-81c6-0a86571347c9\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:31.819292Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"29ab4133-4059-4733-81c6-0a86571347c9\",\"key\":\"DDFC-79587\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79675\",\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-09-04T09:11:31.478Z", + "time": 403 + }, + { + "_id": "314093ddb9cf2184dd7f30fc6f999d95", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 97, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 631, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"is_multi\":true,\"type\":\"TEXT\",\"value\":[\"Abba\",\"The Cure\"]},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/29ab4133-4059-4733-81c6-0a86571347c9/custom_attributes/invalid_key" + }, + "response": { + "bodySize": 166, + "content": { + "mimeType": "application/vnd.api+json", + "size": 166, + "text": "{\"errors\":[{\"code\":\"resource_not_found\",\"title\":\"failed to update case (command func error): custom attribute configuration not found\",\"meta\":{\"key\":\"invalid_key\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 664, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 404, + "statusText": "Not Found" + }, + "startedDateTime": "2025-09-04T09:11:31.890Z", + "time": 401 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-OK-response_2589706253/frozen.json b/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-OK-response_2589706253/frozen.json new file mode 100644 index 000000000000..9ae7d873a523 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-OK-response_2589706253/frozen.json @@ -0,0 +1 @@ +"2025-08-21T12:21:53.550Z" diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-OK-response_2589706253/recording.har b/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-OK-response_2589706253/recording.har new file mode 100644 index 000000000000..f34a3e2df441 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-custom-attribute-returns-OK-response_2589706253/recording.har @@ -0,0 +1,263 @@ +{ + "log": { + "_recordingName": "Case Management/Update case custom attribute returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "dc45fc730f09c12d941beaf799af6461", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 110, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 560, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"},\"type\":\"case_type\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types" + }, + "response": { + "bodySize": 154, + "content": { + "mimeType": "application/vnd.api+json", + "size": 154, + "text": "{\"data\":{\"id\":\"bf109065-175f-4d2f-848d-8f5232dfce1a\",\"type\":\"case_type\",\"attributes\":{\"description\":\"Worldwide case type\",\"emoji\":\"\ud83c\udf0d\",\"name\":\"World\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 662, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-08-21T12:21:53.552Z", + "time": 380 + }, + { + "_id": "32b4c175a3698ce7fa35fc7c8dcc746c", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 226, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 628, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557789-0000-0000-0000-175577891300\",\"is_multi\":true,\"key\":\"attribute_661efcf8a00203e4\",\"type\":\"TEXT\"},\"type\":\"custom_attribute\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/bf109065-175f-4d2f-848d-8f5232dfce1a/custom_attributes" + }, + "response": { + "bodySize": 347, + "content": { + "mimeType": "application/vnd.api+json", + "size": 347, + "text": "{\"data\":{\"id\":\"df10a213-93aa-4406-98a7-f9a7c5dccefd\",\"type\":\"custom_attribute\",\"attributes\":{\"case_type\":\"TUNKNOWN\",\"case_type_id\":\"bf109065-175f-4d2f-848d-8f5232dfce1a\",\"description\":\"And its brand new description\",\"display_name\":\"Attribute 17557789-0000-0000-0000-175577891300\",\"is_multi\":true,\"key\":\"attribute_661efcf8a00203e4\",\"type\":\"TEXT\"}}}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 662, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-08-21T12:21:53.935Z", + "time": 376 + }, + { + "_id": "733dd96a98d631cbb84988c648f366fa", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 226, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 550, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"bf109065-175f-4d2f-848d-8f5232dfce1a\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases" + }, + "response": { + "bodySize": 839, + "content": { + "mimeType": "application/vnd.api+json", + "size": 839, + "text": "{\"data\":{\"id\":\"4e88fd93-7a35-46a1-881e-3ee48185afe4\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-08-21T12:21:54.635083Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"4e88fd93-7a35-46a1-881e-3ee48185afe4\",\"key\":\"DDFC-77695\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"77778\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"TUNKNOWN\",\"type_id\":\"bf109065-175f-4d2f-848d-8f5232dfce1a\"},\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 662, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-08-21T12:21:54.315Z", + "time": 365 + }, + { + "_id": "e708e50eafd8510f79ebbd816067da24", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 97, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 646, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"is_multi\":true,\"type\":\"TEXT\",\"value\":[\"Abba\",\"The Cure\"]},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/4e88fd93-7a35-46a1-881e-3ee48185afe4/custom_attributes/attribute_661efcf8a00203e4" + }, + "response": { + "bodySize": 971, + "content": { + "mimeType": "application/vnd.api+json", + "size": 971, + "text": "{\"data\":{\"id\":\"4e88fd93-7a35-46a1-881e-3ee48185afe4\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-08-21T12:21:54.635083Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{\"attribute_661efcf8a00203e4\":{\"type\":\"TEXT\",\"is_multi\":true,\"value\":[\"Abba\",\"The Cure\"]}},\"description\":\"\",\"insights\":[],\"internal_id\":\"4e88fd93-7a35-46a1-881e-3ee48185afe4\",\"key\":\"DDFC-77695\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2025-08-21T12:21:55.036815Z\",\"priority\":\"P4\",\"public_id\":\"77778\",\"status\":\"OPEN\",\"title\":\"My new case\",\"type\":\"TUNKNOWN\",\"type_id\":\"bf109065-175f-4d2f-848d-8f5232dfce1a\"},\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-21T12:21:54.684Z", + "time": 406 + }, + { + "_id": "12bd5b4e68895694d1c104d2ac801002", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 533, + "httpVersion": "HTTP/1.1", + "method": "DELETE", + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/types/bf109065-175f-4d2f-848d-8f5232dfce1a" + }, + "response": { + "bodySize": 0, + "content": { + "mimeType": "text/plain", + "size": 0 + }, + "cookies": [], + "headers": [], + "headersSize": 601, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 204, + "statusText": "No Content" + }, + "startedDateTime": "2025-08-21T12:21:55.094Z", + "time": 380 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-Bad-Request-response_1519894158/frozen.json b/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-Bad-Request-response_1519894158/frozen.json new file mode 100644 index 000000000000..087c8e878c83 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-Bad-Request-response_1519894158/frozen.json @@ -0,0 +1 @@ +"2025-08-20T11:23:00.312Z" diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-Bad-Request-response_1519894158/recording.har b/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-Bad-Request-response_1519894158/recording.har new file mode 100644 index 000000000000..46354ada01bc --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-Bad-Request-response_1519894158/recording.har @@ -0,0 +1,120 @@ +{ + "log": { + "_recordingName": "Case Management/Update case description returns \"Bad Request\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "0a6534d042f2507564f87ab28f449a8d", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 195, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 550, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases" + }, + "response": { + "bodySize": 839, + "content": { + "mimeType": "application/vnd.api+json", + "size": 839, + "text": "{\"data\":{\"id\":\"efb715f8-47e6-4035-a8aa-2562ac8d46b1\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-08-20T11:23:00.725437Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"efb715f8-47e6-4035-a8aa-2562ac8d46b1\",\"key\":\"DDFC-77120\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"77187\",\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-08-20T11:23:00.313Z", + "time": 379 + }, + { + "_id": "87eaabbccb2bf779cf544e0e40819e53", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 117, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 610, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"Seeing some weird memory increase... We shouldn't ignore this\"},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/efb715f8-47e6-4035-a8aa-2562ac8d46b1/description" + }, + "response": { + "bodySize": 1027, + "content": { + "mimeType": "application/vnd.api+json", + "size": 1027, + "text": "{\"data\":{\"id\":\"efb715f8-47e6-4035-a8aa-2562ac8d46b1\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-08-20T11:23:00.725437Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"Seeing some weird memory increase... We shouldn't ignore this\",\"insights\":[],\"internal_id\":\"efb715f8-47e6-4035-a8aa-2562ac8d46b1\",\"key\":\"DDFC-77120\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2025-08-20T11:23:01.102685Z\",\"priority\":\"P4\",\"public_id\":\"77187\",\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 665, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-20T11:23:00.696Z", + "time": 379 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-Not-Found-response_2746299893/frozen.json b/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-Not-Found-response_2746299893/frozen.json new file mode 100644 index 000000000000..2f76b38c69f6 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-Not-Found-response_2746299893/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:32.299Z" diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-Not-Found-response_2746299893/recording.har b/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-Not-Found-response_2746299893/recording.har new file mode 100644 index 000000000000..1435a1276b26 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-Not-Found-response_2746299893/recording.har @@ -0,0 +1,67 @@ +{ + "log": { + "_recordingName": "Case Management/Update case description returns \"Not Found\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "a5fa9fc22fbb254e00b627d6e5420c50", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 117, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 610, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"Seeing some weird memory increase... We shouldn't ignore this\"},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/0198c6b0-2a0a-7bea-87ff-3876f119aebb/description" + }, + "response": { + "bodySize": 67, + "content": { + "mimeType": "application/vnd.api+json", + "size": 67, + "text": "{\"errors\":[{\"code\":\"resource_not_found\",\"title\":\"case not found\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 404, + "statusText": "Not Found" + }, + "startedDateTime": "2025-09-04T09:11:32.301Z", + "time": 386 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-OK-response_2980528868/frozen.json b/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-OK-response_2980528868/frozen.json new file mode 100644 index 000000000000..459ebd1ac0ed --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-OK-response_2980528868/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:32.691Z" diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-OK-response_2980528868/recording.har b/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-OK-response_2980528868/recording.har new file mode 100644 index 000000000000..469d898924de --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-description-returns-OK-response_2980528868/recording.har @@ -0,0 +1,120 @@ +{ + "log": { + "_recordingName": "Case Management/Update case description returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "79babc387a705347c8a673b0e70145e9", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 226, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 550, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases" + }, + "response": { + "bodySize": 838, + "content": { + "mimeType": "application/vnd.api+json", + "size": 838, + "text": "{\"data\":{\"id\":\"5f5c2810-f221-4e54-86fb-7d64e74beacd\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:33.01908Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"5f5c2810-f221-4e54-86fb-7d64e74beacd\",\"key\":\"DDFC-79588\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79676\",\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-09-04T09:11:32.692Z", + "time": 385 + }, + { + "_id": "b89ba63e816d4bad8c2614335e332f11", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 117, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 610, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"description\":\"Seeing some weird memory increase... Updating the description\"},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/5f5c2810-f221-4e54-86fb-7d64e74beacd/description" + }, + "response": { + "bodySize": 1025, + "content": { + "mimeType": "application/vnd.api+json", + "size": 1025, + "text": "{\"data\":{\"id\":\"5f5c2810-f221-4e54-86fb-7d64e74beacd\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:33.01908Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"Seeing some weird memory increase... Updating the description\",\"insights\":[],\"internal_id\":\"5f5c2810-f221-4e54-86fb-7d64e74beacd\",\"key\":\"DDFC-79588\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2025-09-04T09:11:33.41286Z\",\"priority\":\"P4\",\"public_id\":\"79676\",\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 665, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-09-04T09:11:33.083Z", + "time": 386 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-Bad-Request-response_270760096/frozen.json b/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-Bad-Request-response_270760096/frozen.json index 863b4b262aba..ab79b91b2867 100644 --- a/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-Bad-Request-response_270760096/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-Bad-Request-response_270760096/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:56.000Z" +"2025-09-04T09:11:33.478Z" diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-Bad-Request-response_270760096/recording.har b/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-Bad-Request-response_270760096/recording.har index 33d9d67f6c57..3fbdc3f01701 100644 --- a/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-Bad-Request-response_270760096/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-Bad-Request-response_270760096/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "0a6534d042f2507564f87ab28f449a8d", + "_id": "79babc387a705347c8a673b0e70145e9", "_order": 0, "cache": {}, "request": { - "bodySize": 195, + "bodySize": 226, "cookies": [], "headers": [ { @@ -32,17 +32,17 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/cases" }, "response": { - "bodySize": 839, + "bodySize": 838, "content": { "mimeType": "application/vnd.api+json", - "size": 839, - "text": "{\"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\"}}]}" + "size": 838, + "text": "{\"data\":{\"id\":\"1f3987e7-f403-4e30-9dd1-0c4a05f3bd72\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:33.82369Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"1f3987e7-f403-4e30-9dd1-0c4a05f3bd72\",\"key\":\"DDFC-79589\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79677\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 662, + "headersSize": 663, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T13:52:56.002Z", - "time": 373 + "startedDateTime": "2025-09-04T09:11:33.480Z", + "time": 408 }, { - "_id": "72df50c046cd23a29858a891311aeca1", + "_id": "18e2495e6885e47d91cd86ed89c4c1ae", "_order": 0, "cache": {}, "request": { @@ -88,14 +88,14 @@ "text": "{\"data\":{\"attributes\":{\"priority\":\"P1234\"},\"type\":\"case\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/cases/57868e9a-2697-4384-b724-8e118b20a7f3/priority" + "url": "https://api.datadoghq.com/api/v2/cases/1f3987e7-f403-4e30-9dd1-0c4a05f3bd72/priority" }, "response": { "bodySize": 120, "content": { "mimeType": "application/vnd.api+json", "size": 120, - "text": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"invalid priority P1234. Must be one of P2, P3, P4, P5, NOT_DEFINED, P1\"}]}" + "text": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"invalid priority P1234. Must be one of P5, NOT_DEFINED, P1, P2, P3, P4\"}]}" }, "cookies": [], "headers": [ @@ -104,14 +104,14 @@ "value": "application/vnd.api+json" } ], - "headersSize": 663, + "headersSize": 664, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 400, "statusText": "Bad Request" }, - "startedDateTime": "2025-07-21T13:52:56.381Z", - "time": 372 + "startedDateTime": "2025-09-04T09:11:33.892Z", + "time": 376 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-Not-Found-response_1985619607/frozen.json b/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-Not-Found-response_1985619607/frozen.json index fcfe57cb0f2a..0d596b044441 100644 --- a/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-Not-Found-response_1985619607/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-Not-Found-response_1985619607/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:56.765Z" +"2025-09-04T09:11:34.272Z" diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-Not-Found-response_1985619607/recording.har b/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-Not-Found-response_1985619607/recording.har index 8e0f5958a3c2..b4e59a1f58c0 100644 --- a/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-Not-Found-response_1985619607/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-Not-Found-response_1985619607/recording.har @@ -51,14 +51,14 @@ "value": "application/vnd.api+json" } ], - "headersSize": 662, + "headersSize": 663, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 404, "statusText": "Not Found" }, - "startedDateTime": "2025-07-21T13:52:56.772Z", - "time": 385 + "startedDateTime": "2025-09-04T09:11:34.273Z", + "time": 439 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-OK-response_1115539438/frozen.json b/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-OK-response_1115539438/frozen.json index b20095d23aa2..e91eaa0d965c 100644 --- a/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-OK-response_1115539438/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-OK-response_1115539438/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:57.162Z" +"2025-09-04T09:11:34.716Z" diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-OK-response_1115539438/recording.har b/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-OK-response_1115539438/recording.har index 25b786c8467c..2b66fa8abafe 100644 --- a/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-OK-response_1115539438/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Update-case-priority-returns-OK-response_1115539438/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "0a6534d042f2507564f87ab28f449a8d", + "_id": "79babc387a705347c8a673b0e70145e9", "_order": 0, "cache": {}, "request": { - "bodySize": 195, + "bodySize": 226, "cookies": [], "headers": [ { @@ -32,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/cases" @@ -42,7 +42,7 @@ "content": { "mimeType": "application/vnd.api+json", "size": 839, - "text": "{\"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\"}}]}" + "text": "{\"data\":{\"id\":\"3a77b1c2-06eb-45b7-b03d-915107e151c0\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:35.061392Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"3a77b1c2-06eb-45b7-b03d-915107e151c0\",\"key\":\"DDFC-79590\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79678\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 662, + "headersSize": 663, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T13:52:57.163Z", - "time": 393 + "startedDateTime": "2025-09-04T09:11:34.717Z", + "time": 404 }, { - "_id": "1a133ade9b956e647d2bb7ec6d4755b4", + "_id": "5fc00daa307561a09db9f9daa621ed4d", "_order": 0, "cache": {}, "request": { @@ -88,14 +88,14 @@ "text": "{\"data\":{\"attributes\":{\"priority\":\"P3\"},\"type\":\"case\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/cases/18014b24-6e64-4ca5-8cac-7ccbdd65258b/priority" + "url": "https://api.datadoghq.com/api/v2/cases/3a77b1c2-06eb-45b7-b03d-915107e151c0/priority" }, "response": { "bodySize": 966, "content": { "mimeType": "application/vnd.api+json", "size": 966, - "text": "{\"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\"}}]}" + "text": "{\"data\":{\"id\":\"3a77b1c2-06eb-45b7-b03d-915107e151c0\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:35.061392Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"3a77b1c2-06eb-45b7-b03d-915107e151c0\",\"key\":\"DDFC-79590\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2025-09-04T09:11:35.470579Z\",\"priority\":\"P3\",\"public_id\":\"79678\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -104,14 +104,14 @@ "value": "application/vnd.api+json" } ], - "headersSize": 663, + "headersSize": 664, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-07-21T13:52:57.559Z", - "time": 390 + "startedDateTime": "2025-09-04T09:11:35.124Z", + "time": 401 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-Bad-Request-response_4072076838/frozen.json b/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-Bad-Request-response_4072076838/frozen.json index 1febabe0e53f..88d7c959702b 100644 --- a/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-Bad-Request-response_4072076838/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-Bad-Request-response_4072076838/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:57.959Z" +"2025-09-04T09:11:35.529Z" diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-Bad-Request-response_4072076838/recording.har b/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-Bad-Request-response_4072076838/recording.har index b9c2ebed30d6..b8919a1c7c69 100644 --- a/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-Bad-Request-response_4072076838/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-Bad-Request-response_4072076838/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "0a6534d042f2507564f87ab28f449a8d", + "_id": "79babc387a705347c8a673b0e70145e9", "_order": 0, "cache": {}, "request": { - "bodySize": 195, + "bodySize": 226, "cookies": [], "headers": [ { @@ -32,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/cases" @@ -42,7 +42,7 @@ "content": { "mimeType": "application/vnd.api+json", "size": 839, - "text": "{\"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\"}}]}" + "text": "{\"data\":{\"id\":\"d0d25821-8185-4cd4-9541-976892069a75\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:35.866323Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"d0d25821-8185-4cd4-9541-976892069a75\",\"key\":\"DDFC-79591\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79679\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 662, + "headersSize": 663, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T13:52:57.961Z", - "time": 392 + "startedDateTime": "2025-09-04T09:11:35.530Z", + "time": 400 }, { - "_id": "195135ee0304f678903af6058a0be0e6", + "_id": "1f41e274f48d260552130f2e5b77e763", "_order": 0, "cache": {}, "request": { @@ -88,14 +88,14 @@ "text": "{\"data\":{\"attributes\":{\"status\":\"OPENED\"},\"type\":\"case\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/cases/98319575-b53b-43be-96b2-7595a5f1be6c/status" + "url": "https://api.datadoghq.com/api/v2/cases/d0d25821-8185-4cd4-9541-976892069a75/status" }, "response": { "bodySize": 232, "content": { "mimeType": "application/vnd.api+json", "size": 232, - "text": "{\"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\"}]}" + "text": "{\"errors\":[{\"title\":\"Generic Error\",\"detail\":\"invalid status OPENED. Must be one of COMPLETED, CLOSED, TRIGGERED, RESOLVED, PENDING_APPROVAL, APPROVED, IMPLEMENTING, CANCELLED, DECLINED, SUNKNOWN, OPEN, IN_PROGRESS, ACKNOWLEDGED\"}]}" }, "cookies": [], "headers": [ @@ -104,14 +104,14 @@ "value": "application/vnd.api+json" } ], - "headersSize": 663, + "headersSize": 664, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 400, "statusText": "Bad Request" }, - "startedDateTime": "2025-07-21T13:52:58.357Z", - "time": 358 + "startedDateTime": "2025-09-04T09:11:35.937Z", + "time": 370 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-Not-Found-response_3322612333/frozen.json b/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-Not-Found-response_3322612333/frozen.json index 2530f6b55e52..e377f5f69f7a 100644 --- a/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-Not-Found-response_3322612333/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-Not-Found-response_3322612333/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:58.721Z" +"2025-09-04T09:11:36.310Z" diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-Not-Found-response_3322612333/recording.har b/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-Not-Found-response_3322612333/recording.har index a814280603cf..ff3409dd21e4 100644 --- a/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-Not-Found-response_3322612333/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-Not-Found-response_3322612333/recording.har @@ -51,14 +51,14 @@ "value": "application/vnd.api+json" } ], - "headersSize": 662, + "headersSize": 663, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 404, "statusText": "Not Found" }, - "startedDateTime": "2025-07-21T13:52:58.723Z", - "time": 386 + "startedDateTime": "2025-09-04T09:11:36.311Z", + "time": 405 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-OK-response_35723180/frozen.json b/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-OK-response_35723180/frozen.json index 9b8b2cc71d0c..d4128c450165 100644 --- a/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-OK-response_35723180/frozen.json +++ b/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-OK-response_35723180/frozen.json @@ -1 +1 @@ -"2025-07-21T13:52:59.116Z" +"2025-09-04T09:11:36.723Z" diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-OK-response_35723180/recording.har b/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-OK-response_35723180/recording.har index 9a3e298d243c..6c3be0132be9 100644 --- a/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-OK-response_35723180/recording.har +++ b/cassettes/v2/Case-Management_2486725080/Update-case-status-returns-OK-response_35723180/recording.har @@ -8,11 +8,11 @@ }, "entries": [ { - "_id": "0a6534d042f2507564f87ab28f449a8d", + "_id": "79babc387a705347c8a673b0e70145e9", "_order": 0, "cache": {}, "request": { - "bodySize": 195, + "bodySize": 226, "cookies": [], "headers": [ { @@ -32,7 +32,7 @@ "postData": { "mimeType": "application/json", "params": [], - "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type\":\"STANDARD\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" }, "queryString": [], "url": "https://api.datadoghq.com/api/v2/cases" @@ -42,7 +42,7 @@ "content": { "mimeType": "application/vnd.api+json", "size": 839, - "text": "{\"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\"}}]}" + "text": "{\"data\":{\"id\":\"f0a89371-59b7-4881-a931-e823ba80dc38\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:37.055056Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"f0a89371-59b7-4881-a931-e823ba80dc38\",\"key\":\"DDFC-79592\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79680\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -51,17 +51,17 @@ "value": "application/vnd.api+json" } ], - "headersSize": 662, + "headersSize": 663, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 201, "statusText": "Created" }, - "startedDateTime": "2025-07-21T13:52:59.118Z", - "time": 392 + "startedDateTime": "2025-09-04T09:11:36.724Z", + "time": 387 }, { - "_id": "1b6a4861322ffe6c3bd95d34b6d2e305", + "_id": "c4844add305b73e4522d1d4cc2fffec4", "_order": 0, "cache": {}, "request": { @@ -88,14 +88,14 @@ "text": "{\"data\":{\"attributes\":{\"status\":\"IN_PROGRESS\"},\"type\":\"case\"}}" }, "queryString": [], - "url": "https://api.datadoghq.com/api/v2/cases/6d09fb31-6357-4f35-b1af-eaa0047f19f0/status" + "url": "https://api.datadoghq.com/api/v2/cases/f0a89371-59b7-4881-a931-e823ba80dc38/status" }, "response": { "bodySize": 973, "content": { "mimeType": "application/vnd.api+json", "size": 973, - "text": "{\"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\"}}]}" + "text": "{\"data\":{\"id\":\"f0a89371-59b7-4881-a931-e823ba80dc38\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:37.055056Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"f0a89371-59b7-4881-a931-e823ba80dc38\",\"key\":\"DDFC-79592\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2025-09-04T09:11:37.442892Z\",\"priority\":\"P4\",\"public_id\":\"79680\",\"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\"}}]}" }, "cookies": [], "headers": [ @@ -104,14 +104,14 @@ "value": "application/vnd.api+json" } ], - "headersSize": 663, + "headersSize": 664, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2025-07-21T13:52:59.515Z", - "time": 384 + "startedDateTime": "2025-09-04T09:11:37.116Z", + "time": 389 } ], "pages": [], diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-Bad-Request-response_3215528410/frozen.json b/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-Bad-Request-response_3215528410/frozen.json new file mode 100644 index 000000000000..c27e608d1a89 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-Bad-Request-response_3215528410/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:37.513Z" diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-Bad-Request-response_3215528410/recording.har b/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-Bad-Request-response_3215528410/recording.har new file mode 100644 index 000000000000..c54fda14763c --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-Bad-Request-response_3215528410/recording.har @@ -0,0 +1,120 @@ +{ + "log": { + "_recordingName": "Case Management/Update case title returns \"Bad Request\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "79babc387a705347c8a673b0e70145e9", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 226, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 550, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases" + }, + "response": { + "bodySize": 839, + "content": { + "mimeType": "application/vnd.api+json", + "size": 839, + "text": "{\"data\":{\"id\":\"3caf2ec0-2ec2-426f-bce7-5a647138fa98\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:37.838981Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"3caf2ec0-2ec2-426f-bce7-5a647138fa98\",\"key\":\"DDFC-79593\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79681\",\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-09-04T09:11:37.514Z", + "time": 385 + }, + { + "_id": "d2280bd582d8b28eb84b3c091c4be20f", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 50, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 597, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"title\":\"\"},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/3caf2ec0-2ec2-426f-bce7-5a647138fa98/title" + }, + "response": { + "bodySize": 51, + "content": { + "mimeType": "application/vnd.api+json", + "size": 51, + "text": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 400, + "statusText": "Bad Request" + }, + "startedDateTime": "2025-09-04T09:11:37.902Z", + "time": 373 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-Not-Found-response_1992199369/frozen.json b/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-Not-Found-response_1992199369/frozen.json new file mode 100644 index 000000000000..5e322addfead --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-Not-Found-response_1992199369/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:38.281Z" diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-Not-Found-response_1992199369/recording.har b/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-Not-Found-response_1992199369/recording.har new file mode 100644 index 000000000000..b17ceb43e454 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-Not-Found-response_1992199369/recording.har @@ -0,0 +1,67 @@ +{ + "log": { + "_recordingName": "Case Management/Update case title returns \"Not Found\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "4e265ccbfa85b49b13316129143e495e", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 82, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 597, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"title\":\"Memory leak investigation on API\"},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/0198c6b8-b08f-7c08-978a-d95217f2eeac/title" + }, + "response": { + "bodySize": 67, + "content": { + "mimeType": "application/vnd.api+json", + "size": 67, + "text": "{\"errors\":[{\"code\":\"resource_not_found\",\"title\":\"case not found\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 404, + "statusText": "Not Found" + }, + "startedDateTime": "2025-09-04T09:11:38.282Z", + "time": 389 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-OK-response_2838423720/frozen.json b/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-OK-response_2838423720/frozen.json new file mode 100644 index 000000000000..6f80b5090aa1 --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-OK-response_2838423720/frozen.json @@ -0,0 +1 @@ +"2025-09-04T09:11:38.680Z" diff --git a/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-OK-response_2838423720/recording.har b/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-OK-response_2838423720/recording.har new file mode 100644 index 000000000000..ce87063670bf --- /dev/null +++ b/cassettes/v2/Case-Management_2486725080/Update-case-title-returns-OK-response_2838423720/recording.har @@ -0,0 +1,120 @@ +{ + "log": { + "_recordingName": "Case Management/Update case title returns \"OK\" response", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "79babc387a705347c8a673b0e70145e9", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 226, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 550, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"priority\":\"P4\",\"title\":\"My new case\",\"type_id\":\"00000000-0000-0000-0000-000000000001\"},\"relationships\":{\"project\":{\"data\":{\"id\":\"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\"type\":\"project\"}}},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases" + }, + "response": { + "bodySize": 839, + "content": { + "mimeType": "application/vnd.api+json", + "size": 839, + "text": "{\"data\":{\"id\":\"ea7a98ae-502b-4fc9-a4cf-0294e38460c3\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:39.015306Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"ea7a98ae-502b-4fc9-a4cf-0294e38460c3\",\"key\":\"DDFC-79594\",\"merge_status\":\"NOT_MERGED\",\"priority\":\"P4\",\"public_id\":\"79682\",\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 663, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 201, + "statusText": "Created" + }, + "startedDateTime": "2025-09-04T09:11:38.682Z", + "time": 391 + }, + { + "_id": "ff450ab294ac227e7b10e4f9c5aff3e0", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 92, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-type", + "value": "application/json" + } + ], + "headersSize": 597, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "params": [], + "text": "{\"data\":{\"attributes\":{\"title\":\"[UPDATED] Memory leak investigation on API\"},\"type\":\"case\"}}" + }, + "queryString": [], + "url": "https://api.datadoghq.com/api/v2/cases/ea7a98ae-502b-4fc9-a4cf-0294e38460c3/title" + }, + "response": { + "bodySize": 996, + "content": { + "mimeType": "application/vnd.api+json", + "size": 996, + "text": "{\"data\":{\"id\":\"ea7a98ae-502b-4fc9-a4cf-0294e38460c3\",\"type\":\"case\",\"attributes\":{\"attributes\":{},\"comment_count\":0,\"created_at\":\"2025-09-04T09:11:39.015306Z\",\"creation_source\":\"MANUAL\",\"custom_attributes\":{},\"description\":\"\",\"insights\":[],\"internal_id\":\"ea7a98ae-502b-4fc9-a4cf-0294e38460c3\",\"key\":\"DDFC-79594\",\"merge_status\":\"NOT_MERGED\",\"modified_at\":\"2025-09-04T09:11:39.41691Z\",\"priority\":\"P4\",\"public_id\":\"79682\",\"status\":\"OPEN\",\"title\":\"[UPDATED] Memory leak investigation on API\",\"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\"}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/vnd.api+json" + } + ], + "headersSize": 664, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-09-04T09:11:39.078Z", + "time": 402 + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/examples/v2/case-management-attribute/CreateCustomAttributeConfig.ts b/examples/v2/case-management-attribute/CreateCustomAttributeConfig.ts new file mode 100644 index 000000000000..1422c9dcf2df --- /dev/null +++ b/examples/v2/case-management-attribute/CreateCustomAttributeConfig.ts @@ -0,0 +1,36 @@ +/** + * Create custom attribute config for a case type returns "CREATED" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.CaseManagementAttributeApi(configuration); + +// there is a valid "case_type" in the system +const CASE_TYPE_ID = process.env.CASE_TYPE_ID as string; + +const params: v2.CaseManagementAttributeApiCreateCustomAttributeConfigRequest = + { + body: { + data: { + attributes: { + displayName: "AWS Region 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", + isMulti: true, + key: "region_d9fe56bc9274fbb6", + type: "NUMBER", + }, + type: "custom_attribute", + }, + }, + caseTypeId: CASE_TYPE_ID, + }; + +apiInstance + .createCustomAttributeConfig(params) + .then((data: v2.CustomAttributeConfigResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management-attribute/DeleteCustomAttributeConfig.ts b/examples/v2/case-management-attribute/DeleteCustomAttributeConfig.ts new file mode 100644 index 000000000000..34fb38e0b22c --- /dev/null +++ b/examples/v2/case-management-attribute/DeleteCustomAttributeConfig.ts @@ -0,0 +1,29 @@ +/** + * Delete custom attributes config returns "No Content" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.CaseManagementAttributeApi(configuration); + +// there is a valid "case_type" in the system +const CASE_TYPE_ID = process.env.CASE_TYPE_ID as string; + +// there is a valid "custom_attribute" in the system +const CUSTOM_ATTRIBUTE_ID = process.env.CUSTOM_ATTRIBUTE_ID as string; + +const params: v2.CaseManagementAttributeApiDeleteCustomAttributeConfigRequest = + { + caseTypeId: CASE_TYPE_ID, + customAttributeId: CUSTOM_ATTRIBUTE_ID, + }; + +apiInstance + .deleteCustomAttributeConfig(params) + .then((data: any) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management-attribute/GetAllCustomAttributeConfigsByCaseType.ts b/examples/v2/case-management-attribute/GetAllCustomAttributeConfigsByCaseType.ts new file mode 100644 index 000000000000..af7f727f1e6b --- /dev/null +++ b/examples/v2/case-management-attribute/GetAllCustomAttributeConfigsByCaseType.ts @@ -0,0 +1,25 @@ +/** + * Get all custom attributes config of case type returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.CaseManagementAttributeApi(configuration); + +// there is a valid "case_type" in the system +const CASE_TYPE_ID = process.env.CASE_TYPE_ID as string; + +const params: v2.CaseManagementAttributeApiGetAllCustomAttributeConfigsByCaseTypeRequest = + { + caseTypeId: CASE_TYPE_ID, + }; + +apiInstance + .getAllCustomAttributeConfigsByCaseType(params) + .then((data: v2.CustomAttributeConfigsResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management-attribute/GetAllCustomAttributes.ts b/examples/v2/case-management-attribute/GetAllCustomAttributes.ts new file mode 100644 index 000000000000..055527980916 --- /dev/null +++ b/examples/v2/case-management-attribute/GetAllCustomAttributes.ts @@ -0,0 +1,17 @@ +/** + * Get all custom attributes returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.CaseManagementAttributeApi(configuration); + +apiInstance + .getAllCustomAttributes() + .then((data: v2.CustomAttributeConfigsResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management-type/CreateCaseType.ts b/examples/v2/case-management-type/CreateCaseType.ts new file mode 100644 index 000000000000..9d0ed9090d17 --- /dev/null +++ b/examples/v2/case-management-type/CreateCaseType.ts @@ -0,0 +1,30 @@ +/** + * Create a case type returns "CREATED" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.CaseManagementTypeApi(configuration); + +const params: v2.CaseManagementTypeApiCreateCaseTypeRequest = { + body: { + data: { + attributes: { + description: "Investigations done in case management", + emoji: "👑", + name: "Investigation", + }, + type: "case_type", + }, + }, +}; + +apiInstance + .createCaseType(params) + .then((data: v2.CaseTypeResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management-type/DeleteCaseType.ts b/examples/v2/case-management-type/DeleteCaseType.ts new file mode 100644 index 000000000000..75fb625f9a97 --- /dev/null +++ b/examples/v2/case-management-type/DeleteCaseType.ts @@ -0,0 +1,21 @@ +/** + * Delete a case type returns "No Content" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.CaseManagementTypeApi(configuration); + +const params: v2.CaseManagementTypeApiDeleteCaseTypeRequest = { + caseTypeId: "case_type_id", +}; + +apiInstance + .deleteCaseType(params) + .then((data: any) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management-type/DeleteCaseType_2790986149.ts b/examples/v2/case-management-type/DeleteCaseType_2790986149.ts new file mode 100644 index 000000000000..67c586ac029c --- /dev/null +++ b/examples/v2/case-management-type/DeleteCaseType_2790986149.ts @@ -0,0 +1,24 @@ +/** + * Delete a case type returns "NotContent" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.CaseManagementTypeApi(configuration); + +// there is a valid "case_type" in the system +const CASE_TYPE_ID = process.env.CASE_TYPE_ID as string; + +const params: v2.CaseManagementTypeApiDeleteCaseTypeRequest = { + caseTypeId: CASE_TYPE_ID, +}; + +apiInstance + .deleteCaseType(params) + .then((data: any) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management-type/GetAllCaseTypes.ts b/examples/v2/case-management-type/GetAllCaseTypes.ts new file mode 100644 index 000000000000..a624209227e9 --- /dev/null +++ b/examples/v2/case-management-type/GetAllCaseTypes.ts @@ -0,0 +1,17 @@ +/** + * Get all case types returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.CaseManagementTypeApi(configuration); + +apiInstance + .getAllCaseTypes() + .then((data: v2.CaseTypesResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/CommentCase.ts b/examples/v2/case-management/CommentCase.ts new file mode 100644 index 000000000000..7cfc41d2faeb --- /dev/null +++ b/examples/v2/case-management/CommentCase.ts @@ -0,0 +1,32 @@ +/** + * Comment case returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.CaseManagementApi(configuration); + +// there is a valid "case" in the system +const CASE_ID = process.env.CASE_ID as string; + +const params: v2.CaseManagementApiCommentCaseRequest = { + body: { + data: { + attributes: { + comment: "Hello World !", + }, + type: "case", + }, + }, + caseId: CASE_ID, +}; + +apiInstance + .commentCase(params) + .then((data: v2.TimelineResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/CreateCase.ts b/examples/v2/case-management/CreateCase.ts index fd8f695cae63..2e32cd7107d6 100644 --- a/examples/v2/case-management/CreateCase.ts +++ b/examples/v2/case-management/CreateCase.ts @@ -16,7 +16,7 @@ const params: v2.CaseManagementApiCreateCaseRequest = { attributes: { priority: "NOT_DEFINED", title: "Security breach investigation in 0cfbc5cbc676ee71", - type: "STANDARD", + typeId: "00000000-0000-0000-0000-000000000001", }, relationships: { assignee: { diff --git a/examples/v2/case-management/DeleteCaseComment.ts b/examples/v2/case-management/DeleteCaseComment.ts new file mode 100644 index 000000000000..f1cbc748d846 --- /dev/null +++ b/examples/v2/case-management/DeleteCaseComment.ts @@ -0,0 +1,28 @@ +/** + * Delete case comment returns "No Content" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.CaseManagementApi(configuration); + +// there is a valid "case" in the system +const CASE_ID = process.env.CASE_ID as string; + +// there is a valid "comment" in the system +const COMMENT_ID = process.env.COMMENT_ID as string; + +const params: v2.CaseManagementApiDeleteCaseCommentRequest = { + caseId: CASE_ID, + cellId: COMMENT_ID, +}; + +apiInstance + .deleteCaseComment(params) + .then((data: any) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/DeleteCaseCustomAttribute.ts b/examples/v2/case-management/DeleteCaseCustomAttribute.ts new file mode 100644 index 000000000000..bc48926da4c6 --- /dev/null +++ b/examples/v2/case-management/DeleteCaseCustomAttribute.ts @@ -0,0 +1,29 @@ +/** + * Delete custom attribute from case returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.CaseManagementApi(configuration); + +// there is a valid "case" with a custom "case_type" in the system +const CASE_WITH_TYPE_ID = process.env.CASE_WITH_TYPE_ID as string; + +// there is a valid "custom_attribute" in the system +const CUSTOM_ATTRIBUTE_ATTRIBUTES_KEY = process.env + .CUSTOM_ATTRIBUTE_ATTRIBUTES_KEY as string; + +const params: v2.CaseManagementApiDeleteCaseCustomAttributeRequest = { + caseId: CASE_WITH_TYPE_ID, + customAttributeKey: CUSTOM_ATTRIBUTE_ATTRIBUTES_KEY, +}; + +apiInstance + .deleteCaseCustomAttribute(params) + .then((data: v2.CaseResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/UpdateCaseCustomAttribute.ts b/examples/v2/case-management/UpdateCaseCustomAttribute.ts new file mode 100644 index 000000000000..087190db9c03 --- /dev/null +++ b/examples/v2/case-management/UpdateCaseCustomAttribute.ts @@ -0,0 +1,39 @@ +/** + * Update case custom attribute returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.CaseManagementApi(configuration); + +// there is a valid "case" with a custom "case_type" in the system +const CASE_WITH_TYPE_ID = process.env.CASE_WITH_TYPE_ID as string; + +// there is a valid "custom_attribute" in the system +const CUSTOM_ATTRIBUTE_ATTRIBUTES_KEY = process.env + .CUSTOM_ATTRIBUTE_ATTRIBUTES_KEY as string; + +const params: v2.CaseManagementApiUpdateCaseCustomAttributeRequest = { + body: { + data: { + attributes: { + type: "TEXT", + isMulti: true, + value: ["Abba", "The Cure"], + }, + type: "case", + }, + }, + caseId: CASE_WITH_TYPE_ID, + customAttributeKey: CUSTOM_ATTRIBUTE_ATTRIBUTES_KEY, +}; + +apiInstance + .updateCaseCustomAttribute(params) + .then((data: v2.CaseResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/UpdateCaseDescription.ts b/examples/v2/case-management/UpdateCaseDescription.ts new file mode 100644 index 000000000000..b9e5ef4ba688 --- /dev/null +++ b/examples/v2/case-management/UpdateCaseDescription.ts @@ -0,0 +1,33 @@ +/** + * Update case description returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.CaseManagementApi(configuration); + +// there is a valid "case" in the system +const CASE_ID = process.env.CASE_ID as string; + +const params: v2.CaseManagementApiUpdateCaseDescriptionRequest = { + body: { + data: { + attributes: { + description: + "Seeing some weird memory increase... Updating the description", + }, + type: "case", + }, + }, + caseId: CASE_ID, +}; + +apiInstance + .updateCaseDescription(params) + .then((data: v2.CaseResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/case-management/UpdateCaseTitle.ts b/examples/v2/case-management/UpdateCaseTitle.ts new file mode 100644 index 000000000000..5d916dd271ac --- /dev/null +++ b/examples/v2/case-management/UpdateCaseTitle.ts @@ -0,0 +1,32 @@ +/** + * Update case title returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.CaseManagementApi(configuration); + +// there is a valid "case" in the system +const CASE_ID = process.env.CASE_ID as string; + +const params: v2.CaseManagementApiUpdateCaseTitleRequest = { + body: { + data: { + attributes: { + title: "[UPDATED] Memory leak investigation on API", + }, + type: "case", + }, + }, + caseId: CASE_ID, +}; + +apiInstance + .updateCaseTitle(params) + .then((data: v2.CaseResponse) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/features/support/scenarios_model_mapping.ts b/features/support/scenarios_model_mapping.ts index 7ce3496cb60b..d3792f39e441 100644 --- a/features/support/scenarios_model_mapping.ts +++ b/features/support/scenarios_model_mapping.ts @@ -3077,6 +3077,65 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { }, "operationResponseType": "CaseResponse", }, + "v2.CommentCase": { + "caseId": { + "type": "string", + "format": "", + }, + "body": { + "type": "CaseCommentRequest", + "format": "", + }, + "operationResponseType": "TimelineResponse", + }, + "v2.DeleteCaseComment": { + "caseId": { + "type": "string", + "format": "", + }, + "cellId": { + "type": "string", + "format": "", + }, + "operationResponseType": "{}", + }, + "v2.UpdateCaseCustomAttribute": { + "caseId": { + "type": "string", + "format": "", + }, + "customAttributeKey": { + "type": "string", + "format": "", + }, + "body": { + "type": "CaseUpdateCustomAttributeRequest", + "format": "", + }, + "operationResponseType": "CaseResponse", + }, + "v2.DeleteCaseCustomAttribute": { + "caseId": { + "type": "string", + "format": "", + }, + "customAttributeKey": { + "type": "string", + "format": "", + }, + "operationResponseType": "CaseResponse", + }, + "v2.UpdateCaseDescription": { + "caseId": { + "type": "string", + "format": "", + }, + "body": { + "type": "CaseUpdateDescriptionRequest", + "format": "", + }, + "operationResponseType": "CaseResponse", + }, "v2.UpdatePriority": { "caseId": { "type": "string", @@ -3099,6 +3158,17 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { }, "operationResponseType": "CaseResponse", }, + "v2.UpdateCaseTitle": { + "caseId": { + "type": "string", + "format": "", + }, + "body": { + "type": "CaseUpdateTitleRequest", + "format": "", + }, + "operationResponseType": "CaseResponse", + }, "v2.UnarchiveCase": { "caseId": { "type": "string", @@ -3121,6 +3191,55 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { }, "operationResponseType": "CaseResponse", }, + "v2.GetAllCaseTypes": { + "operationResponseType": "CaseTypesResponse", + }, + "v2.CreateCaseType": { + "body": { + "type": "CaseTypeCreateRequest", + "format": "", + }, + "operationResponseType": "CaseTypeResponse", + }, + "v2.DeleteCaseType": { + "caseTypeId": { + "type": "string", + "format": "", + }, + "operationResponseType": "{}", + }, + "v2.GetAllCustomAttributes": { + "operationResponseType": "CustomAttributeConfigsResponse", + }, + "v2.GetAllCustomAttributeConfigsByCaseType": { + "caseTypeId": { + "type": "string", + "format": "", + }, + "operationResponseType": "CustomAttributeConfigsResponse", + }, + "v2.CreateCustomAttributeConfig": { + "caseTypeId": { + "type": "string", + "format": "", + }, + "body": { + "type": "CustomAttributeConfigCreateRequest", + "format": "", + }, + "operationResponseType": "CustomAttributeConfigResponse", + }, + "v2.DeleteCustomAttributeConfig": { + "caseTypeId": { + "type": "string", + "format": "", + }, + "customAttributeId": { + "type": "string", + "format": "", + }, + "operationResponseType": "{}", + }, "v2.ListCatalogEntity": { "pageOffset": { "type": "number", diff --git a/features/v2/case_management.feature b/features/v2/case_management.feature index 58c95f716688..155221b2dd3d 100644 --- a/features/v2/case_management.feature +++ b/features/v2/case_management.feature @@ -64,10 +64,36 @@ Feature: Case Management When the request is sent Then the response status is 200 OK + @team:DataDog/case-management + Scenario: Comment case returns "Bad Request" response + Given new "CommentCase" 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": {"comment": ""}, "type": "case"}} + When the request is sent + Then the response status is 400 Bad Request + + @team:DataDog/case-management + Scenario: Comment case returns "Not Found" response + Given new "CommentCase" request + And request contains "case_id" parameter with value "67d80aa3-36ff-44b9-a694-c501a7591737" + And body with value {"data": {"attributes": {"comment": "Hello world !"}, "type": "case"}} + When the request is sent + Then the response status is 404 Not Found + + @team:DataDog/case-management + Scenario: Comment case returns "OK" response + Given new "CommentCase" 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": {"comment": "Hello World !"}, "type": "case"}} + When the request is sent + Then the response status is 200 OK + @team:DataDog/case-management Scenario: Create a case returns "Bad Request" response Given new "CreateCase" request - And body with value {"data": {"attributes": {"priority": "NOT_DEFINED", "title": "Security breach investigation", "type": "STANDARD"}, "relationships": {"assignee": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "userx"}}, "project": {"data": {"id": "e555e290-ed65-49bd-ae18-8acbfcf18db7", "type": "project"}}}, "type": "case"}} + And body with value {"data": {"attributes": {"priority": "NOT_DEFINED", "title": "Security breach investigation", "type_id": "00000000-0000-0000-0000-000000000001"}, "relationships": {"assignee": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "userx"}}, "project": {"data": {"id": "e555e290-ed65-49bd-ae18-8acbfcf18db7", "type": "project"}}}, "type": "case"}} When the request is sent Then the response status is 400 Bad Request @@ -75,7 +101,7 @@ Feature: Case Management Scenario: Create a case returns "CREATED" response Given new "CreateCase" request And there is a valid "user" in the system - And body with value {"data": {"attributes": {"priority": "NOT_DEFINED", "title": "Security breach investigation in {{ unique_hash }}", "type": "STANDARD"}, "relationships": {"assignee": {"data": {"id": "{{user.data.id}}", "type": "user"} }, "project": {"data": {"id": "d4bbe1af-f36e-42f1-87c1-493ca35c320e", "type": "project"}}}, "type": "case"}} + And body with value {"data": {"attributes": {"priority": "NOT_DEFINED", "title": "Security breach investigation in {{ unique_hash }}", "type_id": "00000000-0000-0000-0000-000000000001"}, "relationships": {"assignee": {"data": {"id": "{{user.data.id}}", "type": "user"} }, "project": {"data": {"id": "d4bbe1af-f36e-42f1-87c1-493ca35c320e", "type": "project"}}}, "type": "case"}} When the request is sent Then the response status is 201 CREATED And the response "data" has field "id" @@ -83,10 +109,10 @@ Feature: Case Management And the response "data.attributes.type" is equal to "STANDARD" And the response "data.attributes.priority" is equal to "NOT_DEFINED" - @generated @skip @team:DataDog/case-management + @team:DataDog/case-management Scenario: Create a case returns "Not Found" response Given new "CreateCase" request - And body with value {"data": {"attributes": {"priority": "NOT_DEFINED", "title": "Security breach investigation", "type": "STANDARD"}, "relationships": {"assignee": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "user"}}, "project": {"data": {"id": "e555e290-ed65-49bd-ae18-8acbfcf18db7", "type": "project"}}}, "type": "case"}} + And body with value {"data": {"attributes": {"priority": "NOT_DEFINED", "title": "Security breach investigation", "type_id": "00000000-0000-0000-0000-000000000001"}, "relationships": {"assignee": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "user"}}, "project": {"data": {"id": "721074c8-63df-4d8f-a43d-ab41dd24ec35", "type": "project"}}}, "type": "case"}} When the request is sent Then the response status is 404 Not Found @@ -111,6 +137,54 @@ Feature: Case Management When the request is sent Then the response status is 404 Not Found + @skip @team:DataDog/case-management + Scenario: Delete case comment returns "Bad Request" response + Given new "DeleteCaseComment" request + And there is a valid "case" in the system + And request contains "case_id" parameter from "case.id" + And request contains "cell_id" parameter with value "not-an-uuid" + When the request is sent + Then the response status is 400 Bad Request + + @skip @team:DataDog/case-management + Scenario: Delete case comment returns "No Content" response + Given new "DeleteCaseComment" request + And there is a valid "case" in the system + And there is a valid "comment" in the system + And request contains "case_id" parameter from "case.id" + And request contains "cell_id" parameter from "comment.id" + When the request is sent + Then the response status is 204 No Content + + @team:DataDog/case-management + Scenario: Delete case comment returns "Not Found" response + Given new "DeleteCaseComment" request + And there is a valid "case" in the system + And request contains "case_id" parameter from "case.id" + And request contains "cell_id" parameter with value "23fca2aa-4967-4936-bdd7-9157d9e456d7" + When the request is sent + Then the response status is 404 Not Found + + @team:DataDog/case-management + Scenario: Delete custom attribute from case returns "Not Found" response + Given new "DeleteCaseCustomAttribute" request + And there is a valid "case" in the system + And request contains "case_id" parameter from "case.id" + And request contains "custom_attribute_key" parameter with value "invalid_key" + When the request is sent + Then the response status is 404 Not Found + + @skip @team:DataDog/case-management + Scenario: Delete custom attribute from case returns "OK" response + Given new "DeleteCaseCustomAttribute" request + And there is a valid "case_type" in the system + And there is a valid "custom_attribute" in the system + And there is a valid "case" with a custom "case_type" in the system + And request contains "case_id" parameter from "case_with_type.id" + And request contains "custom_attribute_key" parameter from "custom_attribute.attributes.key" + When the request is sent + Then the response status is 200 OK + @generated @skip @team:DataDog/case-management Scenario: Get all projects returns "Bad Request" response Given new "GetProjects" request @@ -289,6 +363,66 @@ Feature: Case Management When the request is sent Then the response status is 200 OK + @skip @team:DataDog/case-management + Scenario: Update case custom attribute returns "Bad Request" response + Given new "UpdateCaseCustomAttribute" request + And there is a valid "case_type" in the system + And there is a valid "custom_attribute" in the system + And there is a valid "case" with a custom "case_type" in the system + And request contains "case_id" parameter from "case_with_type.id" + And request contains "custom_attribute_key" parameter from "custom_attribute.attributes.key" + And body with value {"data": {"attributes": {"type": "FLOAT", "is_multi": true, "value": [1.0, 2.4]}, "type": "case"}} + When the request is sent + Then the response status is 400 Bad Request + + @team:DataDog/case-management + Scenario: Update case custom attribute returns "Not Found" response + Given new "UpdateCaseCustomAttribute" request + And there is a valid "case" in the system + And request contains "case_id" parameter from "case.id" + And request contains "custom_attribute_key" parameter with value "invalid_key" + And body with value {"data": {"attributes": {"type": "TEXT", "is_multi": true, "value": ["Abba", "The Cure"]}, "type": "case"}} + When the request is sent + Then the response status is 404 Not Found + + @skip @team:DataDog/case-management + Scenario: Update case custom attribute returns "OK" response + Given new "UpdateCaseCustomAttribute" request + And there is a valid "case_type" in the system + And there is a valid "custom_attribute" in the system + And there is a valid "case" with a custom "case_type" in the system + And request contains "case_id" parameter from "case_with_type.id" + And request contains "custom_attribute_key" parameter from "custom_attribute.attributes.key" + And body with value {"data": {"attributes": {"type": "TEXT", "is_multi": true, "value": ["Abba", "The Cure"]}, "type": "case"}} + When the request is sent + Then the response status is 200 OK + + @skip @team:DataDog/case-management + Scenario: Update case description returns "Bad Request" response + Given new "UpdateCaseDescription" 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": {"description": "Seeing some weird memory increase... We shouldn't ignore this"}, "type": "case"}} + When the request is sent + Then the response status is 400 Bad Request + + @team:DataDog/case-management + Scenario: Update case description returns "Not Found" response + Given new "UpdateCaseDescription" request + And request contains "case_id" parameter with value "0198c6b0-2a0a-7bea-87ff-3876f119aebb" + And body with value {"data": {"attributes": {"description": "Seeing some weird memory increase... We shouldn't ignore this"}, "type": "case"}} + When the request is sent + Then the response status is 404 Not Found + + @team:DataDog/case-management + Scenario: Update case description returns "OK" response + Given new "UpdateCaseDescription" 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": {"description": "Seeing some weird memory increase... Updating the description"}, "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 @@ -342,3 +476,29 @@ Feature: Case Management When the request is sent Then the response status is 200 OK And the response "data.attributes.status" is equal to "IN_PROGRESS" + + @team:DataDog/case-management + Scenario: Update case title returns "Bad Request" response + Given new "UpdateCaseTitle" 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": {"title": ""}, "type": "case"}} + When the request is sent + Then the response status is 400 Bad Request + + @team:DataDog/case-management + Scenario: Update case title returns "Not Found" response + Given new "UpdateCaseTitle" request + And request contains "case_id" parameter with value "0198c6b8-b08f-7c08-978a-d95217f2eeac" + And body with value {"data": {"attributes": {"title": "Memory leak investigation on API"}, "type": "case"}} + When the request is sent + Then the response status is 404 Not Found + + @team:DataDog/case-management + Scenario: Update case title returns "OK" response + Given new "UpdateCaseTitle" 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": {"title": "[UPDATED] Memory leak investigation on API"}, "type": "case"}} + When the request is sent + Then the response status is 200 OK diff --git a/features/v2/case_management_attribute.feature b/features/v2/case_management_attribute.feature new file mode 100644 index 000000000000..19874bff6772 --- /dev/null +++ b/features/v2/case_management_attribute.feature @@ -0,0 +1,77 @@ +@endpoint(case-management-attribute) @endpoint(case-management-attribute-v2) +Feature: Case Management Attribute + View and configure custom attributes within Case Management. See the [Case + Management + page](https://docs.datadoghq.com/service_management/case_management/) for + more information. + + Background: + Given a valid "apiKeyAuth" key in the system + And a valid "appKeyAuth" key in the system + And an instance of "CaseManagementAttribute" API + + @team:DataDog/case-management + Scenario: Create custom attribute config for a case type returns "Bad Request" response + Given new "CreateCustomAttributeConfig" request + And there is a valid "case_type" in the system + And request contains "case_type_id" parameter from "case_type.id" + And body with value {"data": {"attributes": {"display_name": "AWS Region {{uuid}}", "is_multi": true, "key": "region_{{unique_hash}}", "type": "FLOAT"}, "type": "custom_attribute"}} + When the request is sent + Then the response status is 400 Bad Request + + @team:DataDog/case-management + Scenario: Create custom attribute config for a case type returns "CREATED" response + Given new "CreateCustomAttributeConfig" request + And there is a valid "case_type" in the system + And request contains "case_type_id" parameter from "case_type.id" + And body with value {"data": {"attributes": {"display_name": "AWS Region {{uuid}}", "is_multi": true, "key": "region_{{unique_hash}}", "type": "NUMBER"}, "type": "custom_attribute"}} + When the request is sent + Then the response status is 201 CREATED + + @team:DataDog/case-management + Scenario: Create custom attribute config for a case type returns "Not Found" response + Given new "CreateCustomAttributeConfig" request + And request contains "case_type_id" parameter with value "9fd476d7-a955-454a-851d-980c655c02d3" + And body with value {"data": {"attributes": {"display_name": "AWS Region {{uuid}}", "is_multi": true, "key": "region_{{unique_hash}}", "type": "NUMBER"}, "type": "custom_attribute"}} + When the request is sent + Then the response status is 404 Not Found + + @team:DataDog/case-management + Scenario: Delete custom attributes config returns "Bad Request" response + Given new "DeleteCustomAttributeConfig" request + And there is a valid "case_type" in the system + And request contains "case_type_id" parameter from "case_type.id" + And request contains "custom_attribute_id" parameter with value "not-an-uuid" + When the request is sent + Then the response status is 400 Bad Request + + @skip @team:DataDog/case-management + Scenario: Delete custom attributes config returns "No Content" response + Given new "DeleteCustomAttributeConfig" request + And there is a valid "case_type" in the system + And there is a valid "custom_attribute" in the system + And request contains "case_type_id" parameter from "case_type.id" + And request contains "custom_attribute_id" parameter from "custom_attribute.id" + When the request is sent + Then the response status is 204 No Content + + @skip @team:DataDog/case-management + Scenario: Get all custom attributes config of case type returns "Bad Request" response + Given new "GetAllCustomAttributeConfigsByCaseType" request + And request contains "case_type_id" parameter with value "not-an-uuid" + When the request is sent + Then the response status is 400 Bad Request + + @team:DataDog/case-management + Scenario: Get all custom attributes config of case type returns "OK" response + Given new "GetAllCustomAttributeConfigsByCaseType" request + And there is a valid "case_type" in the system + And request contains "case_type_id" parameter from "case_type.id" + When the request is sent + Then the response status is 200 OK + + @team:DataDog/case-management + Scenario: Get all custom attributes returns "OK" response + Given new "GetAllCustomAttributes" request + When the request is sent + Then the response status is 200 OK diff --git a/features/v2/case_management_type.feature b/features/v2/case_management_type.feature new file mode 100644 index 000000000000..0773d7d241b5 --- /dev/null +++ b/features/v2/case_management_type.feature @@ -0,0 +1,46 @@ +@endpoint(case-management-type) @endpoint(case-management-type-v2) +Feature: Case Management Type + View and configure case types within Case Management. See the [Case + Management + page](https://docs.datadoghq.com/service_management/case_management/) for + more information. + + Background: + Given a valid "apiKeyAuth" key in the system + And a valid "appKeyAuth" key in the system + And an instance of "CaseManagementType" API + + @team:DataDog/case-management + Scenario: Create a case type returns "Bad Request" response + Given new "CreateCaseType" request + And body with value {"data": {"attributes": {"description": "Investigations done in case management", "emoji": "notanemoji", "name": "Investigation"}, "type": "case_type"}} + When the request is sent + Then the response status is 400 Bad Request + + @team:DataDog/case-management + Scenario: Create a case type returns "CREATED" response + Given new "CreateCaseType" request + And body with value {"data": {"attributes": {"description": "Investigations done in case management", "emoji": "👑", "name": "Investigation"}, "type": "case_type"}} + When the request is sent + Then the response status is 201 CREATED + + @generated @skip @team:DataDog/case-management + Scenario: Delete a case type returns "No Content" response + Given new "DeleteCaseType" request + And request contains "case_type_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 204 No Content + + @team:DataDog/case-management + Scenario: Delete a case type returns "NotContent" response + Given new "DeleteCaseType" request + And there is a valid "case_type" in the system + And request contains "case_type_id" parameter from "case_type.id" + When the request is sent + Then the response status is 204 OK + + @team:DataDog/case-management + Scenario: Get all case types returns "OK" response + Given new "GetAllCaseTypes" request + When the request is sent + Then the response status is 200 OK diff --git a/features/v2/given.json b/features/v2/given.json index 79e6d4c45d2c..a5e2a0707c79 100644 --- a/features/v2/given.json +++ b/features/v2/given.json @@ -94,7 +94,7 @@ "parameters": [ { "name": "body", - "value": "{\n \"data\": {\n \"attributes\": {\n \"title\": \"My new case\",\n \"type\": \"STANDARD\",\n \"priority\": \"P4\"\n },\n \"relationships\": {\n \"project\": {\n \"data\": {\n \"id\": \"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\n \"type\": \"project\"\n }\n }\n },\n \"type\": \"case\"\n }\n}" + "value": "{\n \"data\": {\n \"attributes\": {\n \"title\": \"My new case\",\n \"type_id\": \"00000000-0000-0000-0000-000000000001\",\n \"priority\": \"P4\"\n },\n \"relationships\": {\n \"project\": {\n \"data\": {\n \"id\": \"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\n \"type\": \"project\"\n }\n }\n },\n \"type\": \"case\"\n }\n}" } ], "source": "data", @@ -103,6 +103,66 @@ "tag": "Case Management", "operationId": "CreateCase" }, + { + "parameters": [ + { + "name": "body", + "value": "{\n \"data\": {\n \"attributes\": {\n \"title\": \"My new case\",\n \"type_id\": \"{{ case_type.id }}\",\n \"priority\": \"P4\"\n },\n \"relationships\": {\n \"project\": {\n \"data\": {\n \"id\": \"d4bbe1af-f36e-42f1-87c1-493ca35c320e\",\n \"type\": \"project\"\n }\n }\n },\n \"type\": \"case\"\n }\n}" + } + ], + "source": "data", + "step": "there is a valid \"case\" with a custom \"case_type\" in the system", + "key": "case_with_type", + "tag": "Case Management", + "operationId": "CreateCase" + }, + { + "parameters": [ + { + "name": "body", + "value": "{\n \"data\": {\n \"type\": \"case_type\",\n \"attributes\": {\n \"description\": \"Worldwide case type\",\n \"emoji\": \"\ud83c\udf0d\",\n \"name\": \"World\"\n }\n }\n}" + } + ], + "source": "data", + "step": "there is a valid \"case_type\" in the system", + "key": "case_type", + "tag": "Case Management Type", + "operationId": "CreateCaseType" + }, + { + "parameters": [ + { + "name": "case_type_id", + "source": "case_type.id" + }, + { + "name": "body", + "value": "{\n \"data\": {\n \"type\": \"custom_attribute\",\n \"attributes\": {\n \"display_name\":\"Attribute {{uuid}}\",\n \"key\":\"attribute_{{unique_hash}}\",\n \"description\":\"And its brand new description\",\n \"type\":\"TEXT\",\n \"is_multi\":true\n }\n }\n}" + } + ], + "source": "data", + "step": "there is a valid \"custom_attribute\" in the system", + "key": "custom_attribute", + "tag": "Case Management Attribute", + "operationId": "CreateCustomAttributeConfig" + }, + { + "parameters": [ + { + "name": "case_id", + "source": "case.id" + }, + { + "name": "body", + "value": "{\n \"data\": {\n \"type\": \"case\",\n \"attributes\": {\n \"comment\": \"This is my new comment !\"\n }\n }\n}" + } + ], + "source": "data[0]", + "step": "there is a valid \"comment\" in the system", + "key": "comment", + "tag": "Case Management", + "operationId": "CommentCase" + }, { "parameters": [ { diff --git a/features/v2/undo.json b/features/v2/undo.json index b3731714ef65..0b7a79b2b513 100644 --- a/features/v2/undo.json +++ b/features/v2/undo.json @@ -434,6 +434,55 @@ "type": "safe" } }, + "GetAllCaseTypes": { + "tag": "Case Management Type", + "undo": { + "type": "safe" + } + }, + "CreateCaseType": { + "tag": "Case Management Type", + "undo": { + "operationId": "DeleteCaseType", + "parameters": [ + { + "name": "case_type_id", + "source": "data.id" + } + ], + "type": "unsafe" + } + }, + "GetAllCustomAttributes": { + "tag": "Case Management Attribute", + "undo": { + "type": "safe" + } + }, + "DeleteCaseType": { + "tag": "Case Management Type", + "undo": { + "type": "idempotent" + } + }, + "GetAllCustomAttributeConfigsByCaseType": { + "tag": "Case Management Attribute", + "undo": { + "type": "safe" + } + }, + "CreateCustomAttributeConfig": { + "tag": "Case Management Attribute", + "undo": { + "type": "safe" + } + }, + "DeleteCustomAttributeConfig": { + "tag": "Case Management Attribute", + "undo": { + "type": "idempotent" + } + }, "GetCase": { "tag": "Case Management", "undo": { @@ -458,6 +507,36 @@ "type": "idempotent" } }, + "CommentCase": { + "tag": "Case Management", + "undo": { + "type": "safe" + } + }, + "DeleteCaseComment": { + "tag": "Case Management", + "undo": { + "type": "idempotent" + } + }, + "DeleteCaseCustomAttribute": { + "tag": "Case Management", + "undo": { + "type": "idempotent" + } + }, + "UpdateCaseCustomAttribute": { + "tag": "Case Management", + "undo": { + "type": "idempotent" + } + }, + "UpdateCaseDescription": { + "tag": "Case Management", + "undo": { + "type": "idempotent" + } + }, "UpdatePriority": { "tag": "Case Management", "undo": { @@ -470,6 +549,12 @@ "type": "idempotent" } }, + "UpdateCaseTitle": { + "tag": "Case Management", + "undo": { + "type": "idempotent" + } + }, "UnarchiveCase": { "tag": "Case Management", "undo": { diff --git a/packages/datadog-api-client-v2/apis/CaseManagementApi.ts b/packages/datadog-api-client-v2/apis/CaseManagementApi.ts index 4cf6ef2abcad..55812212743f 100644 --- a/packages/datadog-api-client-v2/apis/CaseManagementApi.ts +++ b/packages/datadog-api-client-v2/apis/CaseManagementApi.ts @@ -19,17 +19,22 @@ import { ApiException } from "../../datadog-api-client-common/exception"; import { APIErrorResponse } from "../models/APIErrorResponse"; import { Case } from "../models/Case"; import { CaseAssignRequest } from "../models/CaseAssignRequest"; +import { CaseCommentRequest } from "../models/CaseCommentRequest"; import { CaseCreateRequest } from "../models/CaseCreateRequest"; import { CaseEmptyRequest } from "../models/CaseEmptyRequest"; import { CaseResponse } from "../models/CaseResponse"; import { CaseSortableField } from "../models/CaseSortableField"; import { CasesResponse } from "../models/CasesResponse"; import { CaseUpdateAttributesRequest } from "../models/CaseUpdateAttributesRequest"; +import { CaseUpdateCustomAttributeRequest } from "../models/CaseUpdateCustomAttributeRequest"; +import { CaseUpdateDescriptionRequest } from "../models/CaseUpdateDescriptionRequest"; import { CaseUpdatePriorityRequest } from "../models/CaseUpdatePriorityRequest"; import { CaseUpdateStatusRequest } from "../models/CaseUpdateStatusRequest"; +import { CaseUpdateTitleRequest } from "../models/CaseUpdateTitleRequest"; import { ProjectCreateRequest } from "../models/ProjectCreateRequest"; import { ProjectResponse } from "../models/ProjectResponse"; import { ProjectsResponse } from "../models/ProjectsResponse"; +import { TimelineResponse } from "../models/TimelineResponse"; export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { public async archiveCase( @@ -134,6 +139,56 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + public async commentCase( + caseId: string, + body: CaseCommentRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'caseId' is not null or undefined + if (caseId === null || caseId === undefined) { + throw new RequiredError("caseId", "commentCase"); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "commentCase"); + } + + // Path Params + const localVarPath = "/api/v2/cases/{case_id}/comment".replace( + "{case_id}", + encodeURIComponent(String(caseId)) + ); + + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.commentCase") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "CaseCommentRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + public async createCase( body: CaseCreateRequest, _options?: Configuration @@ -218,6 +273,90 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + public async deleteCaseComment( + caseId: string, + cellId: string, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'caseId' is not null or undefined + if (caseId === null || caseId === undefined) { + throw new RequiredError("caseId", "deleteCaseComment"); + } + + // verify required parameter 'cellId' is not null or undefined + if (cellId === null || cellId === undefined) { + throw new RequiredError("cellId", "deleteCaseComment"); + } + + // Path Params + const localVarPath = "/api/v2/cases/{case_id}/comment/{cell_id}" + .replace("{case_id}", encodeURIComponent(String(caseId))) + .replace("{cell_id}", encodeURIComponent(String(cellId))); + + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.deleteCaseComment") + .makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + + public async deleteCaseCustomAttribute( + caseId: string, + customAttributeKey: string, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'caseId' is not null or undefined + if (caseId === null || caseId === undefined) { + throw new RequiredError("caseId", "deleteCaseCustomAttribute"); + } + + // verify required parameter 'customAttributeKey' is not null or undefined + if (customAttributeKey === null || customAttributeKey === undefined) { + throw new RequiredError( + "customAttributeKey", + "deleteCaseCustomAttribute" + ); + } + + // Path Params + const localVarPath = + "/api/v2/cases/{case_id}/custom_attributes/{custom_attribute_key}" + .replace("{case_id}", encodeURIComponent(String(caseId))) + .replace( + "{custom_attribute_key}", + encodeURIComponent(String(customAttributeKey)) + ); + + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.deleteCaseCustomAttribute") + .makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + "AuthZ", + ]); + + return requestContext; + } + public async deleteProject( projectId: string, _options?: Configuration @@ -563,6 +702,171 @@ export class CaseManagementApiRequestFactory extends BaseAPIRequestFactory { return requestContext; } + public async updateCaseCustomAttribute( + caseId: string, + customAttributeKey: string, + body: CaseUpdateCustomAttributeRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'caseId' is not null or undefined + if (caseId === null || caseId === undefined) { + throw new RequiredError("caseId", "updateCaseCustomAttribute"); + } + + // verify required parameter 'customAttributeKey' is not null or undefined + if (customAttributeKey === null || customAttributeKey === undefined) { + throw new RequiredError( + "customAttributeKey", + "updateCaseCustomAttribute" + ); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "updateCaseCustomAttribute"); + } + + // Path Params + const localVarPath = + "/api/v2/cases/{case_id}/custom_attributes/{custom_attribute_key}" + .replace("{case_id}", encodeURIComponent(String(caseId))) + .replace( + "{custom_attribute_key}", + encodeURIComponent(String(customAttributeKey)) + ); + + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.updateCaseCustomAttribute") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "CaseUpdateCustomAttributeRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + "AuthZ", + ]); + + return requestContext; + } + + public async updateCaseDescription( + caseId: string, + body: CaseUpdateDescriptionRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'caseId' is not null or undefined + if (caseId === null || caseId === undefined) { + throw new RequiredError("caseId", "updateCaseDescription"); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "updateCaseDescription"); + } + + // Path Params + const localVarPath = "/api/v2/cases/{case_id}/description".replace( + "{case_id}", + encodeURIComponent(String(caseId)) + ); + + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.updateCaseDescription") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "CaseUpdateDescriptionRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + "AuthZ", + ]); + + return requestContext; + } + + public async updateCaseTitle( + caseId: string, + body: CaseUpdateTitleRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'caseId' is not null or undefined + if (caseId === null || caseId === undefined) { + throw new RequiredError("caseId", "updateCaseTitle"); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "updateCaseTitle"); + } + + // Path Params + const localVarPath = "/api/v2/cases/{case_id}/title".replace( + "{case_id}", + encodeURIComponent(String(caseId)) + ); + + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementApi.updateCaseTitle") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "CaseUpdateTitleRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + "AuthZ", + ]); + + return requestContext; + } + public async updatePriority( caseId: string, body: CaseUpdatePriorityRequest, @@ -795,18 +1099,20 @@ export class CaseManagementApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to createCase + * @params response Response returned by the server for a request to commentCase * @throws ApiException if the response code was not in [200, 299] */ - public async createCase(response: ResponseContext): Promise { + public async commentCase( + response: ResponseContext + ): Promise { const contentType = ObjectSerializer.normalizeMediaType( response.headers["content-type"] ); - if (response.httpStatusCode === 201) { - const body: CaseResponse = ObjectSerializer.deserialize( + if (response.httpStatusCode === 200) { + const body: TimelineResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CaseResponse" - ) as CaseResponse; + "TimelineResponse" + ) as TimelineResponse; return body; } if ( @@ -838,11 +1144,11 @@ export class CaseManagementApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: CaseResponse = ObjectSerializer.deserialize( + const body: TimelineResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CaseResponse", + "TimelineResponse", "" - ) as CaseResponse; + ) as TimelineResponse; return body; } @@ -857,20 +1163,82 @@ export class CaseManagementApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to createProject + * @params response Response returned by the server for a request to createCase * @throws ApiException if the response code was not in [200, 299] */ - public async createProject( - response: ResponseContext - ): Promise { + public async createCase(response: ResponseContext): Promise { const contentType = ObjectSerializer.normalizeMediaType( response.headers["content-type"] ); if (response.httpStatusCode === 201) { - const body: ProjectResponse = ObjectSerializer.deserialize( + const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ProjectResponse" - ) as ProjectResponse; + "CaseResponse" + ) as CaseResponse; + return body; + } + if ( + response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429 + ) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: CaseResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CaseResponse", + "" + ) as CaseResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createProject + * @throws ApiException if the response code was not in [200, 299] + */ + public async createProject( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 201) { + const body: ProjectResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ProjectResponse" + ) as ProjectResponse; return body; } if ( @@ -917,6 +1285,122 @@ export class CaseManagementApiResponseProcessor { ); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCaseComment + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCaseComment(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 204) { + return; + } + if ( + response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429 + ) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + return; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCaseCustomAttribute + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCaseCustomAttribute( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: CaseResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CaseResponse" + ) as CaseResponse; + return body; + } + if ( + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429 + ) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: CaseResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CaseResponse", + "" + ) as CaseResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -928,10 +1412,193 @@ export class CaseManagementApiResponseProcessor { const contentType = ObjectSerializer.normalizeMediaType( response.headers["content-type"] ); - if (response.httpStatusCode === 204) { - return; + if (response.httpStatusCode === 204) { + return; + } + if ( + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429 + ) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + return; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getCase + * @throws ApiException if the response code was not in [200, 299] + */ + public async getCase(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: CaseResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CaseResponse" + ) as CaseResponse; + return body; + } + if ( + response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429 + ) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: CaseResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CaseResponse", + "" + ) as CaseResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getProject + * @throws ApiException if the response code was not in [200, 299] + */ + public async getProject(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: ProjectResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ProjectResponse" + ) as ProjectResponse; + return body; + } + if ( + response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429 + ) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ProjectResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ProjectResponse", + "" + ) as ProjectResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getProjects + * @throws ApiException if the response code was not in [200, 299] + */ + public async getProjects( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: ProjectsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ProjectsResponse" + ) as ProjectsResponse; + return body; } if ( + response.httpStatusCode === 400 || + response.httpStatusCode === 401 || response.httpStatusCode === 403 || response.httpStatusCode === 404 || response.httpStatusCode === 429 @@ -958,7 +1625,12 @@ export class CaseManagementApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - return; + const body: ProjectsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ProjectsResponse", + "" + ) as ProjectsResponse; + return body; } const body = (await response.body.text()) || ""; @@ -972,18 +1644,18 @@ export class CaseManagementApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getCase + * @params response Response returned by the server for a request to searchCases * @throws ApiException if the response code was not in [200, 299] */ - public async getCase(response: ResponseContext): Promise { + public async searchCases(response: ResponseContext): Promise { const contentType = ObjectSerializer.normalizeMediaType( response.headers["content-type"] ); if (response.httpStatusCode === 200) { - const body: CaseResponse = ObjectSerializer.deserialize( + const body: CasesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CaseResponse" - ) as CaseResponse; + "CasesResponse" + ) as CasesResponse; return body; } if ( @@ -1015,11 +1687,11 @@ export class CaseManagementApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: CaseResponse = ObjectSerializer.deserialize( + const body: CasesResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CaseResponse", + "CasesResponse", "" - ) as CaseResponse; + ) as CasesResponse; return body; } @@ -1034,18 +1706,18 @@ export class CaseManagementApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getProject + * @params response Response returned by the server for a request to unarchiveCase * @throws ApiException if the response code was not in [200, 299] */ - public async getProject(response: ResponseContext): Promise { + public async unarchiveCase(response: ResponseContext): Promise { const contentType = ObjectSerializer.normalizeMediaType( response.headers["content-type"] ); if (response.httpStatusCode === 200) { - const body: ProjectResponse = ObjectSerializer.deserialize( + const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ProjectResponse" - ) as ProjectResponse; + "CaseResponse" + ) as CaseResponse; return body; } if ( @@ -1077,11 +1749,11 @@ export class CaseManagementApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: ProjectResponse = ObjectSerializer.deserialize( + const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ProjectResponse", + "CaseResponse", "" - ) as ProjectResponse; + ) as CaseResponse; return body; } @@ -1096,20 +1768,18 @@ export class CaseManagementApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to getProjects + * @params response Response returned by the server for a request to unassignCase * @throws ApiException if the response code was not in [200, 299] */ - public async getProjects( - response: ResponseContext - ): Promise { + public async unassignCase(response: ResponseContext): Promise { const contentType = ObjectSerializer.normalizeMediaType( response.headers["content-type"] ); if (response.httpStatusCode === 200) { - const body: ProjectsResponse = ObjectSerializer.deserialize( + const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ProjectsResponse" - ) as ProjectsResponse; + "CaseResponse" + ) as CaseResponse; return body; } if ( @@ -1141,11 +1811,11 @@ export class CaseManagementApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: ProjectsResponse = ObjectSerializer.deserialize( + const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "ProjectsResponse", + "CaseResponse", "" - ) as ProjectsResponse; + ) as CaseResponse; return body; } @@ -1160,18 +1830,20 @@ export class CaseManagementApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to searchCases + * @params response Response returned by the server for a request to updateAttributes * @throws ApiException if the response code was not in [200, 299] */ - public async searchCases(response: ResponseContext): Promise { + public async updateAttributes( + response: ResponseContext + ): Promise { const contentType = ObjectSerializer.normalizeMediaType( response.headers["content-type"] ); if (response.httpStatusCode === 200) { - const body: CasesResponse = ObjectSerializer.deserialize( + const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CasesResponse" - ) as CasesResponse; + "CaseResponse" + ) as CaseResponse; return body; } if ( @@ -1203,11 +1875,11 @@ export class CaseManagementApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - const body: CasesResponse = ObjectSerializer.deserialize( + const body: CaseResponse = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), - "CasesResponse", + "CaseResponse", "" - ) as CasesResponse; + ) as CaseResponse; return body; } @@ -1222,10 +1894,12 @@ export class CaseManagementApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to unarchiveCase + * @params response Response returned by the server for a request to updateCaseCustomAttribute * @throws ApiException if the response code was not in [200, 299] */ - public async unarchiveCase(response: ResponseContext): Promise { + public async updateCaseCustomAttribute( + response: ResponseContext + ): Promise { const contentType = ObjectSerializer.normalizeMediaType( response.headers["content-type"] ); @@ -1284,10 +1958,12 @@ export class CaseManagementApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to unassignCase + * @params response Response returned by the server for a request to updateCaseDescription * @throws ApiException if the response code was not in [200, 299] */ - public async unassignCase(response: ResponseContext): Promise { + public async updateCaseDescription( + response: ResponseContext + ): Promise { const contentType = ObjectSerializer.normalizeMediaType( response.headers["content-type"] ); @@ -1346,10 +2022,10 @@ export class CaseManagementApiResponseProcessor { * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * - * @params response Response returned by the server for a request to updateAttributes + * @params response Response returned by the server for a request to updateCaseTitle * @throws ApiException if the response code was not in [200, 299] */ - public async updateAttributes( + public async updateCaseTitle( response: ResponseContext ): Promise { const contentType = ObjectSerializer.normalizeMediaType( @@ -1559,6 +2235,19 @@ export interface CaseManagementApiAssignCaseRequest { body: CaseAssignRequest; } +export interface CaseManagementApiCommentCaseRequest { + /** + * Case's UUID or key + * @type string + */ + caseId: string; + /** + * Case comment payload + * @type CaseCommentRequest + */ + body: CaseCommentRequest; +} + export interface CaseManagementApiCreateCaseRequest { /** * Case payload @@ -1575,6 +2264,32 @@ export interface CaseManagementApiCreateProjectRequest { body: ProjectCreateRequest; } +export interface CaseManagementApiDeleteCaseCommentRequest { + /** + * Case's UUID or key + * @type string + */ + caseId: string; + /** + * Timeline cell's UUID + * @type string + */ + cellId: string; +} + +export interface CaseManagementApiDeleteCaseCustomAttributeRequest { + /** + * Case's UUID or key + * @type string + */ + caseId: string; + /** + * Case Custom attribute's key + * @type string + */ + customAttributeKey: string; +} + export interface CaseManagementApiDeleteProjectRequest { /** * Project UUID @@ -1666,6 +2381,50 @@ export interface CaseManagementApiUpdateAttributesRequest { body: CaseUpdateAttributesRequest; } +export interface CaseManagementApiUpdateCaseCustomAttributeRequest { + /** + * Case's UUID or key + * @type string + */ + caseId: string; + /** + * Case Custom attribute's key + * @type string + */ + customAttributeKey: string; + /** + * Update case custom attribute payload + * @type CaseUpdateCustomAttributeRequest + */ + body: CaseUpdateCustomAttributeRequest; +} + +export interface CaseManagementApiUpdateCaseDescriptionRequest { + /** + * Case's UUID or key + * @type string + */ + caseId: string; + /** + * Case description update payload + * @type CaseUpdateDescriptionRequest + */ + body: CaseUpdateDescriptionRequest; +} + +export interface CaseManagementApiUpdateCaseTitleRequest { + /** + * Case's UUID or key + * @type string + */ + caseId: string; + /** + * Case title update payload + * @type CaseUpdateTitleRequest + */ + body: CaseUpdateTitleRequest; +} + export interface CaseManagementApiUpdatePriorityRequest { /** * Case's UUID or key @@ -1753,6 +2512,28 @@ export class CaseManagementApi { }); } + /** + * Comment case + * @param param The request object + */ + public commentCase( + param: CaseManagementApiCommentCaseRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.commentCase( + param.caseId, + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.commentCase(responseContext); + }); + }); + } + /** * Create a Case * @param param The request object @@ -1795,6 +2576,52 @@ export class CaseManagementApi { }); } + /** + * Delete case comment + * @param param The request object + */ + public deleteCaseComment( + param: CaseManagementApiDeleteCaseCommentRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.deleteCaseComment( + param.caseId, + param.cellId, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteCaseComment(responseContext); + }); + }); + } + + /** + * Delete custom attribute from case + * @param param The request object + */ + public deleteCaseCustomAttribute( + param: CaseManagementApiDeleteCaseCustomAttributeRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.deleteCaseCustomAttribute( + param.caseId, + param.customAttributeKey, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteCaseCustomAttribute( + responseContext + ); + }); + }); + } + /** * Remove a project using the project's `id`. * @param param The request object @@ -2008,6 +2835,75 @@ export class CaseManagementApi { }); } + /** + * Update case custom attribute + * @param param The request object + */ + public updateCaseCustomAttribute( + param: CaseManagementApiUpdateCaseCustomAttributeRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.updateCaseCustomAttribute( + param.caseId, + param.customAttributeKey, + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateCaseCustomAttribute( + responseContext + ); + }); + }); + } + + /** + * Update case description + * @param param The request object + */ + public updateCaseDescription( + param: CaseManagementApiUpdateCaseDescriptionRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.updateCaseDescription( + param.caseId, + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateCaseDescription(responseContext); + }); + }); + } + + /** + * Update case title + * @param param The request object + */ + public updateCaseTitle( + param: CaseManagementApiUpdateCaseTitleRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.updateCaseTitle( + param.caseId, + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.updateCaseTitle(responseContext); + }); + }); + } + /** * Update case priority * @param param The request object diff --git a/packages/datadog-api-client-v2/apis/CaseManagementAttributeApi.ts b/packages/datadog-api-client-v2/apis/CaseManagementAttributeApi.ts new file mode 100644 index 000000000000..7f4b894ddb48 --- /dev/null +++ b/packages/datadog-api-client-v2/apis/CaseManagementAttributeApi.ts @@ -0,0 +1,577 @@ +import { + BaseAPIRequestFactory, + RequiredError, +} from "../../datadog-api-client-common/baseapi"; +import { + Configuration, + applySecurityAuthentication, +} from "../../datadog-api-client-common/configuration"; +import { + RequestContext, + HttpMethod, + ResponseContext, +} from "../../datadog-api-client-common/http/http"; + +import { logger } from "../../../logger"; +import { ObjectSerializer } from "../models/ObjectSerializer"; +import { ApiException } from "../../datadog-api-client-common/exception"; + +import { APIErrorResponse } from "../models/APIErrorResponse"; +import { CustomAttributeConfigCreateRequest } from "../models/CustomAttributeConfigCreateRequest"; +import { CustomAttributeConfigResponse } from "../models/CustomAttributeConfigResponse"; +import { CustomAttributeConfigsResponse } from "../models/CustomAttributeConfigsResponse"; + +export class CaseManagementAttributeApiRequestFactory extends BaseAPIRequestFactory { + public async createCustomAttributeConfig( + caseTypeId: string, + body: CustomAttributeConfigCreateRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'caseTypeId' is not null or undefined + if (caseTypeId === null || caseTypeId === undefined) { + throw new RequiredError("caseTypeId", "createCustomAttributeConfig"); + } + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "createCustomAttributeConfig"); + } + + // Path Params + const localVarPath = + "/api/v2/cases/types/{case_type_id}/custom_attributes".replace( + "{case_type_id}", + encodeURIComponent(String(caseTypeId)) + ); + + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementAttributeApi.createCustomAttributeConfig") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize( + body, + "CustomAttributeConfigCreateRequest", + "" + ), + contentType + ); + requestContext.setBody(serializedBody); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + + public async deleteCustomAttributeConfig( + caseTypeId: string, + customAttributeId: string, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'caseTypeId' is not null or undefined + if (caseTypeId === null || caseTypeId === undefined) { + throw new RequiredError("caseTypeId", "deleteCustomAttributeConfig"); + } + + // verify required parameter 'customAttributeId' is not null or undefined + if (customAttributeId === null || customAttributeId === undefined) { + throw new RequiredError( + "customAttributeId", + "deleteCustomAttributeConfig" + ); + } + + // Path Params + const localVarPath = + "/api/v2/cases/types/{case_type_id}/custom_attributes/{custom_attribute_id}" + .replace("{case_type_id}", encodeURIComponent(String(caseTypeId))) + .replace( + "{custom_attribute_id}", + encodeURIComponent(String(customAttributeId)) + ); + + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementAttributeApi.deleteCustomAttributeConfig") + .makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + + public async getAllCustomAttributeConfigsByCaseType( + caseTypeId: string, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'caseTypeId' is not null or undefined + if (caseTypeId === null || caseTypeId === undefined) { + throw new RequiredError( + "caseTypeId", + "getAllCustomAttributeConfigsByCaseType" + ); + } + + // Path Params + const localVarPath = + "/api/v2/cases/types/{case_type_id}/custom_attributes".replace( + "{case_type_id}", + encodeURIComponent(String(caseTypeId)) + ); + + // Make Request Context + const requestContext = _config + .getServer( + "v2.CaseManagementAttributeApi.getAllCustomAttributeConfigsByCaseType" + ) + .makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + + public async getAllCustomAttributes( + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // Path Params + const localVarPath = "/api/v2/cases/types/custom_attributes"; + + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementAttributeApi.getAllCustomAttributes") + .makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } +} + +export class CaseManagementAttributeApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createCustomAttributeConfig + * @throws ApiException if the response code was not in [200, 299] + */ + public async createCustomAttributeConfig( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 201) { + const body: CustomAttributeConfigResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CustomAttributeConfigResponse" + ) as CustomAttributeConfigResponse; + return body; + } + if ( + response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 404 || + response.httpStatusCode === 429 + ) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: CustomAttributeConfigResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CustomAttributeConfigResponse", + "" + ) as CustomAttributeConfigResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCustomAttributeConfig + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCustomAttributeConfig( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 204) { + return; + } + if ( + response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429 + ) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + return; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getAllCustomAttributeConfigsByCaseType + * @throws ApiException if the response code was not in [200, 299] + */ + public async getAllCustomAttributeConfigsByCaseType( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: CustomAttributeConfigsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CustomAttributeConfigsResponse" + ) as CustomAttributeConfigsResponse; + return body; + } + if ( + response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429 + ) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: CustomAttributeConfigsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CustomAttributeConfigsResponse", + "" + ) as CustomAttributeConfigsResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getAllCustomAttributes + * @throws ApiException if the response code was not in [200, 299] + */ + public async getAllCustomAttributes( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: CustomAttributeConfigsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CustomAttributeConfigsResponse" + ) as CustomAttributeConfigsResponse; + return body; + } + if ( + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429 + ) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: CustomAttributeConfigsResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CustomAttributeConfigsResponse", + "" + ) as CustomAttributeConfigsResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } +} + +export interface CaseManagementAttributeApiCreateCustomAttributeConfigRequest { + /** + * Case type's UUID + * @type string + */ + caseTypeId: string; + /** + * Custom attribute config payload + * @type CustomAttributeConfigCreateRequest + */ + body: CustomAttributeConfigCreateRequest; +} + +export interface CaseManagementAttributeApiDeleteCustomAttributeConfigRequest { + /** + * Case type's UUID + * @type string + */ + caseTypeId: string; + /** + * Case Custom attribute's UUID + * @type string + */ + customAttributeId: string; +} + +export interface CaseManagementAttributeApiGetAllCustomAttributeConfigsByCaseTypeRequest { + /** + * Case type's UUID + * @type string + */ + caseTypeId: string; +} + +export class CaseManagementAttributeApi { + private requestFactory: CaseManagementAttributeApiRequestFactory; + private responseProcessor: CaseManagementAttributeApiResponseProcessor; + private configuration: Configuration; + + public constructor( + configuration: Configuration, + requestFactory?: CaseManagementAttributeApiRequestFactory, + responseProcessor?: CaseManagementAttributeApiResponseProcessor + ) { + this.configuration = configuration; + this.requestFactory = + requestFactory || + new CaseManagementAttributeApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new CaseManagementAttributeApiResponseProcessor(); + } + + /** + * Create custom attribute config for a case type + * @param param The request object + */ + public createCustomAttributeConfig( + param: CaseManagementAttributeApiCreateCustomAttributeConfigRequest, + options?: Configuration + ): Promise { + const requestContextPromise = + this.requestFactory.createCustomAttributeConfig( + param.caseTypeId, + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createCustomAttributeConfig( + responseContext + ); + }); + }); + } + + /** + * Delete custom attribute config + * @param param The request object + */ + public deleteCustomAttributeConfig( + param: CaseManagementAttributeApiDeleteCustomAttributeConfigRequest, + options?: Configuration + ): Promise { + const requestContextPromise = + this.requestFactory.deleteCustomAttributeConfig( + param.caseTypeId, + param.customAttributeId, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteCustomAttributeConfig( + responseContext + ); + }); + }); + } + + /** + * Get all custom attribute config of case type + * @param param The request object + */ + public getAllCustomAttributeConfigsByCaseType( + param: CaseManagementAttributeApiGetAllCustomAttributeConfigsByCaseTypeRequest, + options?: Configuration + ): Promise { + const requestContextPromise = + this.requestFactory.getAllCustomAttributeConfigsByCaseType( + param.caseTypeId, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getAllCustomAttributeConfigsByCaseType( + responseContext + ); + }); + }); + } + + /** + * Get all custom attributes + * @param param The request object + */ + public getAllCustomAttributes( + options?: Configuration + ): Promise { + const requestContextPromise = + this.requestFactory.getAllCustomAttributes(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getAllCustomAttributes(responseContext); + }); + }); + } +} diff --git a/packages/datadog-api-client-v2/apis/CaseManagementTypeApi.ts b/packages/datadog-api-client-v2/apis/CaseManagementTypeApi.ts new file mode 100644 index 000000000000..073b75bdcb27 --- /dev/null +++ b/packages/datadog-api-client-v2/apis/CaseManagementTypeApi.ts @@ -0,0 +1,391 @@ +import { + BaseAPIRequestFactory, + RequiredError, +} from "../../datadog-api-client-common/baseapi"; +import { + Configuration, + applySecurityAuthentication, +} from "../../datadog-api-client-common/configuration"; +import { + RequestContext, + HttpMethod, + ResponseContext, +} from "../../datadog-api-client-common/http/http"; + +import { logger } from "../../../logger"; +import { ObjectSerializer } from "../models/ObjectSerializer"; +import { ApiException } from "../../datadog-api-client-common/exception"; + +import { APIErrorResponse } from "../models/APIErrorResponse"; +import { CaseTypeCreateRequest } from "../models/CaseTypeCreateRequest"; +import { CaseTypeResponse } from "../models/CaseTypeResponse"; +import { CaseTypesResponse } from "../models/CaseTypesResponse"; + +export class CaseManagementTypeApiRequestFactory extends BaseAPIRequestFactory { + public async createCaseType( + body: CaseTypeCreateRequest, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'body' is not null or undefined + if (body === null || body === undefined) { + throw new RequiredError("body", "createCaseType"); + } + + // Path Params + const localVarPath = "/api/v2/cases/types"; + + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementTypeApi.createCaseType") + .makeRequestContext(localVarPath, HttpMethod.POST); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Body Params + const contentType = ObjectSerializer.getPreferredMediaType([ + "application/json", + ]); + requestContext.setHeaderParam("Content-Type", contentType); + const serializedBody = ObjectSerializer.stringify( + ObjectSerializer.serialize(body, "CaseTypeCreateRequest", ""), + contentType + ); + requestContext.setBody(serializedBody); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + + public async deleteCaseType( + caseTypeId: string, + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // verify required parameter 'caseTypeId' is not null or undefined + if (caseTypeId === null || caseTypeId === undefined) { + throw new RequiredError("caseTypeId", "deleteCaseType"); + } + + // Path Params + const localVarPath = "/api/v2/cases/types/{case_type_id}".replace( + "{case_type_id}", + encodeURIComponent(String(caseTypeId)) + ); + + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementTypeApi.deleteCaseType") + .makeRequestContext(localVarPath, HttpMethod.DELETE); + requestContext.setHeaderParam("Accept", "*/*"); + requestContext.setHttpConfig(_config.httpConfig); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } + + public async getAllCaseTypes( + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // Path Params + const localVarPath = "/api/v2/cases/types"; + + // Make Request Context + const requestContext = _config + .getServer("v2.CaseManagementTypeApi.getAllCaseTypes") + .makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + ]); + + return requestContext; + } +} + +export class CaseManagementTypeApiResponseProcessor { + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to createCaseType + * @throws ApiException if the response code was not in [200, 299] + */ + public async createCaseType( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 201) { + const body: CaseTypeResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CaseTypeResponse" + ) as CaseTypeResponse; + return body; + } + if ( + response.httpStatusCode === 400 || + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429 + ) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: CaseTypeResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CaseTypeResponse", + "" + ) as CaseTypeResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to deleteCaseType + * @throws ApiException if the response code was not in [200, 299] + */ + public async deleteCaseType(response: ResponseContext): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 204) { + return; + } + if ( + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429 + ) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + return; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to getAllCaseTypes + * @throws ApiException if the response code was not in [200, 299] + */ + public async getAllCaseTypes( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: CaseTypesResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CaseTypesResponse" + ) as CaseTypesResponse; + return body; + } + if ( + response.httpStatusCode === 401 || + response.httpStatusCode === 403 || + response.httpStatusCode === 429 + ) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: CaseTypesResponse = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "CaseTypesResponse", + "" + ) as CaseTypesResponse; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } +} + +export interface CaseManagementTypeApiCreateCaseTypeRequest { + /** + * Case type payload + * @type CaseTypeCreateRequest + */ + body: CaseTypeCreateRequest; +} + +export interface CaseManagementTypeApiDeleteCaseTypeRequest { + /** + * Case type's UUID + * @type string + */ + caseTypeId: string; +} + +export class CaseManagementTypeApi { + private requestFactory: CaseManagementTypeApiRequestFactory; + private responseProcessor: CaseManagementTypeApiResponseProcessor; + private configuration: Configuration; + + public constructor( + configuration: Configuration, + requestFactory?: CaseManagementTypeApiRequestFactory, + responseProcessor?: CaseManagementTypeApiResponseProcessor + ) { + this.configuration = configuration; + this.requestFactory = + requestFactory || new CaseManagementTypeApiRequestFactory(configuration); + this.responseProcessor = + responseProcessor || new CaseManagementTypeApiResponseProcessor(); + } + + /** + * Create a Case Type + * @param param The request object + */ + public createCaseType( + param: CaseManagementTypeApiCreateCaseTypeRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.createCaseType( + param.body, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.createCaseType(responseContext); + }); + }); + } + + /** + * Delete a case type + * @param param The request object + */ + public deleteCaseType( + param: CaseManagementTypeApiDeleteCaseTypeRequest, + options?: Configuration + ): Promise { + const requestContextPromise = this.requestFactory.deleteCaseType( + param.caseTypeId, + options + ); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.deleteCaseType(responseContext); + }); + }); + } + + /** + * Get all case types + * @param param The request object + */ + public getAllCaseTypes(options?: Configuration): Promise { + const requestContextPromise = this.requestFactory.getAllCaseTypes(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.getAllCaseTypes(responseContext); + }); + }); + } +} diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index dd08ae93d91f..6e84b7e954fb 100644 --- a/packages/datadog-api-client-v2/index.ts +++ b/packages/datadog-api-client-v2/index.ts @@ -131,8 +131,11 @@ export { export { CaseManagementApiArchiveCaseRequest, CaseManagementApiAssignCaseRequest, + CaseManagementApiCommentCaseRequest, CaseManagementApiCreateCaseRequest, CaseManagementApiCreateProjectRequest, + CaseManagementApiDeleteCaseCommentRequest, + CaseManagementApiDeleteCaseCustomAttributeRequest, CaseManagementApiDeleteProjectRequest, CaseManagementApiGetCaseRequest, CaseManagementApiGetProjectRequest, @@ -140,11 +143,27 @@ export { CaseManagementApiUnarchiveCaseRequest, CaseManagementApiUnassignCaseRequest, CaseManagementApiUpdateAttributesRequest, + CaseManagementApiUpdateCaseCustomAttributeRequest, + CaseManagementApiUpdateCaseDescriptionRequest, + CaseManagementApiUpdateCaseTitleRequest, CaseManagementApiUpdatePriorityRequest, CaseManagementApiUpdateStatusRequest, CaseManagementApi, } from "./apis/CaseManagementApi"; +export { + CaseManagementAttributeApiCreateCustomAttributeConfigRequest, + CaseManagementAttributeApiDeleteCustomAttributeConfigRequest, + CaseManagementAttributeApiGetAllCustomAttributeConfigsByCaseTypeRequest, + CaseManagementAttributeApi, +} from "./apis/CaseManagementAttributeApi"; + +export { + CaseManagementTypeApiCreateCaseTypeRequest, + CaseManagementTypeApiDeleteCaseTypeRequest, + CaseManagementTypeApi, +} from "./apis/CaseManagementTypeApi"; + export { CloudCostManagementApiCreateCostAWSCURConfigRequest, CloudCostManagementApiCreateCostAzureUCConfigsRequest, @@ -1106,6 +1125,9 @@ export { CaseAssign } from "./models/CaseAssign"; export { CaseAssignAttributes } from "./models/CaseAssignAttributes"; export { CaseAssignRequest } from "./models/CaseAssignRequest"; export { CaseAttributes } from "./models/CaseAttributes"; +export { CaseComment } from "./models/CaseComment"; +export { CaseCommentAttributes } from "./models/CaseCommentAttributes"; +export { CaseCommentRequest } from "./models/CaseCommentRequest"; export { CaseCreate } from "./models/CaseCreate"; export { CaseCreateAttributes } from "./models/CaseCreateAttributes"; export { CaseCreateRelationships } from "./models/CaseCreateRelationships"; @@ -1124,15 +1146,30 @@ export { CaseStatus } from "./models/CaseStatus"; export { CaseTrigger } from "./models/CaseTrigger"; export { CaseTriggerWrapper } from "./models/CaseTriggerWrapper"; export { CaseType } from "./models/CaseType"; +export { CaseTypeCreate } from "./models/CaseTypeCreate"; +export { CaseTypeCreateRequest } from "./models/CaseTypeCreateRequest"; +export { CaseTypeResource } from "./models/CaseTypeResource"; +export { CaseTypeResourceAttributes } from "./models/CaseTypeResourceAttributes"; +export { CaseTypeResourceType } from "./models/CaseTypeResourceType"; +export { CaseTypeResponse } from "./models/CaseTypeResponse"; +export { CaseTypesResponse } from "./models/CaseTypesResponse"; export { CaseUpdateAttributes } from "./models/CaseUpdateAttributes"; export { CaseUpdateAttributesAttributes } from "./models/CaseUpdateAttributesAttributes"; export { CaseUpdateAttributesRequest } from "./models/CaseUpdateAttributesRequest"; +export { CaseUpdateCustomAttribute } from "./models/CaseUpdateCustomAttribute"; +export { CaseUpdateCustomAttributeRequest } from "./models/CaseUpdateCustomAttributeRequest"; +export { CaseUpdateDescription } from "./models/CaseUpdateDescription"; +export { CaseUpdateDescriptionAttributes } from "./models/CaseUpdateDescriptionAttributes"; +export { CaseUpdateDescriptionRequest } from "./models/CaseUpdateDescriptionRequest"; export { CaseUpdatePriority } from "./models/CaseUpdatePriority"; export { CaseUpdatePriorityAttributes } from "./models/CaseUpdatePriorityAttributes"; export { CaseUpdatePriorityRequest } from "./models/CaseUpdatePriorityRequest"; export { CaseUpdateStatus } from "./models/CaseUpdateStatus"; export { CaseUpdateStatusAttributes } from "./models/CaseUpdateStatusAttributes"; export { CaseUpdateStatusRequest } from "./models/CaseUpdateStatusRequest"; +export { CaseUpdateTitle } from "./models/CaseUpdateTitle"; +export { CaseUpdateTitleAttributes } from "./models/CaseUpdateTitleAttributes"; +export { CaseUpdateTitleRequest } from "./models/CaseUpdateTitleRequest"; export { ChangeEventAttributes } from "./models/ChangeEventAttributes"; export { ChangeEventAttributesAuthor } from "./models/ChangeEventAttributesAuthor"; export { ChangeEventAttributesAuthorType } from "./models/ChangeEventAttributesAuthorType"; @@ -1433,6 +1470,17 @@ export { CsmHostsAndContainersCoverageAnalysisResponse } from "./models/CsmHosts export { CsmServerlessCoverageAnalysisAttributes } from "./models/CsmServerlessCoverageAnalysisAttributes"; export { CsmServerlessCoverageAnalysisData } from "./models/CsmServerlessCoverageAnalysisData"; export { CsmServerlessCoverageAnalysisResponse } from "./models/CsmServerlessCoverageAnalysisResponse"; +export { CustomAttributeConfig } from "./models/CustomAttributeConfig"; +export { CustomAttributeConfigAttributesCreate } from "./models/CustomAttributeConfigAttributesCreate"; +export { CustomAttributeConfigCreate } from "./models/CustomAttributeConfigCreate"; +export { CustomAttributeConfigCreateRequest } from "./models/CustomAttributeConfigCreateRequest"; +export { CustomAttributeConfigResourceAttributes } from "./models/CustomAttributeConfigResourceAttributes"; +export { CustomAttributeConfigResourceType } from "./models/CustomAttributeConfigResourceType"; +export { CustomAttributeConfigResponse } from "./models/CustomAttributeConfigResponse"; +export { CustomAttributeConfigsResponse } from "./models/CustomAttributeConfigsResponse"; +export { CustomAttributeType } from "./models/CustomAttributeType"; +export { CustomAttributeValue } from "./models/CustomAttributeValue"; +export { CustomAttributeValuesUnion } from "./models/CustomAttributeValuesUnion"; export { CustomConnection } from "./models/CustomConnection"; export { CustomConnectionAttributes } from "./models/CustomConnectionAttributes"; export { CustomConnectionAttributesOnPremRunner } from "./models/CustomConnectionAttributesOnPremRunner"; @@ -3573,6 +3621,17 @@ export { TeamUpdate } from "./models/TeamUpdate"; export { TeamUpdateAttributes } from "./models/TeamUpdateAttributes"; export { TeamUpdateRelationships } from "./models/TeamUpdateRelationships"; export { TeamUpdateRequest } from "./models/TeamUpdateRequest"; +export { TimelineCell } from "./models/TimelineCell"; +export { TimelineCellAuthor } from "./models/TimelineCellAuthor"; +export { TimelineCellAuthorUser } from "./models/TimelineCellAuthorUser"; +export { TimelineCellAuthorUserContent } from "./models/TimelineCellAuthorUserContent"; +export { TimelineCellAuthorUserType } from "./models/TimelineCellAuthorUserType"; +export { TimelineCellContent } from "./models/TimelineCellContent"; +export { TimelineCellContentComment } from "./models/TimelineCellContentComment"; +export { TimelineCellResource } from "./models/TimelineCellResource"; +export { TimelineCellResourceType } from "./models/TimelineCellResourceType"; +export { TimelineCellType } from "./models/TimelineCellType"; +export { TimelineResponse } from "./models/TimelineResponse"; export { TimeRestriction } from "./models/TimeRestriction"; export { TimeRestrictions } from "./models/TimeRestrictions"; export { TimeseriesFormulaQueryRequest } from "./models/TimeseriesFormulaQueryRequest"; diff --git a/packages/datadog-api-client-v2/models/CaseAttributes.ts b/packages/datadog-api-client-v2/models/CaseAttributes.ts index 52039f9617f1..2f8a778a499f 100644 --- a/packages/datadog-api-client-v2/models/CaseAttributes.ts +++ b/packages/datadog-api-client-v2/models/CaseAttributes.ts @@ -6,6 +6,7 @@ import { CasePriority } from "./CasePriority"; import { CaseStatus } from "./CaseStatus"; import { CaseType } from "./CaseType"; +import { CustomAttributeValue } from "./CustomAttributeValue"; import { JiraIssue } from "./JiraIssue"; import { ServiceNowTicket } from "./ServiceNowTicket"; @@ -31,6 +32,10 @@ export class CaseAttributes { * Timestamp of when the case was created */ "createdAt"?: Date; + /** + * Case custom attributes + */ + "customAttributes"?: { [key: string]: CustomAttributeValue }; /** * Description */ @@ -67,6 +72,10 @@ export class CaseAttributes { * Case type */ "type"?: CaseType; + /** + * Case type UUID + */ + "typeId"?: string; /** * A container for additional, undeclared properties. @@ -103,6 +112,10 @@ export class CaseAttributes { type: "Date", format: "date-time", }, + customAttributes: { + baseName: "custom_attributes", + type: "{ [key: string]: CustomAttributeValue; }", + }, description: { baseName: "description", type: "string", @@ -140,6 +153,10 @@ export class CaseAttributes { baseName: "type", type: "CaseType", }, + typeId: { + baseName: "type_id", + type: "string", + }, additionalProperties: { baseName: "additionalProperties", type: "{ [key: string]: any; }", diff --git a/packages/datadog-api-client-v2/models/CaseComment.ts b/packages/datadog-api-client-v2/models/CaseComment.ts new file mode 100644 index 000000000000..badd7e80c802 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseComment.ts @@ -0,0 +1,64 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CaseCommentAttributes } from "./CaseCommentAttributes"; +import { CaseResourceType } from "./CaseResourceType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Case comment + */ +export class CaseComment { + /** + * Case comment attributes + */ + "attributes": CaseCommentAttributes; + /** + * Case resource type + */ + "type": CaseResourceType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CaseCommentAttributes", + required: true, + }, + type: { + baseName: "type", + type: "CaseResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CaseComment.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CaseCommentAttributes.ts b/packages/datadog-api-client-v2/models/CaseCommentAttributes.ts new file mode 100644 index 000000000000..afb67859b012 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseCommentAttributes.ts @@ -0,0 +1,53 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Case comment attributes + */ +export class CaseCommentAttributes { + /** + * The `CaseCommentAttributes` `message`. + */ + "comment": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + comment: { + baseName: "comment", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CaseCommentAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CaseCommentRequest.ts b/packages/datadog-api-client-v2/models/CaseCommentRequest.ts new file mode 100644 index 000000000000..4184cd3da3a3 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseCommentRequest.ts @@ -0,0 +1,54 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CaseComment } from "./CaseComment"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Case comment request + */ +export class CaseCommentRequest { + /** + * Case comment + */ + "data": CaseComment; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "CaseComment", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CaseCommentRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CaseCreateAttributes.ts b/packages/datadog-api-client-v2/models/CaseCreateAttributes.ts index aff4b0237cd4..da8b93261afd 100644 --- a/packages/datadog-api-client-v2/models/CaseCreateAttributes.ts +++ b/packages/datadog-api-client-v2/models/CaseCreateAttributes.ts @@ -4,7 +4,6 @@ * Copyright 2020-Present Datadog, Inc. */ import { CasePriority } from "./CasePriority"; -import { CaseType } from "./CaseType"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; @@ -25,9 +24,9 @@ export class CaseCreateAttributes { */ "title": string; /** - * Case type + * Case type UUID */ - "type": CaseType; + "typeId": string; /** * A container for additional, undeclared properties. @@ -58,9 +57,9 @@ export class CaseCreateAttributes { type: "string", required: true, }, - type: { - baseName: "type", - type: "CaseType", + typeId: { + baseName: "type_id", + type: "string", required: true, }, additionalProperties: { diff --git a/packages/datadog-api-client-v2/models/CaseTypeCreate.ts b/packages/datadog-api-client-v2/models/CaseTypeCreate.ts new file mode 100644 index 000000000000..9abd3590bfa2 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseTypeCreate.ts @@ -0,0 +1,64 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CaseTypeResourceAttributes } from "./CaseTypeResourceAttributes"; +import { CaseTypeResourceType } from "./CaseTypeResourceType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Case type + */ +export class CaseTypeCreate { + /** + * Case Type resource attributes + */ + "attributes": CaseTypeResourceAttributes; + /** + * Case type resource type + */ + "type": CaseTypeResourceType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CaseTypeResourceAttributes", + required: true, + }, + type: { + baseName: "type", + type: "CaseTypeResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CaseTypeCreate.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CaseTypeCreateRequest.ts b/packages/datadog-api-client-v2/models/CaseTypeCreateRequest.ts new file mode 100644 index 000000000000..47d61256c094 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseTypeCreateRequest.ts @@ -0,0 +1,54 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CaseTypeCreate } from "./CaseTypeCreate"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Case type create request + */ +export class CaseTypeCreateRequest { + /** + * Case type + */ + "data": CaseTypeCreate; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "CaseTypeCreate", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CaseTypeCreateRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CaseTypeResource.ts b/packages/datadog-api-client-v2/models/CaseTypeResource.ts new file mode 100644 index 000000000000..dd2fb4c22d12 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseTypeResource.ts @@ -0,0 +1,70 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CaseTypeResourceAttributes } from "./CaseTypeResourceAttributes"; +import { CaseTypeResourceType } from "./CaseTypeResourceType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `CaseType` object. + */ +export class CaseTypeResource { + /** + * Case Type resource attributes + */ + "attributes"?: CaseTypeResourceAttributes; + /** + * Case type's identifier + */ + "id"?: string; + /** + * Case type resource type + */ + "type"?: CaseTypeResourceType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CaseTypeResourceAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "CaseTypeResourceType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CaseTypeResource.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CaseTypeResourceAttributes.ts b/packages/datadog-api-client-v2/models/CaseTypeResourceAttributes.ts new file mode 100644 index 000000000000..2d13b2e57de1 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseTypeResourceAttributes.ts @@ -0,0 +1,79 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Case Type resource attributes + */ +export class CaseTypeResourceAttributes { + /** + * Timestamp of when the case type was deleted + */ + "deletedAt"?: Date; + /** + * Case type description. + */ + "description"?: string; + /** + * Case type emoji. + */ + "emoji": string; + /** + * Case type name. + */ + "name": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + deletedAt: { + baseName: "deleted_at", + type: "Date", + format: "date-time", + }, + description: { + baseName: "description", + type: "string", + }, + emoji: { + baseName: "emoji", + type: "string", + required: true, + }, + name: { + baseName: "name", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CaseTypeResourceAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CaseTypeResourceType.ts b/packages/datadog-api-client-v2/models/CaseTypeResourceType.ts new file mode 100644 index 000000000000..2c7c58b68a41 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseTypeResourceType.ts @@ -0,0 +1,14 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Case type resource type + */ + +export type CaseTypeResourceType = typeof CASE_TYPE | UnparsedObject; +export const CASE_TYPE = "case_type"; diff --git a/packages/datadog-api-client-v2/models/CaseTypeResponse.ts b/packages/datadog-api-client-v2/models/CaseTypeResponse.ts new file mode 100644 index 000000000000..00e7dc3cb002 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseTypeResponse.ts @@ -0,0 +1,53 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CaseTypeResource } from "./CaseTypeResource"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Case type response + */ +export class CaseTypeResponse { + /** + * The definition of `CaseType` object. + */ + "data"?: CaseTypeResource; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "CaseTypeResource", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CaseTypeResponse.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CaseTypesResponse.ts b/packages/datadog-api-client-v2/models/CaseTypesResponse.ts new file mode 100644 index 000000000000..b4db5f474d57 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseTypesResponse.ts @@ -0,0 +1,53 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CaseTypeResource } from "./CaseTypeResource"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Case types response. + */ +export class CaseTypesResponse { + /** + * List of case types + */ + "data"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CaseTypesResponse.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CaseUpdateCustomAttribute.ts b/packages/datadog-api-client-v2/models/CaseUpdateCustomAttribute.ts new file mode 100644 index 000000000000..978944d20aab --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseUpdateCustomAttribute.ts @@ -0,0 +1,64 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CaseResourceType } from "./CaseResourceType"; +import { CustomAttributeValue } from "./CustomAttributeValue"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Case update custom attribute + */ +export class CaseUpdateCustomAttribute { + /** + * Custom attribute values + */ + "attributes": CustomAttributeValue; + /** + * Case resource type + */ + "type": CaseResourceType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CustomAttributeValue", + required: true, + }, + type: { + baseName: "type", + type: "CaseResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CaseUpdateCustomAttribute.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CaseUpdateCustomAttributeRequest.ts b/packages/datadog-api-client-v2/models/CaseUpdateCustomAttributeRequest.ts new file mode 100644 index 000000000000..1ea452afe028 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseUpdateCustomAttributeRequest.ts @@ -0,0 +1,54 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CaseUpdateCustomAttribute } from "./CaseUpdateCustomAttribute"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Case update custom attribute request + */ +export class CaseUpdateCustomAttributeRequest { + /** + * Case update custom attribute + */ + "data": CaseUpdateCustomAttribute; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "CaseUpdateCustomAttribute", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CaseUpdateCustomAttributeRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CaseUpdateDescription.ts b/packages/datadog-api-client-v2/models/CaseUpdateDescription.ts new file mode 100644 index 000000000000..4a8af5590e73 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseUpdateDescription.ts @@ -0,0 +1,64 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CaseResourceType } from "./CaseResourceType"; +import { CaseUpdateDescriptionAttributes } from "./CaseUpdateDescriptionAttributes"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Case update description + */ +export class CaseUpdateDescription { + /** + * Case update description attributes + */ + "attributes": CaseUpdateDescriptionAttributes; + /** + * Case resource type + */ + "type": CaseResourceType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CaseUpdateDescriptionAttributes", + required: true, + }, + type: { + baseName: "type", + type: "CaseResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CaseUpdateDescription.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CaseUpdateDescriptionAttributes.ts b/packages/datadog-api-client-v2/models/CaseUpdateDescriptionAttributes.ts new file mode 100644 index 000000000000..21db2d570148 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseUpdateDescriptionAttributes.ts @@ -0,0 +1,53 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Case update description attributes + */ +export class CaseUpdateDescriptionAttributes { + /** + * Case new description + */ + "description": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + description: { + baseName: "description", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CaseUpdateDescriptionAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CaseUpdateDescriptionRequest.ts b/packages/datadog-api-client-v2/models/CaseUpdateDescriptionRequest.ts new file mode 100644 index 000000000000..b6d8b37cd915 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseUpdateDescriptionRequest.ts @@ -0,0 +1,54 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CaseUpdateDescription } from "./CaseUpdateDescription"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Case update description request + */ +export class CaseUpdateDescriptionRequest { + /** + * Case update description + */ + "data": CaseUpdateDescription; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "CaseUpdateDescription", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CaseUpdateDescriptionRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CaseUpdateTitle.ts b/packages/datadog-api-client-v2/models/CaseUpdateTitle.ts new file mode 100644 index 000000000000..0eda055d704f --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseUpdateTitle.ts @@ -0,0 +1,64 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CaseResourceType } from "./CaseResourceType"; +import { CaseUpdateTitleAttributes } from "./CaseUpdateTitleAttributes"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Case update title + */ +export class CaseUpdateTitle { + /** + * Case update title attributes + */ + "attributes": CaseUpdateTitleAttributes; + /** + * Case resource type + */ + "type": CaseResourceType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CaseUpdateTitleAttributes", + required: true, + }, + type: { + baseName: "type", + type: "CaseResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CaseUpdateTitle.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CaseUpdateTitleAttributes.ts b/packages/datadog-api-client-v2/models/CaseUpdateTitleAttributes.ts new file mode 100644 index 000000000000..ce04c2ee878a --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseUpdateTitleAttributes.ts @@ -0,0 +1,53 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Case update title attributes + */ +export class CaseUpdateTitleAttributes { + /** + * Case new title + */ + "title": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + title: { + baseName: "title", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CaseUpdateTitleAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CaseUpdateTitleRequest.ts b/packages/datadog-api-client-v2/models/CaseUpdateTitleRequest.ts new file mode 100644 index 000000000000..16aadd35d4c7 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CaseUpdateTitleRequest.ts @@ -0,0 +1,54 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CaseUpdateTitle } from "./CaseUpdateTitle"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Case update title request + */ +export class CaseUpdateTitleRequest { + /** + * Case update title + */ + "data": CaseUpdateTitle; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "CaseUpdateTitle", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CaseUpdateTitleRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CustomAttributeConfig.ts b/packages/datadog-api-client-v2/models/CustomAttributeConfig.ts new file mode 100644 index 000000000000..99ee2b0dfe3c --- /dev/null +++ b/packages/datadog-api-client-v2/models/CustomAttributeConfig.ts @@ -0,0 +1,70 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CustomAttributeConfigResourceAttributes } from "./CustomAttributeConfigResourceAttributes"; +import { CustomAttributeConfigResourceType } from "./CustomAttributeConfigResourceType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * The definition of `CustomAttributeConfig` object. + */ +export class CustomAttributeConfig { + /** + * Custom attribute resource attributes + */ + "attributes"?: CustomAttributeConfigResourceAttributes; + /** + * Custom attribute configs identifier + */ + "id"?: string; + /** + * Custom attributes config JSON:API resource type + */ + "type"?: CustomAttributeConfigResourceType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CustomAttributeConfigResourceAttributes", + }, + id: { + baseName: "id", + type: "string", + }, + type: { + baseName: "type", + type: "CustomAttributeConfigResourceType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CustomAttributeConfig.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CustomAttributeConfigAttributesCreate.ts b/packages/datadog-api-client-v2/models/CustomAttributeConfigAttributesCreate.ts new file mode 100644 index 000000000000..6a2ce09b5137 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CustomAttributeConfigAttributesCreate.ts @@ -0,0 +1,89 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CustomAttributeType } from "./CustomAttributeType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Custom attribute config resource attributes + */ +export class CustomAttributeConfigAttributesCreate { + /** + * Custom attribute description. + */ + "description"?: string; + /** + * Custom attribute name. + */ + "displayName": string; + /** + * Whether multiple values can be set + */ + "isMulti": boolean; + /** + * Custom attribute key. This will be the value use to search on this custom attribute + */ + "key": string; + /** + * Custom attributes type + */ + "type": CustomAttributeType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + description: { + baseName: "description", + type: "string", + }, + displayName: { + baseName: "display_name", + type: "string", + required: true, + }, + isMulti: { + baseName: "is_multi", + type: "boolean", + required: true, + }, + key: { + baseName: "key", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "CustomAttributeType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CustomAttributeConfigAttributesCreate.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CustomAttributeConfigCreate.ts b/packages/datadog-api-client-v2/models/CustomAttributeConfigCreate.ts new file mode 100644 index 000000000000..d725d755f63a --- /dev/null +++ b/packages/datadog-api-client-v2/models/CustomAttributeConfigCreate.ts @@ -0,0 +1,64 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CustomAttributeConfigAttributesCreate } from "./CustomAttributeConfigAttributesCreate"; +import { CustomAttributeConfigResourceType } from "./CustomAttributeConfigResourceType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Custom attribute config + */ +export class CustomAttributeConfigCreate { + /** + * Custom attribute config resource attributes + */ + "attributes": CustomAttributeConfigAttributesCreate; + /** + * Custom attributes config JSON:API resource type + */ + "type": CustomAttributeConfigResourceType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "CustomAttributeConfigAttributesCreate", + required: true, + }, + type: { + baseName: "type", + type: "CustomAttributeConfigResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CustomAttributeConfigCreate.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CustomAttributeConfigCreateRequest.ts b/packages/datadog-api-client-v2/models/CustomAttributeConfigCreateRequest.ts new file mode 100644 index 000000000000..af6786d06796 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CustomAttributeConfigCreateRequest.ts @@ -0,0 +1,54 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CustomAttributeConfigCreate } from "./CustomAttributeConfigCreate"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Custom attribute config create request + */ +export class CustomAttributeConfigCreateRequest { + /** + * Custom attribute config + */ + "data": CustomAttributeConfigCreate; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "CustomAttributeConfigCreate", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CustomAttributeConfigCreateRequest.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CustomAttributeConfigResourceAttributes.ts b/packages/datadog-api-client-v2/models/CustomAttributeConfigResourceAttributes.ts new file mode 100644 index 000000000000..17c91e191c21 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CustomAttributeConfigResourceAttributes.ts @@ -0,0 +1,98 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CustomAttributeType } from "./CustomAttributeType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Custom attribute resource attributes + */ +export class CustomAttributeConfigResourceAttributes { + /** + * Custom attribute config identifier. + */ + "caseTypeId": string; + /** + * Custom attribute description. + */ + "description"?: string; + /** + * Custom attribute name. + */ + "displayName": string; + /** + * Whether multiple values can be set + */ + "isMulti": boolean; + /** + * Custom attribute key. This will be the value use to search on this custom attribute + */ + "key": string; + /** + * Custom attributes type + */ + "type": CustomAttributeType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + caseTypeId: { + baseName: "case_type_id", + type: "string", + required: true, + }, + description: { + baseName: "description", + type: "string", + }, + displayName: { + baseName: "display_name", + type: "string", + required: true, + }, + isMulti: { + baseName: "is_multi", + type: "boolean", + required: true, + }, + key: { + baseName: "key", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "CustomAttributeType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CustomAttributeConfigResourceAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CustomAttributeConfigResourceType.ts b/packages/datadog-api-client-v2/models/CustomAttributeConfigResourceType.ts new file mode 100644 index 000000000000..af6022213a8b --- /dev/null +++ b/packages/datadog-api-client-v2/models/CustomAttributeConfigResourceType.ts @@ -0,0 +1,16 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Custom attributes config JSON:API resource type + */ + +export type CustomAttributeConfigResourceType = + | typeof CUSTOM_ATTRIBUTE + | UnparsedObject; +export const CUSTOM_ATTRIBUTE = "custom_attribute"; diff --git a/packages/datadog-api-client-v2/models/CustomAttributeConfigResponse.ts b/packages/datadog-api-client-v2/models/CustomAttributeConfigResponse.ts new file mode 100644 index 000000000000..01e9b9bab41c --- /dev/null +++ b/packages/datadog-api-client-v2/models/CustomAttributeConfigResponse.ts @@ -0,0 +1,53 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CustomAttributeConfig } from "./CustomAttributeConfig"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Custom attribute config response. + */ +export class CustomAttributeConfigResponse { + /** + * The definition of `CustomAttributeConfig` object. + */ + "data"?: CustomAttributeConfig; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "CustomAttributeConfig", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CustomAttributeConfigResponse.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CustomAttributeConfigsResponse.ts b/packages/datadog-api-client-v2/models/CustomAttributeConfigsResponse.ts new file mode 100644 index 000000000000..0b15c1234bba --- /dev/null +++ b/packages/datadog-api-client-v2/models/CustomAttributeConfigsResponse.ts @@ -0,0 +1,53 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CustomAttributeConfig } from "./CustomAttributeConfig"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Custom attribute configs response. + */ +export class CustomAttributeConfigsResponse { + /** + * List of custom attribute configs of case type + */ + "data"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CustomAttributeConfigsResponse.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CustomAttributeType.ts b/packages/datadog-api-client-v2/models/CustomAttributeType.ts new file mode 100644 index 000000000000..271508db90f5 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CustomAttributeType.ts @@ -0,0 +1,20 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Custom attributes type + */ + +export type CustomAttributeType = + | typeof URL + | typeof TEXT + | typeof NUMBER + | UnparsedObject; +export const URL = "URL"; +export const TEXT = "TEXT"; +export const NUMBER = "NUMBER"; diff --git a/packages/datadog-api-client-v2/models/CustomAttributeValue.ts b/packages/datadog-api-client-v2/models/CustomAttributeValue.ts new file mode 100644 index 000000000000..ed3cee9e2dc1 --- /dev/null +++ b/packages/datadog-api-client-v2/models/CustomAttributeValue.ts @@ -0,0 +1,73 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { CustomAttributeType } from "./CustomAttributeType"; +import { CustomAttributeValuesUnion } from "./CustomAttributeValuesUnion"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Custom attribute values + */ +export class CustomAttributeValue { + /** + * If true, value must be an array + */ + "isMulti": boolean; + /** + * Custom attributes type + */ + "type": CustomAttributeType; + /** + * Union of supported value for a custom attribute + */ + "value": CustomAttributeValuesUnion; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + isMulti: { + baseName: "is_multi", + type: "boolean", + required: true, + }, + type: { + baseName: "type", + type: "CustomAttributeType", + required: true, + }, + value: { + baseName: "value", + type: "CustomAttributeValuesUnion", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return CustomAttributeValue.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/CustomAttributeValuesUnion.ts b/packages/datadog-api-client-v2/models/CustomAttributeValuesUnion.ts new file mode 100644 index 000000000000..5b4a9f0db49f --- /dev/null +++ b/packages/datadog-api-client-v2/models/CustomAttributeValuesUnion.ts @@ -0,0 +1,18 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Union of supported value for a custom attribute + */ + +export type CustomAttributeValuesUnion = + | string + | Array + | number + | Array + | UnparsedObject; diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index eada6876813c..03fabc0e8813 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -277,6 +277,9 @@ import { CaseAssign } from "./CaseAssign"; import { CaseAssignAttributes } from "./CaseAssignAttributes"; import { CaseAssignRequest } from "./CaseAssignRequest"; import { CaseAttributes } from "./CaseAttributes"; +import { CaseComment } from "./CaseComment"; +import { CaseCommentAttributes } from "./CaseCommentAttributes"; +import { CaseCommentRequest } from "./CaseCommentRequest"; import { CaseCreate } from "./CaseCreate"; import { CaseCreateAttributes } from "./CaseCreateAttributes"; import { CaseCreateRelationships } from "./CaseCreateRelationships"; @@ -287,15 +290,29 @@ import { CaseRelationships } from "./CaseRelationships"; import { CaseResponse } from "./CaseResponse"; import { CaseTrigger } from "./CaseTrigger"; import { CaseTriggerWrapper } from "./CaseTriggerWrapper"; +import { CaseTypeCreate } from "./CaseTypeCreate"; +import { CaseTypeCreateRequest } from "./CaseTypeCreateRequest"; +import { CaseTypeResource } from "./CaseTypeResource"; +import { CaseTypeResourceAttributes } from "./CaseTypeResourceAttributes"; +import { CaseTypeResponse } from "./CaseTypeResponse"; +import { CaseTypesResponse } from "./CaseTypesResponse"; import { CaseUpdateAttributes } from "./CaseUpdateAttributes"; import { CaseUpdateAttributesAttributes } from "./CaseUpdateAttributesAttributes"; import { CaseUpdateAttributesRequest } from "./CaseUpdateAttributesRequest"; +import { CaseUpdateCustomAttribute } from "./CaseUpdateCustomAttribute"; +import { CaseUpdateCustomAttributeRequest } from "./CaseUpdateCustomAttributeRequest"; +import { CaseUpdateDescription } from "./CaseUpdateDescription"; +import { CaseUpdateDescriptionAttributes } from "./CaseUpdateDescriptionAttributes"; +import { CaseUpdateDescriptionRequest } from "./CaseUpdateDescriptionRequest"; import { CaseUpdatePriority } from "./CaseUpdatePriority"; import { CaseUpdatePriorityAttributes } from "./CaseUpdatePriorityAttributes"; import { CaseUpdatePriorityRequest } from "./CaseUpdatePriorityRequest"; import { CaseUpdateStatus } from "./CaseUpdateStatus"; import { CaseUpdateStatusAttributes } from "./CaseUpdateStatusAttributes"; import { CaseUpdateStatusRequest } from "./CaseUpdateStatusRequest"; +import { CaseUpdateTitle } from "./CaseUpdateTitle"; +import { CaseUpdateTitleAttributes } from "./CaseUpdateTitleAttributes"; +import { CaseUpdateTitleRequest } from "./CaseUpdateTitleRequest"; import { CasesResponse } from "./CasesResponse"; import { CasesResponseMeta } from "./CasesResponseMeta"; import { CasesResponseMetaPagination } from "./CasesResponseMetaPagination"; @@ -477,6 +494,14 @@ import { CsmHostsAndContainersCoverageAnalysisResponse } from "./CsmHostsAndCont import { CsmServerlessCoverageAnalysisAttributes } from "./CsmServerlessCoverageAnalysisAttributes"; import { CsmServerlessCoverageAnalysisData } from "./CsmServerlessCoverageAnalysisData"; import { CsmServerlessCoverageAnalysisResponse } from "./CsmServerlessCoverageAnalysisResponse"; +import { CustomAttributeConfig } from "./CustomAttributeConfig"; +import { CustomAttributeConfigAttributesCreate } from "./CustomAttributeConfigAttributesCreate"; +import { CustomAttributeConfigCreate } from "./CustomAttributeConfigCreate"; +import { CustomAttributeConfigCreateRequest } from "./CustomAttributeConfigCreateRequest"; +import { CustomAttributeConfigResourceAttributes } from "./CustomAttributeConfigResourceAttributes"; +import { CustomAttributeConfigResponse } from "./CustomAttributeConfigResponse"; +import { CustomAttributeConfigsResponse } from "./CustomAttributeConfigsResponse"; +import { CustomAttributeValue } from "./CustomAttributeValue"; import { CustomConnection } from "./CustomConnection"; import { CustomConnectionAttributes } from "./CustomConnectionAttributes"; import { CustomConnectionAttributesOnPremRunner } from "./CustomConnectionAttributesOnPremRunner"; @@ -2037,6 +2062,12 @@ import { TeamsResponseMeta } from "./TeamsResponseMeta"; import { TeamsResponseMetaPagination } from "./TeamsResponseMetaPagination"; import { TimeRestriction } from "./TimeRestriction"; import { TimeRestrictions } from "./TimeRestrictions"; +import { TimelineCell } from "./TimelineCell"; +import { TimelineCellAuthorUser } from "./TimelineCellAuthorUser"; +import { TimelineCellAuthorUserContent } from "./TimelineCellAuthorUserContent"; +import { TimelineCellContentComment } from "./TimelineCellContentComment"; +import { TimelineCellResource } from "./TimelineCellResource"; +import { TimelineResponse } from "./TimelineResponse"; import { TimeseriesFormulaQueryRequest } from "./TimeseriesFormulaQueryRequest"; import { TimeseriesFormulaQueryResponse } from "./TimeseriesFormulaQueryResponse"; import { TimeseriesFormulaRequest } from "./TimeseriesFormulaRequest"; @@ -2406,6 +2437,7 @@ const enumsMap: { [key: string]: any[] } = { CaseSortableField: ["created_at", "priority", "status"], CaseStatus: ["OPEN", "IN_PROGRESS", "CLOSED"], CaseType: ["STANDARD"], + CaseTypeResourceType: ["case_type"], ChangeEventAttributesAuthorType: ["user", "system", "api", "automation"], ChangeEventAttributesChangedResourceType: ["feature_flag", "configuration"], ChangeEventAttributesImpactedResourcesItemType: ["service"], @@ -2488,6 +2520,8 @@ const enumsMap: { [key: string]: any[] } = { CreateDataDeletionRequestBodyDataType: ["create_deletion_req"], CreatePageRequestDataType: ["pages"], CreatePageResponseDataType: ["pages"], + CustomAttributeConfigResourceType: ["custom_attribute"], + CustomAttributeType: ["URL", "TEXT", "NUMBER"], CustomConnectionType: ["custom_connections"], CustomDestinationAttributeTagsRestrictionListType: [ "ALLOW_LIST", @@ -3510,6 +3544,9 @@ const enumsMap: { [key: string]: any[] } = { "team_links", "user_team_permissions", ], + TimelineCellAuthorUserType: ["USER"], + TimelineCellResourceType: ["timeline_cell"], + TimelineCellType: ["COMMENT"], TimeseriesFormulaRequestType: ["timeseries_request"], TimeseriesFormulaResponseType: ["timeseries_response"], TokenType: ["SECRET"], @@ -3952,6 +3989,9 @@ const typeMap: { [index: string]: any } = { CaseAssignAttributes: CaseAssignAttributes, CaseAssignRequest: CaseAssignRequest, CaseAttributes: CaseAttributes, + CaseComment: CaseComment, + CaseCommentAttributes: CaseCommentAttributes, + CaseCommentRequest: CaseCommentRequest, CaseCreate: CaseCreate, CaseCreateAttributes: CaseCreateAttributes, CaseCreateRelationships: CaseCreateRelationships, @@ -3962,15 +4002,29 @@ const typeMap: { [index: string]: any } = { CaseResponse: CaseResponse, CaseTrigger: CaseTrigger, CaseTriggerWrapper: CaseTriggerWrapper, + CaseTypeCreate: CaseTypeCreate, + CaseTypeCreateRequest: CaseTypeCreateRequest, + CaseTypeResource: CaseTypeResource, + CaseTypeResourceAttributes: CaseTypeResourceAttributes, + CaseTypeResponse: CaseTypeResponse, + CaseTypesResponse: CaseTypesResponse, CaseUpdateAttributes: CaseUpdateAttributes, CaseUpdateAttributesAttributes: CaseUpdateAttributesAttributes, CaseUpdateAttributesRequest: CaseUpdateAttributesRequest, + CaseUpdateCustomAttribute: CaseUpdateCustomAttribute, + CaseUpdateCustomAttributeRequest: CaseUpdateCustomAttributeRequest, + CaseUpdateDescription: CaseUpdateDescription, + CaseUpdateDescriptionAttributes: CaseUpdateDescriptionAttributes, + CaseUpdateDescriptionRequest: CaseUpdateDescriptionRequest, CaseUpdatePriority: CaseUpdatePriority, CaseUpdatePriorityAttributes: CaseUpdatePriorityAttributes, CaseUpdatePriorityRequest: CaseUpdatePriorityRequest, CaseUpdateStatus: CaseUpdateStatus, CaseUpdateStatusAttributes: CaseUpdateStatusAttributes, CaseUpdateStatusRequest: CaseUpdateStatusRequest, + CaseUpdateTitle: CaseUpdateTitle, + CaseUpdateTitleAttributes: CaseUpdateTitleAttributes, + CaseUpdateTitleRequest: CaseUpdateTitleRequest, CasesResponse: CasesResponse, CasesResponseMeta: CasesResponseMeta, CasesResponseMetaPagination: CasesResponseMetaPagination, @@ -4193,6 +4247,15 @@ const typeMap: { [index: string]: any } = { CsmServerlessCoverageAnalysisAttributes, CsmServerlessCoverageAnalysisData: CsmServerlessCoverageAnalysisData, CsmServerlessCoverageAnalysisResponse: CsmServerlessCoverageAnalysisResponse, + CustomAttributeConfig: CustomAttributeConfig, + CustomAttributeConfigAttributesCreate: CustomAttributeConfigAttributesCreate, + CustomAttributeConfigCreate: CustomAttributeConfigCreate, + CustomAttributeConfigCreateRequest: CustomAttributeConfigCreateRequest, + CustomAttributeConfigResourceAttributes: + CustomAttributeConfigResourceAttributes, + CustomAttributeConfigResponse: CustomAttributeConfigResponse, + CustomAttributeConfigsResponse: CustomAttributeConfigsResponse, + CustomAttributeValue: CustomAttributeValue, CustomConnection: CustomConnection, CustomConnectionAttributes: CustomConnectionAttributes, CustomConnectionAttributesOnPremRunner: @@ -6006,6 +6069,12 @@ const typeMap: { [index: string]: any } = { TeamsResponseMetaPagination: TeamsResponseMetaPagination, TimeRestriction: TimeRestriction, TimeRestrictions: TimeRestrictions, + TimelineCell: TimelineCell, + TimelineCellAuthorUser: TimelineCellAuthorUser, + TimelineCellAuthorUserContent: TimelineCellAuthorUserContent, + TimelineCellContentComment: TimelineCellContentComment, + TimelineCellResource: TimelineCellResource, + TimelineResponse: TimelineResponse, TimeseriesFormulaQueryRequest: TimeseriesFormulaQueryRequest, TimeseriesFormulaQueryResponse: TimeseriesFormulaQueryResponse, TimeseriesFormulaRequest: TimeseriesFormulaRequest, @@ -6255,6 +6324,12 @@ const oneOfMap: { [index: string]: string[] } = { ConfigCatCredentialsUpdate: ["ConfigCatSDKKeyUpdate"], ContainerImageItem: ["ContainerImage", "ContainerImageGroup"], ContainerItem: ["Container", "ContainerGroup"], + CustomAttributeValuesUnion: [ + "string", + "Array", + "number", + "Array", + ], CustomDestinationForwardDestination: [ "CustomDestinationForwardDestinationHttp", "CustomDestinationForwardDestinationSplunk", @@ -6581,6 +6656,8 @@ const oneOfMap: { [index: string]: string[] } = { TeamIncluded: ["User", "TeamLink", "UserTeamPermission"], TeamOnCallRespondersIncluded: ["User", "Escalation"], TeamRoutingRulesIncluded: ["RoutingRule"], + TimelineCellAuthor: ["TimelineCellAuthorUser"], + TimelineCellContent: ["TimelineCellContentComment"], TimeseriesQuery: ["MetricsTimeseriesQuery", "EventsTimeseriesQuery"], Trigger: [ "APITriggerWrapper", diff --git a/packages/datadog-api-client-v2/models/TimelineCell.ts b/packages/datadog-api-client-v2/models/TimelineCell.ts new file mode 100644 index 000000000000..aa8f2ef3f5c1 --- /dev/null +++ b/packages/datadog-api-client-v2/models/TimelineCell.ts @@ -0,0 +1,98 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { TimelineCellAuthor } from "./TimelineCellAuthor"; +import { TimelineCellContent } from "./TimelineCellContent"; +import { TimelineCellType } from "./TimelineCellType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * timeline cell + */ +export class TimelineCell { + /** + * author of the timeline cell + */ + "author"?: TimelineCellAuthor; + /** + * timeline cell content + */ + "cellContent"?: TimelineCellContent; + /** + * Timestamp of when the cell was created + */ + "createdAt"?: Date; + /** + * Timestamp of when the cell was deleted + */ + "deletedAt"?: Date; + /** + * Timestamp of when the cell was last modified + */ + "modifiedAt"?: Date; + /** + * Timeline cell content type + */ + "type"?: TimelineCellType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + author: { + baseName: "author", + type: "TimelineCellAuthor", + }, + cellContent: { + baseName: "cell_content", + type: "TimelineCellContent", + }, + createdAt: { + baseName: "created_at", + type: "Date", + format: "date-time", + }, + deletedAt: { + baseName: "deleted_at", + type: "Date", + format: "date-time", + }, + modifiedAt: { + baseName: "modified_at", + type: "Date", + format: "date-time", + }, + type: { + baseName: "type", + type: "TimelineCellType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return TimelineCell.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/TimelineCellAuthor.ts b/packages/datadog-api-client-v2/models/TimelineCellAuthor.ts new file mode 100644 index 000000000000..15d874c9726b --- /dev/null +++ b/packages/datadog-api-client-v2/models/TimelineCellAuthor.ts @@ -0,0 +1,14 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { TimelineCellAuthorUser } from "./TimelineCellAuthorUser"; + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * author of the timeline cell + */ + +export type TimelineCellAuthor = TimelineCellAuthorUser | UnparsedObject; diff --git a/packages/datadog-api-client-v2/models/TimelineCellAuthorUser.ts b/packages/datadog-api-client-v2/models/TimelineCellAuthorUser.ts new file mode 100644 index 000000000000..a302852a9243 --- /dev/null +++ b/packages/datadog-api-client-v2/models/TimelineCellAuthorUser.ts @@ -0,0 +1,62 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { TimelineCellAuthorUserContent } from "./TimelineCellAuthorUserContent"; +import { TimelineCellAuthorUserType } from "./TimelineCellAuthorUserType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * timeline cell user author + */ +export class TimelineCellAuthorUser { + /** + * user author content. + */ + "content"?: TimelineCellAuthorUserContent; + /** + * user author type. + */ + "type"?: TimelineCellAuthorUserType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + content: { + baseName: "content", + type: "TimelineCellAuthorUserContent", + }, + type: { + baseName: "type", + type: "TimelineCellAuthorUserType", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return TimelineCellAuthorUser.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/TimelineCellAuthorUserContent.ts b/packages/datadog-api-client-v2/models/TimelineCellAuthorUserContent.ts new file mode 100644 index 000000000000..895c224ca4ec --- /dev/null +++ b/packages/datadog-api-client-v2/models/TimelineCellAuthorUserContent.ts @@ -0,0 +1,76 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * user author content. + */ +export class TimelineCellAuthorUserContent { + /** + * user email + */ + "email"?: string; + /** + * user handle + */ + "handle"?: string; + /** + * user UUID + */ + "id"?: string; + /** + * user name + */ + "name"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + email: { + baseName: "email", + type: "string", + }, + handle: { + baseName: "handle", + type: "string", + }, + id: { + baseName: "id", + type: "string", + }, + name: { + baseName: "name", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return TimelineCellAuthorUserContent.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/TimelineCellAuthorUserType.ts b/packages/datadog-api-client-v2/models/TimelineCellAuthorUserType.ts new file mode 100644 index 000000000000..0df4bbd54ca3 --- /dev/null +++ b/packages/datadog-api-client-v2/models/TimelineCellAuthorUserType.ts @@ -0,0 +1,14 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * user author type. + */ + +export type TimelineCellAuthorUserType = typeof USER | UnparsedObject; +export const USER = "USER"; diff --git a/packages/datadog-api-client-v2/models/TimelineCellContent.ts b/packages/datadog-api-client-v2/models/TimelineCellContent.ts new file mode 100644 index 000000000000..4db38fc87c6c --- /dev/null +++ b/packages/datadog-api-client-v2/models/TimelineCellContent.ts @@ -0,0 +1,14 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { TimelineCellContentComment } from "./TimelineCellContentComment"; + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * timeline cell content + */ + +export type TimelineCellContent = TimelineCellContentComment | UnparsedObject; diff --git a/packages/datadog-api-client-v2/models/TimelineCellContentComment.ts b/packages/datadog-api-client-v2/models/TimelineCellContentComment.ts new file mode 100644 index 000000000000..e386cd10fa75 --- /dev/null +++ b/packages/datadog-api-client-v2/models/TimelineCellContentComment.ts @@ -0,0 +1,52 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * comment content + */ +export class TimelineCellContentComment { + /** + * comment message + */ + "message"?: string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + message: { + baseName: "message", + type: "string", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return TimelineCellContentComment.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/TimelineCellResource.ts b/packages/datadog-api-client-v2/models/TimelineCellResource.ts new file mode 100644 index 000000000000..f1f00d599621 --- /dev/null +++ b/packages/datadog-api-client-v2/models/TimelineCellResource.ts @@ -0,0 +1,73 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { TimelineCell } from "./TimelineCell"; +import { TimelineCellResourceType } from "./TimelineCellResourceType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Timeline cell JSON:API resource + */ +export class TimelineCellResource { + /** + * timeline cell + */ + "attributes": TimelineCell; + /** + * Timeline cell's identifier + */ + "id": string; + /** + * Timeline cell JSON:API resource type + */ + "type": TimelineCellResourceType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "TimelineCell", + required: true, + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "TimelineCellResourceType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return TimelineCellResource.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/TimelineCellResourceType.ts b/packages/datadog-api-client-v2/models/TimelineCellResourceType.ts new file mode 100644 index 000000000000..36cb180f9a10 --- /dev/null +++ b/packages/datadog-api-client-v2/models/TimelineCellResourceType.ts @@ -0,0 +1,14 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Timeline cell JSON:API resource type + */ + +export type TimelineCellResourceType = typeof TIMELINE_CELL | UnparsedObject; +export const TIMELINE_CELL = "timeline_cell"; diff --git a/packages/datadog-api-client-v2/models/TimelineCellType.ts b/packages/datadog-api-client-v2/models/TimelineCellType.ts new file mode 100644 index 000000000000..883fa144d0c5 --- /dev/null +++ b/packages/datadog-api-client-v2/models/TimelineCellType.ts @@ -0,0 +1,14 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Timeline cell content type + */ + +export type TimelineCellType = typeof COMMENT | UnparsedObject; +export const COMMENT = "COMMENT"; diff --git a/packages/datadog-api-client-v2/models/TimelineResponse.ts b/packages/datadog-api-client-v2/models/TimelineResponse.ts new file mode 100644 index 000000000000..e3ab75d1454c --- /dev/null +++ b/packages/datadog-api-client-v2/models/TimelineResponse.ts @@ -0,0 +1,53 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { TimelineCellResource } from "./TimelineCellResource"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Timeline response + */ +export class TimelineResponse { + /** + * The `TimelineResponse` `data`. + */ + "data"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return TimelineResponse.attributeTypeMap; + } + + public constructor() {} +}