Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hugo/content/en/api/v2/csm-threats/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@
},
"CreateCSMThreatsAgentPolicy": {
"responses": {
"200": {
"201": {
"json": {
"data": {
"attributes": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"data": {
"attributes": {
"description": "My agent policy",
"enabled": true,
"enabled": false,
"hostTagsLists": [
[
"env:test"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"data": {
"attributes": {
"description": "Updated agent policy",
"enabled": true,
"enabled": false,
"hostTagsLists": [
[
"env:test"
Expand Down
2 changes: 1 addition & 1 deletion hugo/data/api/v2/CodeExamples.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
4 changes: 2 additions & 2 deletions hugo/data/api/v2/full_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212848,7 +212848,7 @@ paths:
description: "The definition of the new Agent policy"
required: true
responses:
"200":
"201":
content:
"application/json":
examples:
Expand All @@ -212863,7 +212863,7 @@ paths:
type: policy
schema:
$ref: "#/components/schemas/CloudWorkloadSecurityAgentPolicyResponse"
description: OK
description: Created
"400":
$ref: "#/components/responses/BadRequestResponse"
"403":
Expand Down
8 changes: 8 additions & 0 deletions hugo/data/changelog/csm-threats.yml
Original file line number Diff line number Diff line change
@@ -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
Loading