diff --git a/.generated-info b/.generated-info index 92d81397a836..126fda6a0b0a 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "df31e44", - "generated": "2025-07-28 19:54:26.502" + "spec_repo_commit": "b75095c", + "generated": "2025-07-31 10:45:49.687" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index c26c8055f825..b125b71c69d5 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -6891,7 +6891,7 @@ components: - data type: object CaseAttributes: - description: Case attributes + description: Case resource attributes properties: archived_at: description: Timestamp of when the case was archived @@ -6899,6 +6899,8 @@ components: nullable: true readOnly: true type: string + attributes: + $ref: '#/components/schemas/CaseObjectAttributes' closed_at: description: Timestamp of when the case was closed format: date-time @@ -7003,6 +7005,13 @@ components: required: - data type: object + CaseObjectAttributes: + additionalProperties: + items: + type: string + type: array + description: The definition of `CaseObjectAttributes` object. + type: object CasePriority: default: NOT_DEFINED description: Case priority @@ -7098,6 +7107,33 @@ components: type: string x-enum-varnames: - STANDARD + CaseUpdateAttributes: + description: Case update attributes + properties: + attributes: + $ref: '#/components/schemas/CaseUpdateAttributesAttributes' + type: + $ref: '#/components/schemas/CaseResourceType' + required: + - attributes + - type + type: object + CaseUpdateAttributesAttributes: + description: Case update attributes attributes + properties: + attributes: + $ref: '#/components/schemas/CaseObjectAttributes' + required: + - attributes + type: object + CaseUpdateAttributesRequest: + description: Case update attributes request + properties: + data: + $ref: '#/components/schemas/CaseUpdateAttributes' + required: + - data + type: object CaseUpdatePriority: description: Case priority status properties: @@ -45579,6 +45615,44 @@ paths: summary: Assign case tags: - Case Management + /api/v2/cases/{case_id}/attributes: + post: + description: Update case attributes + operationId: UpdateAttributes + parameters: + - $ref: '#/components/parameters/CaseIDPathParameter' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CaseUpdateAttributesRequest' + description: Case attributes update payload + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CaseResponse' + description: OK + '400': + $ref: '#/components/responses/BadRequestResponse' + '401': + $ref: '#/components/responses/UnauthorizedResponse' + '403': + $ref: '#/components/responses/ForbiddenResponse' + '404': + $ref: '#/components/responses/NotFoundResponse' + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - cases_write + summary: Update case attributes + tags: + - Case Management /api/v2/cases/{case_id}/priority: post: description: Update case priority @@ -56012,12 +56086,13 @@ paths: following fields are available for findings:\n- `external_id`: The resource external ID related to the finding.\n- `description`: The description and remediation steps for the finding.\n- `datadog_link`: The Datadog relative - link for the finding.\n\n### Response\n\nThe response includes an array of - finding objects, pagination metadata, and a count of items that match the - query.\n\nEach finding object contains the following:\n\n- The finding ID - that can be used in a `GetFinding` request to retrieve the full finding details.\n- - Core attributes, including status, evaluation, high-level resource details, - muted state, and rule details.\n- `evaluation_changed_at` and `resource_discovery_date` + link for the finding.\n- `ip_addresses`: The list of private IP addresses + for the resource related to the finding.\n\n### Response\n\nThe response includes + an array of finding objects, pagination metadata, and a count of items that + match the query.\n\nEach finding object contains the following:\n\n- The finding + ID that can be used in a `GetFinding` request to retrieve the full finding + details.\n- Core attributes, including status, evaluation, high-level resource + details, muted state, and rule details.\n- `evaluation_changed_at` and `resource_discovery_date` time stamps.\n- An array of associated tags.\n" operationId: ListFindings parameters: @@ -56088,6 +56163,12 @@ paths: required: false schema: type: string + - description: Return only findings for the specified resource id. + in: query + name: filter[@resource_id] + required: false + schema: + type: string - description: Return findings that were found on a specified date (Unix ms) or date range (using comparison operators). example: '>=1678721573794' diff --git a/cassettes/features/v2/case_management/Archive-case-returns-Bad-Request-response.frozen b/cassettes/features/v2/case_management/Archive-case-returns-Bad-Request-response.frozen index 02ebd0b91060..081a252dabaf 100644 --- a/cassettes/features/v2/case_management/Archive-case-returns-Bad-Request-response.frozen +++ b/cassettes/features/v2/case_management/Archive-case-returns-Bad-Request-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:15.159Z \ No newline at end of file +2025-07-21T13:52:40.919Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Archive-case-returns-Bad-Request-response.yml b/cassettes/features/v2/case_management/Archive-case-returns-Bad-Request-response.yml index 959bc254a320..bec31cc9a385 100644 --- a/cassettes/features/v2/case_management/Archive-case-returns-Bad-Request-response.yml +++ b/cassettes/features/v2/case_management/Archive-case-returns-Bad-Request-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:15 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:40 GMT request: body: encoding: UTF-8 @@ -14,15 +14,15 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"id":"4e49aede-4c04-42d3-b5bc-f8eb4c1340df","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:15.280494299Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"4e49aede-4c04-42d3-b5bc-f8eb4c1340df","key":"DDFC-182","priority":"P4","public_id":"242","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"6706fe66-cabd-4b22-b4c5-dd478bba421a","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:41.25066Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"6706fe66-cabd-4b22-b4c5-dd478bba421a","key":"DDFC-72317","merge_status":"NOT_MERGED","priority":"P4","public_id":"72377","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json status: code: 201 message: Created -- recorded_at: Wed, 14 Feb 2024 18:55:15 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:40 GMT request: body: encoding: UTF-8 @@ -33,7 +33,7 @@ http_interactions: Content-Type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/4e49aede-4c04-42d3-b5bc-f8eb4c1340df/archive + uri: https://api.datadoghq.com/api/v2/cases/6706fe66-cabd-4b22-b4c5-dd478bba421a/archive response: body: encoding: UTF-8 diff --git a/cassettes/features/v2/case_management/Archive-case-returns-Not-Found-response.frozen b/cassettes/features/v2/case_management/Archive-case-returns-Not-Found-response.frozen index 16674248e303..59cf7189dfa3 100644 --- a/cassettes/features/v2/case_management/Archive-case-returns-Not-Found-response.frozen +++ b/cassettes/features/v2/case_management/Archive-case-returns-Not-Found-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:15.378Z \ No newline at end of file +2025-07-21T13:52:41.730Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Archive-case-returns-Not-Found-response.yml b/cassettes/features/v2/case_management/Archive-case-returns-Not-Found-response.yml index 1f492e1cf595..2a9cf8621db0 100644 --- a/cassettes/features/v2/case_management/Archive-case-returns-Not-Found-response.yml +++ b/cassettes/features/v2/case_management/Archive-case-returns-Not-Found-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:15 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:41 GMT request: body: encoding: UTF-8 diff --git a/cassettes/features/v2/case_management/Archive-case-returns-OK-response.frozen b/cassettes/features/v2/case_management/Archive-case-returns-OK-response.frozen index f8ce6d98bba0..57508d485486 100644 --- a/cassettes/features/v2/case_management/Archive-case-returns-OK-response.frozen +++ b/cassettes/features/v2/case_management/Archive-case-returns-OK-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:15.466Z \ No newline at end of file +2025-07-21T13:52:42.155Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Archive-case-returns-OK-response.yml b/cassettes/features/v2/case_management/Archive-case-returns-OK-response.yml index b4d065eee075..b9d1d6809465 100644 --- a/cassettes/features/v2/case_management/Archive-case-returns-OK-response.yml +++ b/cassettes/features/v2/case_management/Archive-case-returns-OK-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:15 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:42 GMT request: body: encoding: UTF-8 @@ -14,15 +14,15 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"id":"3752309b-6a77-4015-845a-02ff88647b4b","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:15.546103234Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"3752309b-6a77-4015-845a-02ff88647b4b","key":"DDFC-183","priority":"P4","public_id":"243","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"b074b409-24f8-42ae-b545-b1486429630d","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:42.51392Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"b074b409-24f8-42ae-b545-b1486429630d","key":"DDFC-72318","merge_status":"NOT_MERGED","priority":"P4","public_id":"72378","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json status: code: 201 message: Created -- recorded_at: Wed, 14 Feb 2024 18:55:15 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:42 GMT request: body: encoding: UTF-8 @@ -33,12 +33,12 @@ http_interactions: Content-Type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/3752309b-6a77-4015-845a-02ff88647b4b/archive + uri: https://api.datadoghq.com/api/v2/cases/b074b409-24f8-42ae-b545-b1486429630d/archive response: body: encoding: UTF-8 - string: '{"data":{"id":"3752309b-6a77-4015-845a-02ff88647b4b","type":"case","attributes":{"archived_at":"2024-02-14T18:55:15.641594121Z","attributes":{},"created_at":"2024-02-14T18:55:15.546103Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"3752309b-6a77-4015-845a-02ff88647b4b","key":"DDFC-183","priority":"P4","public_id":"243","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"modified_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"b074b409-24f8-42ae-b545-b1486429630d","type":"case","attributes":{"archived_at":"2025-07-21T13:52:42.933945716Z","attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:42.51392Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"b074b409-24f8-42ae-b545-b1486429630d","key":"DDFC-72318","merge_status":"NOT_MERGED","modified_at":"2025-07-21T13:52:42.933946Z","priority":"P4","public_id":"72378","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"modified_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json diff --git a/cassettes/features/v2/case_management/Assign-case-returns-Bad-Request-response.frozen b/cassettes/features/v2/case_management/Assign-case-returns-Bad-Request-response.frozen index 2749371a9b7e..7decaaaea4b9 100644 --- a/cassettes/features/v2/case_management/Assign-case-returns-Bad-Request-response.frozen +++ b/cassettes/features/v2/case_management/Assign-case-returns-Bad-Request-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:15.651Z \ No newline at end of file +2025-07-21T13:52:43.015Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Assign-case-returns-Bad-Request-response.yml b/cassettes/features/v2/case_management/Assign-case-returns-Bad-Request-response.yml index 5763284fc306..742e7cb72d2a 100644 --- a/cassettes/features/v2/case_management/Assign-case-returns-Bad-Request-response.yml +++ b/cassettes/features/v2/case_management/Assign-case-returns-Bad-Request-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:15 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:43 GMT request: body: encoding: UTF-8 @@ -14,15 +14,15 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"id":"cf2e3b59-d504-4714-9853-38e4ceddb858","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:15.728783622Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"cf2e3b59-d504-4714-9853-38e4ceddb858","key":"DDFC-184","priority":"P4","public_id":"244","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"510b0121-1477-43c0-8986-78f011016d48","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:43.335245Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"510b0121-1477-43c0-8986-78f011016d48","key":"DDFC-72319","merge_status":"NOT_MERGED","priority":"P4","public_id":"72379","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json status: code: 201 message: Created -- recorded_at: Wed, 14 Feb 2024 18:55:15 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:43 GMT request: body: encoding: UTF-8 @@ -33,12 +33,11 @@ http_interactions: Content-Type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/cf2e3b59-d504-4714-9853-38e4ceddb858/assign + uri: https://api.datadoghq.com/api/v2/cases/510b0121-1477-43c0-8986-78f011016d48/assign response: body: encoding: UTF-8 - string: '{"errors":[{"code":"invalid_command","title":"error when validating - input command: ''assigneeid'' field must be an uuid","meta":{"entity":"assigneeid","rule":"uuid"}}]}' + string: '{"errors":[{"status":"400","title":"Bad Request"}]}' headers: Content-Type: - application/vnd.api+json diff --git a/cassettes/features/v2/case_management/Assign-case-returns-Not-Found-response.frozen b/cassettes/features/v2/case_management/Assign-case-returns-Not-Found-response.frozen index dac002f7f37c..067940f74d7c 100644 --- a/cassettes/features/v2/case_management/Assign-case-returns-Not-Found-response.frozen +++ b/cassettes/features/v2/case_management/Assign-case-returns-Not-Found-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:15.832Z \ No newline at end of file +2025-07-21T13:52:43.820Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Assign-case-returns-Not-Found-response.yml b/cassettes/features/v2/case_management/Assign-case-returns-Not-Found-response.yml index d5fc44f424a7..12fdbc7a4082 100644 --- a/cassettes/features/v2/case_management/Assign-case-returns-Not-Found-response.yml +++ b/cassettes/features/v2/case_management/Assign-case-returns-Not-Found-response.yml @@ -1,9 +1,9 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:15 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:43 GMT request: body: encoding: UTF-8 - string: '{"data":{"attributes":{"email":"Test-Assign_case_returns_Not_Found_response-1707936915@datadoghq.com","title":"user + string: '{"data":{"attributes":{"email":"Test-Assign_case_returns_Not_Found_response-1753105963@datadoghq.com","title":"user title"},"type":"users"}}' headers: Accept: @@ -15,7 +15,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"type":"users","id":"9740b08d-cb6a-11ee-8bd8-2a1a3c7b5bdd","attributes":{"name":null,"handle":"test-assign_case_returns_not_found_response-1707936915@datadoghq.com","created_at":"2024-02-14T18:55:15.963542+00:00","modified_at":"2024-02-14T18:55:15.963542+00:00","email":"test-assign_case_returns_not_found_response-1707936915@datadoghq.com","icon":"https://secure.gravatar.com/avatar/379ecb2d1d9ca2e9ce66fa109609c256?s=48&d=retro","title":"user + string: '{"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"}}}}} ' @@ -25,11 +25,11 @@ http_interactions: status: code: 201 message: Created -- recorded_at: Wed, 14 Feb 2024 18:55:15 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:43 GMT request: body: encoding: UTF-8 - string: '{"data":{"attributes":{"assignee_id":"9740b08d-cb6a-11ee-8bd8-2a1a3c7b5bdd"},"type":"case"}}' + string: '{"data":{"attributes":{"assignee_id":"fa033cd0-6639-11f0-b658-96290b93dbfc"},"type":"case"}}' headers: Accept: - application/json @@ -47,14 +47,14 @@ http_interactions: status: code: 404 message: Not Found -- recorded_at: Wed, 14 Feb 2024 18:55:15 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:43 GMT request: body: null headers: Accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/users/9740b08d-cb6a-11ee-8bd8-2a1a3c7b5bdd + uri: https://api.datadoghq.com/api/v2/users/fa033cd0-6639-11f0-b658-96290b93dbfc response: body: encoding: UTF-8 diff --git a/cassettes/features/v2/case_management/Assign-case-returns-OK-response.frozen b/cassettes/features/v2/case_management/Assign-case-returns-OK-response.frozen index 63999fedab29..4e634aa5c58f 100644 --- a/cassettes/features/v2/case_management/Assign-case-returns-OK-response.frozen +++ b/cassettes/features/v2/case_management/Assign-case-returns-OK-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:16.362Z \ No newline at end of file +2025-07-21T13:52:45.309Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Assign-case-returns-OK-response.yml b/cassettes/features/v2/case_management/Assign-case-returns-OK-response.yml index cb8f7aad5e03..b736d714c8e5 100644 --- a/cassettes/features/v2/case_management/Assign-case-returns-OK-response.yml +++ b/cassettes/features/v2/case_management/Assign-case-returns-OK-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:16 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:45 GMT request: body: encoding: UTF-8 @@ -14,19 +14,19 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"id":"2d07d89b-2f91-47c2-b3ea-ee28ffee5b4c","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:16.445823452Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"2d07d89b-2f91-47c2-b3ea-ee28ffee5b4c","key":"DDFC-185","priority":"P4","public_id":"245","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"fd1228dc-d475-4a0b-8677-7a9ce3b50b3d","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:45.654592Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"fd1228dc-d475-4a0b-8677-7a9ce3b50b3d","key":"DDFC-72320","merge_status":"NOT_MERGED","priority":"P4","public_id":"72380","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json status: code: 201 message: Created -- recorded_at: Wed, 14 Feb 2024 18:55:16 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:45 GMT request: body: encoding: UTF-8 - string: '{"data":{"attributes":{"email":"Test-Assign_case_returns_OK_response-1707936916@datadoghq.com","title":"user + string: '{"data":{"attributes":{"email":"Test-Assign_case_returns_OK_response-1753105965@datadoghq.com","title":"user title"},"type":"users"}}' headers: Accept: @@ -38,7 +38,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"type":"users","id":"97a38d32-cb6a-11ee-9645-0a530ef9b7d3","attributes":{"name":null,"handle":"test-assign_case_returns_ok_response-1707936916@datadoghq.com","created_at":"2024-02-14T18:55:16.611469+00:00","modified_at":"2024-02-14T18:55:16.611469+00:00","email":"test-assign_case_returns_ok_response-1707936916@datadoghq.com","icon":"https://secure.gravatar.com/avatar/982f69dc821d8ef307cfc8907452899b?s=48&d=retro","title":"user + string: '{"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"}}}}} ' @@ -48,37 +48,37 @@ http_interactions: status: code: 201 message: Created -- recorded_at: Wed, 14 Feb 2024 18:55:16 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:45 GMT request: body: encoding: UTF-8 - string: '{"data":{"attributes":{"assignee_id":"97a38d32-cb6a-11ee-9645-0a530ef9b7d3"},"type":"case"}}' + string: '{"data":{"attributes":{"assignee_id":"fb218c6d-6639-11f0-a2d3-1a819e56f795"},"type":"case"}}' headers: Accept: - application/json Content-Type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/2d07d89b-2f91-47c2-b3ea-ee28ffee5b4c/assign + uri: https://api.datadoghq.com/api/v2/cases/fd1228dc-d475-4a0b-8677-7a9ce3b50b3d/assign response: body: encoding: UTF-8 - string: '{"data":{"id":"2d07d89b-2f91-47c2-b3ea-ee28ffee5b4c","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:16.445823Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"2d07d89b-2f91-47c2-b3ea-ee28ffee5b4c","key":"DDFC-185","modified_at":"2024-02-14T18:55:16.737803Z","priority":"P4","public_id":"245","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"assignee":{"data":{"id":"97a38d32-cb6a-11ee-9645-0a530ef9b7d3","type":"user"}},"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"modified_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}},{"id":"97a38d32-cb6a-11ee-9645-0a530ef9b7d3","type":"user","attributes":{"email":"test-assign_case_returns_ok_response-1707936916@datadoghq.com","handle":"test-assign_case_returns_ok_response-1707936916@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"fd1228dc-d475-4a0b-8677-7a9ce3b50b3d","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:45.654592Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"fd1228dc-d475-4a0b-8677-7a9ce3b50b3d","key":"DDFC-72320","merge_status":"NOT_MERGED","modified_at":"2025-07-21T13:52:46.52116Z","priority":"P4","public_id":"72380","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"assignee":{"data":{"id":"fb218c6d-6639-11f0-a2d3-1a819e56f795","type":"user"}},"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"modified_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}},{"id":"fb218c6d-6639-11f0-a2d3-1a819e56f795","type":"user","attributes":{"active":false,"email":"test-assign_case_returns_ok_response-1753105965@datadoghq.com","handle":"test-assign_case_returns_ok_response-1753105965@datadoghq.com","name":""}}]}' headers: Content-Type: - application/vnd.api+json status: code: 200 message: OK -- recorded_at: Wed, 14 Feb 2024 18:55:16 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:45 GMT request: body: null headers: Accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/users/97a38d32-cb6a-11ee-9645-0a530ef9b7d3 + uri: https://api.datadoghq.com/api/v2/users/fb218c6d-6639-11f0-a2d3-1a819e56f795 response: body: encoding: UTF-8 diff --git a/cassettes/features/v2/case_management/Create-a-case-returns-Bad-Request-response.frozen b/cassettes/features/v2/case_management/Create-a-case-returns-Bad-Request-response.frozen index 3d430913723b..4494f306b1b8 100644 --- a/cassettes/features/v2/case_management/Create-a-case-returns-Bad-Request-response.frozen +++ b/cassettes/features/v2/case_management/Create-a-case-returns-Bad-Request-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:16.995Z \ No newline at end of file +2025-07-21T13:52:47.155Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Create-a-case-returns-Bad-Request-response.yml b/cassettes/features/v2/case_management/Create-a-case-returns-Bad-Request-response.yml index 2077fb2d0ea7..7350c8f9a86e 100644 --- a/cassettes/features/v2/case_management/Create-a-case-returns-Bad-Request-response.yml +++ b/cassettes/features/v2/case_management/Create-a-case-returns-Bad-Request-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:16 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:47 GMT request: body: encoding: UTF-8 diff --git a/cassettes/features/v2/case_management/Create-a-case-returns-CREATED-response.frozen b/cassettes/features/v2/case_management/Create-a-case-returns-CREATED-response.frozen index d0a1a57a4234..c1e8fb0c3bfb 100644 --- a/cassettes/features/v2/case_management/Create-a-case-returns-CREATED-response.frozen +++ b/cassettes/features/v2/case_management/Create-a-case-returns-CREATED-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:17.074Z \ No newline at end of file +2025-07-21T13:52:47.527Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Create-a-case-returns-CREATED-response.yml b/cassettes/features/v2/case_management/Create-a-case-returns-CREATED-response.yml index 147fd119b21d..f9e88360541e 100644 --- a/cassettes/features/v2/case_management/Create-a-case-returns-CREATED-response.yml +++ b/cassettes/features/v2/case_management/Create-a-case-returns-CREATED-response.yml @@ -1,9 +1,9 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:17 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:47 GMT request: body: encoding: UTF-8 - string: '{"data":{"attributes":{"email":"Test-Create_a_case_returns_CREATED_response-1707936917@datadoghq.com","title":"user + string: '{"data":{"attributes":{"email":"Test-Create_a_case_returns_CREATED_response-1753105967@datadoghq.com","title":"user title"},"type":"users"}}' headers: Accept: @@ -15,7 +15,7 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"type":"users","id":"97fb5e7f-cb6a-11ee-8de6-d2393b962484","attributes":{"name":null,"handle":"test-create_a_case_returns_created_response-1707936917@datadoghq.com","created_at":"2024-02-14T18:55:17.186960+00:00","modified_at":"2024-02-14T18:55:17.186960+00:00","email":"test-create_a_case_returns_created_response-1707936917@datadoghq.com","icon":"https://secure.gravatar.com/avatar/04ba872d0c124a11691bb75e2b774d08?s=48&d=retro","title":"user + string: '{"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"}}}}} ' @@ -25,12 +25,12 @@ http_interactions: status: code: 201 message: Created -- recorded_at: Wed, 14 Feb 2024 18:55:17 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:47 GMT request: body: encoding: UTF-8 string: '{"data":{"attributes":{"priority":"NOT_DEFINED","title":"Security breach - investigation in 8216c516b64665ce","type":"STANDARD"},"relationships":{"assignee":{"data":{"id":"97fb5e7f-cb6a-11ee-8de6-d2393b962484","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}},"type":"case"}}' + investigation in 20df485fb3942e6f","type":"STANDARD"},"relationships":{"assignee":{"data":{"id":"fc35a29f-6639-11f0-8bee-a24ce66fd256","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}},"type":"case"}}' headers: Accept: - application/json @@ -41,22 +41,22 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"id":"93237ca1-b5ee-4116-9bfc-d94f99cd9629","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:17.301872096Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"93237ca1-b5ee-4116-9bfc-d94f99cd9629","key":"DDFC-186","priority":"NOT_DEFINED","public_id":"246","status":"OPEN","title":"Security - breach investigation in 8216c516b64665ce","type":"STANDARD"},"relationships":{"assignee":{"data":{"id":"97fb5e7f-cb6a-11ee-8de6-d2393b962484","type":"user"}},"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}},{"id":"97fb5e7f-cb6a-11ee-8de6-d2393b962484","type":"user","attributes":{"email":"test-create_a_case_returns_created_response-1707936917@datadoghq.com","handle":"test-create_a_case_returns_created_response-1707936917@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"2275ce7b-781b-4539-b0f3-2cc1b2140565","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:48.320633Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"2275ce7b-781b-4539-b0f3-2cc1b2140565","key":"DDFC-72321","merge_status":"NOT_MERGED","priority":"NOT_DEFINED","public_id":"72381","status":"OPEN","title":"Security + breach investigation in 20df485fb3942e6f","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"assignee":{"data":{"id":"fc35a29f-6639-11f0-8bee-a24ce66fd256","type":"user"}},"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}},{"id":"fc35a29f-6639-11f0-8bee-a24ce66fd256","type":"user","attributes":{"active":false,"email":"test-create_a_case_returns_created_response-1753105967@datadoghq.com","handle":"test-create_a_case_returns_created_response-1753105967@datadoghq.com","name":""}}]}' headers: Content-Type: - application/vnd.api+json status: code: 201 message: Created -- recorded_at: Wed, 14 Feb 2024 18:55:17 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:47 GMT request: body: null headers: Accept: - '*/*' method: DELETE - uri: https://api.datadoghq.com/api/v2/users/97fb5e7f-cb6a-11ee-8de6-d2393b962484 + uri: https://api.datadoghq.com/api/v2/users/fc35a29f-6639-11f0-8bee-a24ce66fd256 response: body: encoding: UTF-8 diff --git a/cassettes/features/v2/case_management/Get-the-details-of-a-case-returns-Not-Found-response.frozen b/cassettes/features/v2/case_management/Get-the-details-of-a-case-returns-Not-Found-response.frozen index 1f1e9770dced..65a7dda98774 100644 --- a/cassettes/features/v2/case_management/Get-the-details-of-a-case-returns-Not-Found-response.frozen +++ b/cassettes/features/v2/case_management/Get-the-details-of-a-case-returns-Not-Found-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:17.678Z \ No newline at end of file +2025-07-21T13:52:48.953Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Get-the-details-of-a-case-returns-Not-Found-response.yml b/cassettes/features/v2/case_management/Get-the-details-of-a-case-returns-Not-Found-response.yml index 181e36b7bed9..c1cfd8a8bc41 100644 --- a/cassettes/features/v2/case_management/Get-the-details-of-a-case-returns-Not-Found-response.yml +++ b/cassettes/features/v2/case_management/Get-the-details-of-a-case-returns-Not-Found-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:17 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:48 GMT request: body: null headers: diff --git a/cassettes/features/v2/case_management/Get-the-details-of-a-case-returns-OK-response.frozen b/cassettes/features/v2/case_management/Get-the-details-of-a-case-returns-OK-response.frozen index ce3e1d89d5d7..683f8abed3a5 100644 --- a/cassettes/features/v2/case_management/Get-the-details-of-a-case-returns-OK-response.frozen +++ b/cassettes/features/v2/case_management/Get-the-details-of-a-case-returns-OK-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:17.758Z \ No newline at end of file +2025-07-21T13:52:49.345Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Get-the-details-of-a-case-returns-OK-response.yml b/cassettes/features/v2/case_management/Get-the-details-of-a-case-returns-OK-response.yml index 4a3e29a574e8..396cbb0f1872 100644 --- a/cassettes/features/v2/case_management/Get-the-details-of-a-case-returns-OK-response.yml +++ b/cassettes/features/v2/case_management/Get-the-details-of-a-case-returns-OK-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:17 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:49 GMT request: body: encoding: UTF-8 @@ -14,27 +14,27 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"id":"d981cc6f-654e-4528-8451-d3d99259d4d6","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:17.837538892Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"d981cc6f-654e-4528-8451-d3d99259d4d6","key":"DDFC-187","priority":"P4","public_id":"247","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"5e66536f-3946-41fd-9e0f-183e719d7128","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:49.694835Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"5e66536f-3946-41fd-9e0f-183e719d7128","key":"DDFC-72322","merge_status":"NOT_MERGED","priority":"P4","public_id":"72382","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json status: code: 201 message: Created -- recorded_at: Wed, 14 Feb 2024 18:55:17 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:49 GMT request: body: null headers: Accept: - application/json method: GET - uri: https://api.datadoghq.com/api/v2/cases/d981cc6f-654e-4528-8451-d3d99259d4d6 + uri: https://api.datadoghq.com/api/v2/cases/5e66536f-3946-41fd-9e0f-183e719d7128 response: body: encoding: UTF-8 - string: '{"data":{"id":"d981cc6f-654e-4528-8451-d3d99259d4d6","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:17.837539Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"d981cc6f-654e-4528-8451-d3d99259d4d6","key":"DDFC-187","priority":"P4","public_id":"247","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"5e66536f-3946-41fd-9e0f-183e719d7128","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:49.694835Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"5e66536f-3946-41fd-9e0f-183e719d7128","key":"DDFC-72322","merge_status":"NOT_MERGED","priority":"P4","public_id":"72382","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json diff --git a/cassettes/features/v2/case_management/Unarchive-case-returns-Bad-Request-response.frozen b/cassettes/features/v2/case_management/Unarchive-case-returns-Bad-Request-response.frozen index 5b768a1c8862..22ddf6aec45d 100644 --- a/cassettes/features/v2/case_management/Unarchive-case-returns-Bad-Request-response.frozen +++ b/cassettes/features/v2/case_management/Unarchive-case-returns-Bad-Request-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:17.936Z \ No newline at end of file +2025-07-21T13:52:50.131Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Unarchive-case-returns-Bad-Request-response.yml b/cassettes/features/v2/case_management/Unarchive-case-returns-Bad-Request-response.yml index 0c292bf2aaf2..c6a71d7efe71 100644 --- a/cassettes/features/v2/case_management/Unarchive-case-returns-Bad-Request-response.yml +++ b/cassettes/features/v2/case_management/Unarchive-case-returns-Bad-Request-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:17 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:50 GMT request: body: encoding: UTF-8 @@ -14,15 +14,15 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"id":"7c588891-1486-4cf6-992f-f0c3a97f0245","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:18.021909299Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"7c588891-1486-4cf6-992f-f0c3a97f0245","key":"DDFC-188","priority":"P4","public_id":"248","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"5fd92551-50b8-46e9-899d-5846cf3eab9e","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:50.459513Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"5fd92551-50b8-46e9-899d-5846cf3eab9e","key":"DDFC-72323","merge_status":"NOT_MERGED","priority":"P4","public_id":"72383","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json status: code: 201 message: Created -- recorded_at: Wed, 14 Feb 2024 18:55:17 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:50 GMT request: body: encoding: UTF-8 @@ -33,7 +33,7 @@ http_interactions: Content-Type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/7c588891-1486-4cf6-992f-f0c3a97f0245/unarchive + uri: https://api.datadoghq.com/api/v2/cases/5fd92551-50b8-46e9-899d-5846cf3eab9e/unarchive response: body: encoding: UTF-8 diff --git a/cassettes/features/v2/case_management/Unarchive-case-returns-Not-Found-response.frozen b/cassettes/features/v2/case_management/Unarchive-case-returns-Not-Found-response.frozen index 034f1d4aa817..091e5f1693e3 100644 --- a/cassettes/features/v2/case_management/Unarchive-case-returns-Not-Found-response.frozen +++ b/cassettes/features/v2/case_management/Unarchive-case-returns-Not-Found-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:18.130Z \ No newline at end of file +2025-07-21T13:52:50.895Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Unarchive-case-returns-Not-Found-response.yml b/cassettes/features/v2/case_management/Unarchive-case-returns-Not-Found-response.yml index 4a350024090a..f2316fa48682 100644 --- a/cassettes/features/v2/case_management/Unarchive-case-returns-Not-Found-response.yml +++ b/cassettes/features/v2/case_management/Unarchive-case-returns-Not-Found-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:18 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:50 GMT request: body: encoding: UTF-8 diff --git a/cassettes/features/v2/case_management/Unarchive-case-returns-OK-response.frozen b/cassettes/features/v2/case_management/Unarchive-case-returns-OK-response.frozen index df7e85e9f41c..c118a3ee0031 100644 --- a/cassettes/features/v2/case_management/Unarchive-case-returns-OK-response.frozen +++ b/cassettes/features/v2/case_management/Unarchive-case-returns-OK-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:18.220Z \ No newline at end of file +2025-07-21T13:52:51.279Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Unarchive-case-returns-OK-response.yml b/cassettes/features/v2/case_management/Unarchive-case-returns-OK-response.yml index c67bca71cb3b..ada8cce2fc3c 100644 --- a/cassettes/features/v2/case_management/Unarchive-case-returns-OK-response.yml +++ b/cassettes/features/v2/case_management/Unarchive-case-returns-OK-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:18 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:51 GMT request: body: encoding: UTF-8 @@ -14,15 +14,15 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"id":"56b03839-5199-4207-94e6-648f5c363d1d","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:18.285988591Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"56b03839-5199-4207-94e6-648f5c363d1d","key":"DDFC-189","priority":"P4","public_id":"249","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"b6a0f192-9be6-4898-b05b-f4cc308de679","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:51.610535Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"b6a0f192-9be6-4898-b05b-f4cc308de679","key":"DDFC-72324","merge_status":"NOT_MERGED","priority":"P4","public_id":"72384","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json status: code: 201 message: Created -- recorded_at: Wed, 14 Feb 2024 18:55:18 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:51 GMT request: body: encoding: UTF-8 @@ -33,12 +33,12 @@ http_interactions: Content-Type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/56b03839-5199-4207-94e6-648f5c363d1d/unarchive + uri: https://api.datadoghq.com/api/v2/cases/b6a0f192-9be6-4898-b05b-f4cc308de679/unarchive response: body: encoding: UTF-8 - string: '{"data":{"id":"56b03839-5199-4207-94e6-648f5c363d1d","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:18.285989Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"56b03839-5199-4207-94e6-648f5c363d1d","key":"DDFC-189","priority":"P4","public_id":"249","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"b6a0f192-9be6-4898-b05b-f4cc308de679","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:51.610535Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"b6a0f192-9be6-4898-b05b-f4cc308de679","key":"DDFC-72324","merge_status":"NOT_MERGED","priority":"P4","public_id":"72384","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json diff --git a/cassettes/features/v2/case_management/Unassign-case-returns-Bad-Request-response.frozen b/cassettes/features/v2/case_management/Unassign-case-returns-Bad-Request-response.frozen index 5c53ccfe49e4..7b3f4dbd149b 100644 --- a/cassettes/features/v2/case_management/Unassign-case-returns-Bad-Request-response.frozen +++ b/cassettes/features/v2/case_management/Unassign-case-returns-Bad-Request-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:18.364Z \ No newline at end of file +2025-07-21T13:52:52.067Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Unassign-case-returns-Bad-Request-response.yml b/cassettes/features/v2/case_management/Unassign-case-returns-Bad-Request-response.yml index 53f969642bdf..0abdcce544c8 100644 --- a/cassettes/features/v2/case_management/Unassign-case-returns-Bad-Request-response.yml +++ b/cassettes/features/v2/case_management/Unassign-case-returns-Bad-Request-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:18 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:52 GMT request: body: encoding: UTF-8 @@ -14,15 +14,15 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"id":"4c89618c-11cc-40ba-bc6c-000e862910b1","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:18.434117143Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"4c89618c-11cc-40ba-bc6c-000e862910b1","key":"DDFC-190","priority":"P4","public_id":"250","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"6e4af4e8-67fd-461a-9664-adf910673121","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:52.413703Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"6e4af4e8-67fd-461a-9664-adf910673121","key":"DDFC-72325","merge_status":"NOT_MERGED","priority":"P4","public_id":"72385","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json status: code: 201 message: Created -- recorded_at: Wed, 14 Feb 2024 18:55:18 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:52 GMT request: body: encoding: UTF-8 @@ -33,7 +33,7 @@ http_interactions: Content-Type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/4c89618c-11cc-40ba-bc6c-000e862910b1/unassign + uri: https://api.datadoghq.com/api/v2/cases/6e4af4e8-67fd-461a-9664-adf910673121/unassign response: body: encoding: UTF-8 diff --git a/cassettes/features/v2/case_management/Unassign-case-returns-Not-Found-response.frozen b/cassettes/features/v2/case_management/Unassign-case-returns-Not-Found-response.frozen index 6a08f9742dc2..d41e392f87a9 100644 --- a/cassettes/features/v2/case_management/Unassign-case-returns-Not-Found-response.frozen +++ b/cassettes/features/v2/case_management/Unassign-case-returns-Not-Found-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:18.522Z \ No newline at end of file +2025-07-21T13:52:52.854Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Unassign-case-returns-Not-Found-response.yml b/cassettes/features/v2/case_management/Unassign-case-returns-Not-Found-response.yml index 82392b32ce89..40444903b450 100644 --- a/cassettes/features/v2/case_management/Unassign-case-returns-Not-Found-response.yml +++ b/cassettes/features/v2/case_management/Unassign-case-returns-Not-Found-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:18 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:52 GMT request: body: encoding: UTF-8 diff --git a/cassettes/features/v2/case_management/Unassign-case-returns-OK-response.frozen b/cassettes/features/v2/case_management/Unassign-case-returns-OK-response.frozen index e57766f0dfbf..f5e55d1024ec 100644 --- a/cassettes/features/v2/case_management/Unassign-case-returns-OK-response.frozen +++ b/cassettes/features/v2/case_management/Unassign-case-returns-OK-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:18.613Z \ No newline at end of file +2025-07-21T13:52:53.249Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Unassign-case-returns-OK-response.yml b/cassettes/features/v2/case_management/Unassign-case-returns-OK-response.yml index ce4c53838ceb..77086c344d64 100644 --- a/cassettes/features/v2/case_management/Unassign-case-returns-OK-response.yml +++ b/cassettes/features/v2/case_management/Unassign-case-returns-OK-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:18 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:53 GMT request: body: encoding: UTF-8 @@ -14,15 +14,15 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"id":"fa3c26fc-fada-4308-8888-4067d97acf06","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:18.689935858Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"fa3c26fc-fada-4308-8888-4067d97acf06","key":"DDFC-191","priority":"P4","public_id":"251","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"b222e3e7-19fe-434f-ab26-7e0845775ccd","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:53.581415Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"b222e3e7-19fe-434f-ab26-7e0845775ccd","key":"DDFC-72326","merge_status":"NOT_MERGED","priority":"P4","public_id":"72386","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json status: code: 201 message: Created -- recorded_at: Wed, 14 Feb 2024 18:55:18 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:53 GMT request: body: encoding: UTF-8 @@ -33,12 +33,12 @@ http_interactions: Content-Type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/fa3c26fc-fada-4308-8888-4067d97acf06/unassign + uri: https://api.datadoghq.com/api/v2/cases/b222e3e7-19fe-434f-ab26-7e0845775ccd/unassign response: body: encoding: UTF-8 - string: '{"data":{"id":"fa3c26fc-fada-4308-8888-4067d97acf06","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:18.689936Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"fa3c26fc-fada-4308-8888-4067d97acf06","key":"DDFC-191","priority":"P4","public_id":"251","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"b222e3e7-19fe-434f-ab26-7e0845775ccd","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:53.581415Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"b222e3e7-19fe-434f-ab26-7e0845775ccd","key":"DDFC-72326","merge_status":"NOT_MERGED","priority":"P4","public_id":"72386","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json diff --git a/cassettes/features/v2/case_management/Update-case-attributes-returns-Bad-Request-response.frozen b/cassettes/features/v2/case_management/Update-case-attributes-returns-Bad-Request-response.frozen new file mode 100644 index 000000000000..323ed8c60687 --- /dev/null +++ b/cassettes/features/v2/case_management/Update-case-attributes-returns-Bad-Request-response.frozen @@ -0,0 +1 @@ +2025-07-21T08:23:41.749Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Update-case-attributes-returns-Bad-Request-response.yml b/cassettes/features/v2/case_management/Update-case-attributes-returns-Bad-Request-response.yml new file mode 100644 index 000000000000..9a4f7c95f918 --- /dev/null +++ b/cassettes/features/v2/case_management/Update-case-attributes-returns-Bad-Request-response.yml @@ -0,0 +1,49 @@ +http_interactions: +- recorded_at: Mon, 21 Jul 2025 08:23:41 GMT + request: + body: + encoding: UTF-8 + string: '{"data":{"attributes":{"priority":"P4","title":"My new case","type":"STANDARD"},"relationships":{"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}},"type":"case"}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + method: POST + uri: https://api.datadoghq.com/api/v2/cases + response: + body: + encoding: UTF-8 + string: '{"data":{"id":"0fac8699-2b39-4acb-b290-05a0fd19eb95","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T08:23:42.090561Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"0fac8699-2b39-4acb-b290-05a0fd19eb95","key":"DDFC-72247","merge_status":"NOT_MERGED","priority":"P4","public_id":"72307","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","type":"user","attributes":{"active":true,"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI + Account"}}]}' + headers: + Content-Type: + - application/vnd.api+json + status: + code: 201 + message: Created +- recorded_at: Mon, 21 Jul 2025 08:23:41 GMT + request: + body: + encoding: UTF-8 + string: '{"data":{"attributes":{"attributes":{"service":"web-store"}},"type":"case"}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + method: POST + uri: https://api.datadoghq.com/api/v2/cases/0fac8699-2b39-4acb-b290-05a0fd19eb95/attributes + response: + body: + encoding: UTF-8 + string: '{"errors":[{"status":"400","title":"Bad Request","detail":"error decoding + attribute \"attributes\": invalid type string"}]}' + headers: + Content-Type: + - application/vnd.api+json + status: + code: 400 + message: Bad Request +recorded_with: VCR 6.0.0 diff --git a/cassettes/features/v2/case_management/Update-case-attributes-returns-Not-Found-response.frozen b/cassettes/features/v2/case_management/Update-case-attributes-returns-Not-Found-response.frozen new file mode 100644 index 000000000000..9cc9365f1352 --- /dev/null +++ b/cassettes/features/v2/case_management/Update-case-attributes-returns-Not-Found-response.frozen @@ -0,0 +1 @@ +2025-07-21T08:23:42.266Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Update-case-attributes-returns-Not-Found-response.yml b/cassettes/features/v2/case_management/Update-case-attributes-returns-Not-Found-response.yml new file mode 100644 index 000000000000..6e58010a122c --- /dev/null +++ b/cassettes/features/v2/case_management/Update-case-attributes-returns-Not-Found-response.yml @@ -0,0 +1,24 @@ +http_interactions: +- recorded_at: Mon, 21 Jul 2025 08:23:42 GMT + request: + body: + encoding: UTF-8 + string: '{"data":{"attributes":{"attributes":{}},"type":"case"}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + method: POST + uri: https://api.datadoghq.com/api/v2/cases/67d80aa3-36ff-44b9-a694-c501a7591737/attributes + response: + body: + encoding: UTF-8 + string: '{"errors":[{"code":"resource_not_found","title":"case not found"}]}' + headers: + Content-Type: + - application/vnd.api+json + status: + code: 404 + message: Not Found +recorded_with: VCR 6.0.0 diff --git a/cassettes/features/v2/case_management/Update-case-attributes-returns-OK-response.frozen b/cassettes/features/v2/case_management/Update-case-attributes-returns-OK-response.frozen new file mode 100644 index 000000000000..d438f1b5b226 --- /dev/null +++ b/cassettes/features/v2/case_management/Update-case-attributes-returns-OK-response.frozen @@ -0,0 +1 @@ +2025-07-21T18:43:31.851Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Update-case-attributes-returns-OK-response.yml b/cassettes/features/v2/case_management/Update-case-attributes-returns-OK-response.yml new file mode 100644 index 000000000000..760e9511db26 --- /dev/null +++ b/cassettes/features/v2/case_management/Update-case-attributes-returns-OK-response.yml @@ -0,0 +1,48 @@ +http_interactions: +- recorded_at: Mon, 21 Jul 2025 18:43:31 GMT + request: + body: + encoding: UTF-8 + string: '{"data":{"attributes":{"priority":"P4","title":"My new case","type":"STANDARD"},"relationships":{"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}},"type":"case"}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + method: POST + uri: https://api.datadoghq.com/api/v2/cases + response: + body: + encoding: UTF-8 + string: '{"data":{"id":"f396c907-777d-4985-9e9d-2a420a0c0515","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T18:42:41.549781Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"f396c907-777d-4985-9e9d-2a420a0c0515","key":"DDFC-72342","merge_status":"NOT_MERGED","priority":"P4","public_id":"72402","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + headers: + Content-Type: + - application/vnd.api+json + status: + code: 201 + message: Created +- recorded_at: Mon, 21 Jul 2025 18:43:31 GMT + request: + body: + encoding: UTF-8 + string: '{"data":{"attributes":{"attributes":{"env":["test"],"service":["web-store","web-api"],"team":["engineer"]}},"type":"case"}}' + headers: + Accept: + - application/json + Content-Type: + - application/json + method: POST + uri: https://api.datadoghq.com/api/v2/cases/f396c907-777d-4985-9e9d-2a420a0c0515/attributes + response: + body: + encoding: UTF-8 + string: '{"data":{"id":"f396c907-777d-4985-9e9d-2a420a0c0515","type":"case","attributes":{"attributes":{"env":["test"],"service":["web-store","web-api"],"team":["engineer"]},"comment_count":0,"created_at":"2025-07-21T18:42:41.549781Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"f396c907-777d-4985-9e9d-2a420a0c0515","key":"DDFC-72342","merge_status":"NOT_MERGED","modified_at":"2025-07-21T18:42:41.694883Z","priority":"P4","public_id":"72402","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"modified_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' + headers: + Content-Type: + - application/vnd.api+json + status: + code: 200 + message: OK +recorded_with: VCR 6.0.0 diff --git a/cassettes/features/v2/case_management/Update-case-priority-returns-Bad-Request-response.frozen b/cassettes/features/v2/case_management/Update-case-priority-returns-Bad-Request-response.frozen index b44760c0495f..34a73d972c26 100644 --- a/cassettes/features/v2/case_management/Update-case-priority-returns-Bad-Request-response.frozen +++ b/cassettes/features/v2/case_management/Update-case-priority-returns-Bad-Request-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:18.767Z \ No newline at end of file +2025-07-21T13:52:56.000Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Update-case-priority-returns-Bad-Request-response.yml b/cassettes/features/v2/case_management/Update-case-priority-returns-Bad-Request-response.yml index 168bd2294248..154bcb0930be 100644 --- a/cassettes/features/v2/case_management/Update-case-priority-returns-Bad-Request-response.yml +++ b/cassettes/features/v2/case_management/Update-case-priority-returns-Bad-Request-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:18 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:56 GMT request: body: encoding: UTF-8 @@ -14,15 +14,15 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"id":"683c81be-fa27-42c8-957c-897923a2f660","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:18.846163387Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"683c81be-fa27-42c8-957c-897923a2f660","key":"DDFC-192","priority":"P4","public_id":"252","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"57868e9a-2697-4384-b724-8e118b20a7f3","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:56.317328Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"57868e9a-2697-4384-b724-8e118b20a7f3","key":"DDFC-72329","merge_status":"NOT_MERGED","priority":"P4","public_id":"72389","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json status: code: 201 message: Created -- recorded_at: Wed, 14 Feb 2024 18:55:18 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:56 GMT request: body: encoding: UTF-8 @@ -33,12 +33,12 @@ http_interactions: Content-Type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/683c81be-fa27-42c8-957c-897923a2f660/priority + uri: https://api.datadoghq.com/api/v2/cases/57868e9a-2697-4384-b724-8e118b20a7f3/priority response: body: encoding: UTF-8 string: '{"errors":[{"title":"Generic Error","detail":"invalid priority P1234. - Must be one of P1, P2, P3, P4, P5, NOT_DEFINED"}]}' + Must be one of P2, P3, P4, P5, NOT_DEFINED, P1"}]}' headers: Content-Type: - application/vnd.api+json diff --git a/cassettes/features/v2/case_management/Update-case-priority-returns-Not-Found-response.frozen b/cassettes/features/v2/case_management/Update-case-priority-returns-Not-Found-response.frozen index e6fee30e9dc5..f6b3d2f6982f 100644 --- a/cassettes/features/v2/case_management/Update-case-priority-returns-Not-Found-response.frozen +++ b/cassettes/features/v2/case_management/Update-case-priority-returns-Not-Found-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:18.927Z \ No newline at end of file +2025-07-21T13:52:56.765Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Update-case-priority-returns-Not-Found-response.yml b/cassettes/features/v2/case_management/Update-case-priority-returns-Not-Found-response.yml index b1fac0165fa3..a0816d1af9f8 100644 --- a/cassettes/features/v2/case_management/Update-case-priority-returns-Not-Found-response.yml +++ b/cassettes/features/v2/case_management/Update-case-priority-returns-Not-Found-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:18 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:56 GMT request: body: encoding: UTF-8 diff --git a/cassettes/features/v2/case_management/Update-case-priority-returns-OK-response.frozen b/cassettes/features/v2/case_management/Update-case-priority-returns-OK-response.frozen index 42fe59de7b36..9b134590a27a 100644 --- a/cassettes/features/v2/case_management/Update-case-priority-returns-OK-response.frozen +++ b/cassettes/features/v2/case_management/Update-case-priority-returns-OK-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:19.004Z \ No newline at end of file +2025-07-21T13:52:57.162Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Update-case-priority-returns-OK-response.yml b/cassettes/features/v2/case_management/Update-case-priority-returns-OK-response.yml index bbf307f92c8a..0b578f1c6bb5 100644 --- a/cassettes/features/v2/case_management/Update-case-priority-returns-OK-response.yml +++ b/cassettes/features/v2/case_management/Update-case-priority-returns-OK-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:19 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:57 GMT request: body: encoding: UTF-8 @@ -14,15 +14,15 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"id":"c55de906-a08b-4916-ade3-5f1b268379c3","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:19.080339451Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"c55de906-a08b-4916-ade3-5f1b268379c3","key":"DDFC-193","priority":"P4","public_id":"253","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"18014b24-6e64-4ca5-8cac-7ccbdd65258b","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:57.488697Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"18014b24-6e64-4ca5-8cac-7ccbdd65258b","key":"DDFC-72330","merge_status":"NOT_MERGED","priority":"P4","public_id":"72390","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json status: code: 201 message: Created -- recorded_at: Wed, 14 Feb 2024 18:55:19 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:57 GMT request: body: encoding: UTF-8 @@ -33,12 +33,12 @@ http_interactions: Content-Type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/c55de906-a08b-4916-ade3-5f1b268379c3/priority + uri: https://api.datadoghq.com/api/v2/cases/18014b24-6e64-4ca5-8cac-7ccbdd65258b/priority response: body: encoding: UTF-8 - string: '{"data":{"id":"c55de906-a08b-4916-ade3-5f1b268379c3","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:19.080339Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"c55de906-a08b-4916-ade3-5f1b268379c3","key":"DDFC-193","modified_at":"2024-02-14T18:55:19.160763Z","priority":"P3","public_id":"253","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"modified_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"18014b24-6e64-4ca5-8cac-7ccbdd65258b","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:57.488697Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"18014b24-6e64-4ca5-8cac-7ccbdd65258b","key":"DDFC-72330","merge_status":"NOT_MERGED","modified_at":"2025-07-21T13:52:57.885095Z","priority":"P3","public_id":"72390","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"modified_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json diff --git a/cassettes/features/v2/case_management/Update-case-status-returns-Bad-Request-response.frozen b/cassettes/features/v2/case_management/Update-case-status-returns-Bad-Request-response.frozen index 1c1c338c0f25..f149d8dad297 100644 --- a/cassettes/features/v2/case_management/Update-case-status-returns-Bad-Request-response.frozen +++ b/cassettes/features/v2/case_management/Update-case-status-returns-Bad-Request-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:19.178Z \ No newline at end of file +2025-07-21T13:52:57.959Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Update-case-status-returns-Bad-Request-response.yml b/cassettes/features/v2/case_management/Update-case-status-returns-Bad-Request-response.yml index 2a4c8e4c3909..00f5a0de820d 100644 --- a/cassettes/features/v2/case_management/Update-case-status-returns-Bad-Request-response.yml +++ b/cassettes/features/v2/case_management/Update-case-status-returns-Bad-Request-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:19 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:57 GMT request: body: encoding: UTF-8 @@ -14,15 +14,15 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"id":"1732a7a1-667c-45e4-ad8c-73a1c1f9f6f0","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:19.251201316Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"1732a7a1-667c-45e4-ad8c-73a1c1f9f6f0","key":"DDFC-194","priority":"P4","public_id":"254","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"98319575-b53b-43be-96b2-7595a5f1be6c","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:58.293018Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"98319575-b53b-43be-96b2-7595a5f1be6c","key":"DDFC-72331","merge_status":"NOT_MERGED","priority":"P4","public_id":"72391","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json status: code: 201 message: Created -- recorded_at: Wed, 14 Feb 2024 18:55:19 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:57 GMT request: body: encoding: UTF-8 @@ -33,12 +33,14 @@ http_interactions: Content-Type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/1732a7a1-667c-45e4-ad8c-73a1c1f9f6f0/status + uri: https://api.datadoghq.com/api/v2/cases/98319575-b53b-43be-96b2-7595a5f1be6c/status response: body: encoding: UTF-8 string: '{"errors":[{"title":"Generic Error","detail":"invalid status OPENED. - Must be one of SUNKNOWN, OPEN, IN_PROGRESS, CLOSED"}]}' + Must be one of PENDING_APPROVAL, APPROVED, IMPLEMENTING, CANCELLED, SUNKNOWN, + ACKNOWLEDGED, TRIGGERED, RESOLVED, COMPLETED, DECLINED, OPEN, IN_PROGRESS, + CLOSED"}]}' headers: Content-Type: - application/vnd.api+json diff --git a/cassettes/features/v2/case_management/Update-case-status-returns-Not-Found-response.frozen b/cassettes/features/v2/case_management/Update-case-status-returns-Not-Found-response.frozen index 3725bea8b611..ca65b4f9cfee 100644 --- a/cassettes/features/v2/case_management/Update-case-status-returns-Not-Found-response.frozen +++ b/cassettes/features/v2/case_management/Update-case-status-returns-Not-Found-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:19.338Z \ No newline at end of file +2025-07-21T13:52:58.721Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Update-case-status-returns-Not-Found-response.yml b/cassettes/features/v2/case_management/Update-case-status-returns-Not-Found-response.yml index c9347555c2c8..600f612ef1c4 100644 --- a/cassettes/features/v2/case_management/Update-case-status-returns-Not-Found-response.yml +++ b/cassettes/features/v2/case_management/Update-case-status-returns-Not-Found-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:19 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:58 GMT request: body: encoding: UTF-8 diff --git a/cassettes/features/v2/case_management/Update-case-status-returns-OK-response.frozen b/cassettes/features/v2/case_management/Update-case-status-returns-OK-response.frozen index a7c1161cdca5..086a7bba2e62 100644 --- a/cassettes/features/v2/case_management/Update-case-status-returns-OK-response.frozen +++ b/cassettes/features/v2/case_management/Update-case-status-returns-OK-response.frozen @@ -1 +1 @@ -2024-02-14T18:55:19.415Z \ No newline at end of file +2025-07-21T13:52:59.116Z \ No newline at end of file diff --git a/cassettes/features/v2/case_management/Update-case-status-returns-OK-response.yml b/cassettes/features/v2/case_management/Update-case-status-returns-OK-response.yml index cc8f7dfb898c..fc9e4cde5552 100644 --- a/cassettes/features/v2/case_management/Update-case-status-returns-OK-response.yml +++ b/cassettes/features/v2/case_management/Update-case-status-returns-OK-response.yml @@ -1,5 +1,5 @@ http_interactions: -- recorded_at: Wed, 14 Feb 2024 18:55:19 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:59 GMT request: body: encoding: UTF-8 @@ -14,15 +14,15 @@ http_interactions: response: body: encoding: UTF-8 - string: '{"data":{"id":"d1633979-1770-4e5b-a2d0-2ede9f2a8f43","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:19.487094769Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"d1633979-1770-4e5b-a2d0-2ede9f2a8f43","key":"DDFC-195","priority":"P4","public_id":"255","status":"OPEN","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"6d09fb31-6357-4f35-b1af-eaa0047f19f0","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:59.449985Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"6d09fb31-6357-4f35-b1af-eaa0047f19f0","key":"DDFC-72332","merge_status":"NOT_MERGED","priority":"P4","public_id":"72392","status":"OPEN","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json status: code: 201 message: Created -- recorded_at: Wed, 14 Feb 2024 18:55:19 GMT +- recorded_at: Mon, 21 Jul 2025 13:52:59 GMT request: body: encoding: UTF-8 @@ -33,12 +33,12 @@ http_interactions: Content-Type: - application/json method: POST - uri: https://api.datadoghq.com/api/v2/cases/d1633979-1770-4e5b-a2d0-2ede9f2a8f43/status + uri: https://api.datadoghq.com/api/v2/cases/6d09fb31-6357-4f35-b1af-eaa0047f19f0/status response: body: encoding: UTF-8 - string: '{"data":{"id":"d1633979-1770-4e5b-a2d0-2ede9f2a8f43","type":"case","attributes":{"attributes":{},"created_at":"2024-02-14T18:55:19.487095Z","creation_source":"MANUAL","description":"","insights":[],"internal_id":"d1633979-1770-4e5b-a2d0-2ede9f2a8f43","key":"DDFC-195","modified_at":"2024-02-14T18:55:19.559421Z","priority":"P4","public_id":"255","status":"IN_PROGRESS","title":"My - new case","type":"STANDARD"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"modified_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":""}}]}' + string: '{"data":{"id":"6d09fb31-6357-4f35-b1af-eaa0047f19f0","type":"case","attributes":{"attributes":{},"comment_count":0,"created_at":"2025-07-21T13:52:59.449985Z","creation_source":"MANUAL","custom_attributes":{},"description":"","insights":[],"internal_id":"6d09fb31-6357-4f35-b1af-eaa0047f19f0","key":"DDFC-72332","merge_status":"NOT_MERGED","modified_at":"2025-07-21T13:52:59.835103Z","priority":"P4","public_id":"72392","status":"IN_PROGRESS","title":"My + new case","type":"STANDARD","type_id":"00000000-0000-0000-0000-000000000001"},"relationships":{"created_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"modified_by":{"data":{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user"}},"project":{"data":{"id":"d4bbe1af-f36e-42f1-87c1-493ca35c320e","type":"project"}}}},"included":[{"id":"3ad549bf-eba0-11e9-a77a-0705486660d0","type":"user","attributes":{"active":true,"email":"frog@datadoghq.com","handle":"frog@datadoghq.com","name":"frog"}}]}' headers: Content-Type: - application/vnd.api+json diff --git a/examples/v2/case-management/UpdateAttributes.rb b/examples/v2/case-management/UpdateAttributes.rb new file mode 100644 index 000000000000..5e7e36b480c2 --- /dev/null +++ b/examples/v2/case-management/UpdateAttributes.rb @@ -0,0 +1,26 @@ +# Update case attributes returns "OK" response + +require "datadog_api_client" +api_instance = DatadogAPIClient::V2::CaseManagementAPI.new + +# there is a valid "case" in the system +CASE_ID = ENV["CASE_ID"] + +body = DatadogAPIClient::V2::CaseUpdateAttributesRequest.new({ + data: DatadogAPIClient::V2::CaseUpdateAttributes.new({ + attributes: DatadogAPIClient::V2::CaseUpdateAttributesAttributes.new({ + attributes: { + env: [ + "test", + ], service: [ + "web-store", + "web-api", + ], team: [ + "engineer", + ], + }, + }), + type: DatadogAPIClient::V2::CaseResourceType::CASE, + }), +}) +p api_instance.update_attributes(CASE_ID, body) diff --git a/features/scenarios_model_mapping.rb b/features/scenarios_model_mapping.rb index b7f116247c7b..608e9c38b74d 100644 --- a/features/scenarios_model_mapping.rb +++ b/features/scenarios_model_mapping.rb @@ -1094,6 +1094,10 @@ "case_id" => "String", "body" => "CaseAssignRequest", }, + "v2.UpdateAttributes" => { + "case_id" => "String", + "body" => "CaseUpdateAttributesRequest", + }, "v2.UpdatePriority" => { "case_id" => "String", "body" => "CaseUpdatePriorityRequest", @@ -1213,6 +1217,7 @@ "filter_rule_id" => "String", "filter_rule_name" => "String", "filter_resource_type" => "String", + "filter_resource_id" => "String", "filter_discovery_timestamp" => "String", "filter_evaluation" => "FindingEvaluation", "filter_status" => "FindingStatus", diff --git a/features/v2/case_management.feature b/features/v2/case_management.feature index e95b1dc1c4c9..58c95f716688 100644 --- a/features/v2/case_management.feature +++ b/features/v2/case_management.feature @@ -263,6 +263,32 @@ Feature: Case Management When the request is sent Then the response status is 200 OK + @skip @team:DataDog/case-management + Scenario: Update case attributes returns "Bad Request" response + Given new "UpdateAttributes" request + And there is a valid "case" in the system + And request contains "case_id" parameter from "case.id" + And body with value { "data": { "type": "case", "attributes": { "attributes": { "service": "web-store"}}}} + When the request is sent + Then the response status is 400 Bad Request + + @team:DataDog/case-management + Scenario: Update case attributes returns "Not Found" response + Given new "UpdateAttributes" request + And request contains "case_id" parameter with value "67d80aa3-36ff-44b9-a694-c501a7591737" + And body with value { "data": { "type": "case", "attributes": { "attributes": {} } } } + When the request is sent + Then the response status is 404 Not Found + + @team:DataDog/case-management + Scenario: Update case attributes returns "OK" response + Given new "UpdateAttributes" request + And there is a valid "case" in the system + And request contains "case_id" parameter from "case.id" + And body with value {"data": {"attributes": {"attributes": {"env": ["test"], "service": ["web-store", "web-api"], "team": ["engineer"]}}, "type": "case"}} + When the request is sent + Then the response status is 200 OK + @team:DataDog/case-management Scenario: Update case priority returns "Bad Request" response Given new "UpdatePriority" request diff --git a/features/v2/undo.json b/features/v2/undo.json index a1fe13fed9d0..53bef5692a43 100644 --- a/features/v2/undo.json +++ b/features/v2/undo.json @@ -446,6 +446,12 @@ "type": "idempotent" } }, + "UpdateAttributes": { + "tag": "Case Management", + "undo": { + "type": "idempotent" + } + }, "UpdatePriority": { "tag": "Case Management", "undo": { diff --git a/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index 373ba37f102c..4f8873304d36 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -1254,6 +1254,9 @@ def overrides "v2.case_trigger" => "CaseTrigger", "v2.case_trigger_wrapper" => "CaseTriggerWrapper", "v2.case_type" => "CaseType", + "v2.case_update_attributes" => "CaseUpdateAttributes", + "v2.case_update_attributes_attributes" => "CaseUpdateAttributesAttributes", + "v2.case_update_attributes_request" => "CaseUpdateAttributesRequest", "v2.case_update_priority" => "CaseUpdatePriority", "v2.case_update_priority_attributes" => "CaseUpdatePriorityAttributes", "v2.case_update_priority_request" => "CaseUpdatePriorityRequest", diff --git a/lib/datadog_api_client/v2/api/case_management_api.rb b/lib/datadog_api_client/v2/api/case_management_api.rb index 353fd4f9c69d..1f9e5e2fbd87 100644 --- a/lib/datadog_api_client/v2/api/case_management_api.rb +++ b/lib/datadog_api_client/v2/api/case_management_api.rb @@ -796,6 +796,78 @@ def unassign_case_with_http_info(case_id, body, opts = {}) return data, status_code, headers end + # Update case attributes. + # + # @see #update_attributes_with_http_info + def update_attributes(case_id, body, opts = {}) + data, _status_code, _headers = update_attributes_with_http_info(case_id, body, opts) + data + end + + # Update case attributes. + # + # Update case attributes + # + # @param case_id [String] Case's UUID or key + # @param body [CaseUpdateAttributesRequest] Case attributes update payload + # @param opts [Hash] the optional parameters + # @return [Array<(CaseResponse, Integer, Hash)>] CaseResponse data, response status code and response headers + def update_attributes_with_http_info(case_id, body, opts = {}) + + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: CaseManagementAPI.update_attributes ...' + end + # verify the required parameter 'case_id' is set + if @api_client.config.client_side_validation && case_id.nil? + fail ArgumentError, "Missing the required parameter 'case_id' when calling CaseManagementAPI.update_attributes" + end + # verify the required parameter 'body' is set + if @api_client.config.client_side_validation && body.nil? + fail ArgumentError, "Missing the required parameter 'body' when calling CaseManagementAPI.update_attributes" + end + # resource path + local_var_path = '/api/v2/cases/{case_id}/attributes'.sub('{case_id}', CGI.escape(case_id.to_s).gsub('%2F', '/')) + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] || @api_client.object_to_http_body(body) + + # return_type + return_type = opts[:debug_return_type] || 'CaseResponse' + + # auth_names + auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ] + + new_options = opts.merge( + :operation => :update_attributes, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type, + :api_version => "V2" + ) + + data, status_code, headers = @api_client.call_api(Net::HTTP::Post, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: CaseManagementAPI#update_attributes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Update case priority. # # @see #update_priority_with_http_info diff --git a/lib/datadog_api_client/v2/api/security_monitoring_api.rb b/lib/datadog_api_client/v2/api/security_monitoring_api.rb index 5bee37dc3a79..316e2d455ea8 100644 --- a/lib/datadog_api_client/v2/api/security_monitoring_api.rb +++ b/lib/datadog_api_client/v2/api/security_monitoring_api.rb @@ -2491,6 +2491,7 @@ def list_findings(opts = {}) # - `external_id`: The resource external ID related to the finding. # - `description`: The description and remediation steps for the finding. # - `datadog_link`: The Datadog relative link for the finding. + # - `ip_addresses`: The list of private IP addresses for the resource related to the finding. # # ### Response # @@ -2514,6 +2515,7 @@ def list_findings(opts = {}) # @option opts [String] :filter_rule_id Return findings for the specified rule ID. # @option opts [String] :filter_rule_name Return findings for the specified rule. # @option opts [String] :filter_resource_type Return only findings for the specified resource type. + # @option opts [String] :filter_resource_id Return only findings for the specified resource id. # @option opts [String] :filter_discovery_timestamp Return findings that were found on a specified date (Unix ms) or date range (using comparison operators). # @option opts [FindingEvaluation] :filter_evaluation Return only `pass` or `fail` findings. # @option opts [FindingStatus] :filter_status Return only findings with the specified status. @@ -2562,6 +2564,7 @@ def list_findings_with_http_info(opts = {}) query_params[:'filter[rule_id]'] = opts[:'filter_rule_id'] if !opts[:'filter_rule_id'].nil? query_params[:'filter[rule_name]'] = opts[:'filter_rule_name'] if !opts[:'filter_rule_name'].nil? query_params[:'filter[resource_type]'] = opts[:'filter_resource_type'] if !opts[:'filter_resource_type'].nil? + query_params[:'filter[@resource_id]'] = opts[:'filter_resource_id'] if !opts[:'filter_resource_id'].nil? query_params[:'filter[discovery_timestamp]'] = opts[:'filter_discovery_timestamp'] if !opts[:'filter_discovery_timestamp'].nil? query_params[:'filter[evaluation]'] = opts[:'filter_evaluation'] if !opts[:'filter_evaluation'].nil? query_params[:'filter[status]'] = opts[:'filter_status'] if !opts[:'filter_status'].nil? diff --git a/lib/datadog_api_client/v2/models/case.rb b/lib/datadog_api_client/v2/models/case.rb index 7a296454c223..46a5e50ea48e 100644 --- a/lib/datadog_api_client/v2/models/case.rb +++ b/lib/datadog_api_client/v2/models/case.rb @@ -21,7 +21,7 @@ module DatadogAPIClient::V2 class Case include BaseGenericModel - # Case attributes + # Case resource attributes attr_reader :attributes # Case's identifier diff --git a/lib/datadog_api_client/v2/models/case_attributes.rb b/lib/datadog_api_client/v2/models/case_attributes.rb index 7fb2839d8939..80b9d3a70eb0 100644 --- a/lib/datadog_api_client/v2/models/case_attributes.rb +++ b/lib/datadog_api_client/v2/models/case_attributes.rb @@ -17,13 +17,16 @@ require 'time' module DatadogAPIClient::V2 - # Case attributes + # Case resource attributes class CaseAttributes include BaseGenericModel # Timestamp of when the case was archived attr_accessor :archived_at + # The definition of `CaseObjectAttributes` object. + attr_accessor :attributes + # Timestamp of when the case was closed attr_accessor :closed_at @@ -64,6 +67,7 @@ class CaseAttributes def self.attribute_map { :'archived_at' => :'archived_at', + :'attributes' => :'attributes', :'closed_at' => :'closed_at', :'created_at' => :'created_at', :'description' => :'description', @@ -83,6 +87,7 @@ def self.attribute_map def self.openapi_types { :'archived_at' => :'Time', + :'attributes' => :'Hash>', :'closed_at' => :'Time', :'created_at' => :'Time', :'description' => :'String', @@ -131,6 +136,10 @@ def initialize(attributes = {}) self.archived_at = attributes[:'archived_at'] end + if attributes.key?(:'attributes') + self.attributes = attributes[:'attributes'] + end + if attributes.key?(:'closed_at') self.closed_at = attributes[:'closed_at'] end @@ -203,6 +212,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && archived_at == o.archived_at && + attributes == o.attributes && closed_at == o.closed_at && created_at == o.created_at && description == o.description && @@ -221,7 +231,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [archived_at, closed_at, created_at, description, jira_issue, key, modified_at, priority, service_now_ticket, status, title, type, additional_properties].hash + [archived_at, attributes, closed_at, created_at, description, jira_issue, key, modified_at, priority, service_now_ticket, status, title, type, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/models/case_update_attributes.rb b/lib/datadog_api_client/v2/models/case_update_attributes.rb new file mode 100644 index 000000000000..d65f0a256721 --- /dev/null +++ b/lib/datadog_api_client/v2/models/case_update_attributes.rb @@ -0,0 +1,144 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + 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. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # Case update attributes + class CaseUpdateAttributes + include BaseGenericModel + + # Case update attributes attributes + attr_reader :attributes + + # Case resource type + attr_reader :type + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'attributes' => :'attributes', + :'type' => :'type' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'attributes' => :'CaseUpdateAttributesAttributes', + :'type' => :'CaseResourceType' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseUpdateAttributes` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'attributes') + self.attributes = attributes[:'attributes'] + end + + if attributes.key?(:'type') + self.type = attributes[:'type'] + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @attributes.nil? + return false if @type.nil? + true + end + + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + # @!visibility private + def attributes=(attributes) + if attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Custom attribute writer method with validation + # @param type [Object] Object to be assigned + # @!visibility private + def type=(type) + if type.nil? + fail ArgumentError, 'invalid value for "type", type cannot be nil.' + end + @type = type + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + attributes == o.attributes && + type == o.type && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [attributes, type, additional_properties].hash + end + end +end diff --git a/lib/datadog_api_client/v2/models/case_update_attributes_attributes.rb b/lib/datadog_api_client/v2/models/case_update_attributes_attributes.rb new file mode 100644 index 000000000000..383966e519fa --- /dev/null +++ b/lib/datadog_api_client/v2/models/case_update_attributes_attributes.rb @@ -0,0 +1,123 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + 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. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # Case update attributes attributes + class CaseUpdateAttributesAttributes + include BaseGenericModel + + # The definition of `CaseObjectAttributes` object. + attr_reader :attributes + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'attributes' => :'attributes' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'attributes' => :'Hash>' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseUpdateAttributesAttributes` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'attributes') + self.attributes = attributes[:'attributes'] + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @attributes.nil? + true + end + + # Custom attribute writer method with validation + # @param attributes [Object] Object to be assigned + # @!visibility private + def attributes=(attributes) + if attributes.nil? + fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.' + end + @attributes = attributes + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + attributes == o.attributes && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [attributes, additional_properties].hash + end + end +end diff --git a/lib/datadog_api_client/v2/models/case_update_attributes_request.rb b/lib/datadog_api_client/v2/models/case_update_attributes_request.rb new file mode 100644 index 000000000000..62758071bb02 --- /dev/null +++ b/lib/datadog_api_client/v2/models/case_update_attributes_request.rb @@ -0,0 +1,123 @@ +=begin +#Datadog API V2 Collection + +#Collection of all Datadog Public endpoints. + +The version of the OpenAPI document: 1.0 +Contact: support@datadoghq.com +Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator + + 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. + +=end + +require 'date' +require 'time' + +module DatadogAPIClient::V2 + # Case update attributes request + class CaseUpdateAttributesRequest + include BaseGenericModel + + # Case update attributes + attr_reader :data + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'data' => :'data' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'data' => :'CaseUpdateAttributes' + } + end + + # Initializes the object + # @param attributes [Hash] Model attributes in the form of hash + # @!visibility private + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CaseUpdateAttributesRequest` initialize method" + end + + self.additional_properties = {} + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + self.additional_properties[k.to_sym] = v + else + h[k.to_sym] = v + end + } + + if attributes.key?(:'data') + self.data = attributes[:'data'] + end + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + # @!visibility private + def valid? + return false if @data.nil? + true + end + + # Custom attribute writer method with validation + # @param data [Object] Object to be assigned + # @!visibility private + def data=(data) + if data.nil? + fail ArgumentError, 'invalid value for "data", data cannot be nil.' + end + @data = data + end + + # Returns the object in the form of hash, with additionalProperties support. + # @return [Hash] Returns the object in the form of hash + # @!visibility private + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + self.additional_properties.each_pair do |attr, value| + hash[attr] = value + end + hash + end + + # Checks equality by comparing each attribute. + # @param o [Object] Object to be compared + # @!visibility private + def ==(o) + return true if self.equal?(o) + self.class == o.class && + data == o.data && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [data, additional_properties].hash + end + end +end