---
title: "Patch CSP Directives"
method: PATCH
path: "/api/v1/entities/cspDirectives/{id}"
tags: ["CSP Directives"]
---

# Patch CSP Directives

`PATCH /api/v1/entities/cspDirectives/{id}`

## Request

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

Context Security Police Directive

## Path parameters

- `id` string, required

## Query parameters

- `filter` string

## Request body

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

## Response `200`

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)
