diff --git a/hugo/content/en/api/v2/csm-threats/examples.json b/hugo/content/en/api/v2/csm-threats/examples.json index 84498785dbd..ff68511d232 100644 --- a/hugo/content/en/api/v2/csm-threats/examples.json +++ b/hugo/content/en/api/v2/csm-threats/examples.json @@ -774,7 +774,7 @@ }, "CreateCSMThreatsAgentPolicy": { "responses": { - "200": { + "201": { "json": { "data": { "attributes": { diff --git a/hugo/content/en/api/v2/csm-threats/request.CreateCSMThreatsAgentPolicy.json b/hugo/content/en/api/v2/csm-threats/request.CreateCSMThreatsAgentPolicy.json index 59d2b979dbc..5f58bbcb8fd 100644 --- a/hugo/content/en/api/v2/csm-threats/request.CreateCSMThreatsAgentPolicy.json +++ b/hugo/content/en/api/v2/csm-threats/request.CreateCSMThreatsAgentPolicy.json @@ -2,7 +2,7 @@ "data": { "attributes": { "description": "My agent policy", - "enabled": true, + "enabled": false, "hostTagsLists": [ [ "env:test" diff --git a/hugo/content/en/api/v2/csm-threats/request.UpdateCSMThreatsAgentPolicy.json b/hugo/content/en/api/v2/csm-threats/request.UpdateCSMThreatsAgentPolicy.json index 763f11bc182..6d2e79363ce 100644 --- a/hugo/content/en/api/v2/csm-threats/request.UpdateCSMThreatsAgentPolicy.json +++ b/hugo/content/en/api/v2/csm-threats/request.UpdateCSMThreatsAgentPolicy.json @@ -2,7 +2,7 @@ "data": { "attributes": { "description": "Updated agent policy", - "enabled": true, + "enabled": false, "hostTagsLists": [ [ "env:test" diff --git a/hugo/data/api/v2/CodeExamples.json b/hugo/data/api/v2/CodeExamples.json index e2997c35c9d..f69531d2091 100644 --- a/hugo/data/api/v2/CodeExamples.json +++ b/hugo/data/api/v2/CodeExamples.json @@ -369,7 +369,7 @@ { "group": "csm_threats", "suffix": "", - "description": "Create a Workload Protection policy returns \"OK\" response" + "description": "Create a Workload Protection policy returns \"Created\" response" } ], "UpdateCloudWorkloadSecurityAgentRule": [ diff --git a/hugo/data/api/v2/full_spec.yaml b/hugo/data/api/v2/full_spec.yaml index f302db8bb47..7beb92cdfcb 100644 --- a/hugo/data/api/v2/full_spec.yaml +++ b/hugo/data/api/v2/full_spec.yaml @@ -212848,7 +212848,7 @@ paths: description: "The definition of the new Agent policy" required: true responses: - "200": + "201": content: "application/json": examples: @@ -212863,7 +212863,7 @@ paths: type: policy schema: $ref: "#/components/schemas/CloudWorkloadSecurityAgentPolicyResponse" - description: OK + description: Created "400": $ref: "#/components/responses/BadRequestResponse" "403": diff --git a/hugo/data/changelog/csm-threats.yml b/hugo/data/changelog/csm-threats.yml new file mode 100644 index 00000000000..cd26c2c0a72 --- /dev/null +++ b/hugo/data/changelog/csm-threats.yml @@ -0,0 +1,8 @@ +entries: + - change_type: modified + date: '2026-10-01' + link: https://github.com/DataDog/documentation/pull/40342 + operations: + - CreateCSMThreatsAgentPolicy + title: Fix Workload Protection policy creation success response to 201 + Created