---
title: "Post CSP Directives"
method: POST
path: "/api/v1/entities/cspDirectives"
tags: ["CSP Directives"]
---

# Post CSP Directives

`POST /api/v1/entities/cspDirectives`

## Request

- Base URL: `https://www.gooddata.ai`
- URL: `https://www.gooddata.ai/api/v1/entities/cspDirectives`
- Auth: none declared

Context Security Police Directive

## Request body

- JsonApiCspDirectiveInDocument
  - `data` JsonApiCspDirectiveIn, required: JSON:API representation of cspDirective entity.
    - `attributes` object, required
      - `sources` string[], required
    - `id` string, required: API identifier of an object
    - `type` 'cspDirective', required: Object type

## Response `201`

Request successfully processed

- JsonApiCspDirectiveOutDocument
  - `data` JsonApiCspDirectiveOut, required: JSON:API representation of cspDirective entity.
    - `attributes` object, required
      - `sources` string[], required
    - `id` string, required: API identifier of an object
    - `type` 'cspDirective', required: Object type
  - `links` ObjectLinks
    - `self` string, uri, required: A string containing the link's URL.

---

[API](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api.md) - [All operations](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/revisions/c728ef303bfb?raw)
