@@ -86,6 +86,7 @@ For example:
8686``` shell
8787curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/policies \
8888 -H " Authorization: Bearer <access token>" \
89+ -H " Content-Type: application/json" \
8990 -d @ignore-xss-example.json
9091```
9192
@@ -146,6 +147,7 @@ To use `POST`, include the policy metadata and content in your request:
146147``` shell
147148curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/policies? isNewRevision=true \
148149 -H " Authorization: Bearer <access token>" \
150+ -H " Content-Type: application/json" \
149151 -d @update-xss-policy.json
150152```
151153
@@ -161,7 +163,7 @@ Then include the UID in your PUT request:
161163``` shell
162164curl -X PUT https://{{NIM_FQDN}}/api/platform/v1/security/policies/< policy-uid> \
163165 -H " Authorization: Bearer <access token>" \
164- -- Content-Type application/json \
166+ -H " Content-Type application/json" \
165167 -d @update-xss-policy.json
166168```
167169
@@ -241,6 +243,7 @@ Example:
241243` ` ` shell
242244curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/policies/bundles \
243245 -H " Authorization: Bearer <access token>" \
246+ -H " Content-Type: application/json" \
244247 -d @security-policy-bundles.json
245248` ` `
246249
@@ -484,6 +487,7 @@ Example:
484487` ` ` shell
485488curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/logprofiles \
486489 -H " Authorization: Bearer <access token>" \
490+ -H " Content-Type: application/json" \
487491 -d @default-log-example.json
488492` ` `
489493
@@ -537,6 +541,7 @@ To create a new revision:
537541` ` ` shell
538542curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/logprofiles? isNewRevision=true \
539543 -H " Authorization: Bearer <access token>" \
544+ -H " Content-Type: application/json" \
540545 -d @update-default-log.json
541546` ` `
542547
@@ -547,7 +552,7 @@ To overwrite an existing security log profile:
547552 ` ` ` shell
548553 curl -X PUT https://{{NIM_FQDN}}/api/platform/v1/security/logprofiles/< log-profile-uid> \
549554 -H " Authorization: Bearer <access token>" \
550- -- Content-Type application/json \
555+ -H " Content-Type application/json" \
551556 -d @update-log-profile.json
552557 ` ` `
553558
@@ -556,7 +561,7 @@ To overwrite an existing security log profile:
556561 ` ` ` shell
557562 curl -X PUT https://{{NIM_FQDN}}/api/platform/v1/security/logprofiles/< log-profile-uid> \
558563 -H " Authorization: Bearer <access token>" \
559- -- Content-Type application/json \
564+ -H " Content-Type: application/json" \
560565 -d @update-log-profile.json
561566 ` ` `
562567
@@ -608,6 +613,7 @@ Example:
608613` ` ` shell
609614curl -X POST https://{{NIM_FQDN}}/api/platform/v1/security/publish \
610615 -H " Authorization: Bearer <access token>" \
616+ -H " Content-Type: application/json" \
611617 -d @publish-request.json
612618` ` `
613619
0 commit comments