---
title: "Update a sentiment source"
method: PATCH
path: "/application/{applicationId}/sentiment/sources/{sourceId}"
tags: ["Sentiment"]
---

# Update a sentiment source

`PATCH /application/{applicationId}/sentiment/sources/{sourceId}`

Update a sentiment source

## Path parameters

- `applicationId` number, required
- `sourceId` number, required

## Headers

- `environment_id` number, required

## Request body

- object
  - `state` 'active' | 'paused'
  - `sampleRate` number
  - `customMetadataFields` object[]
    - `name` string, required — The key of the field
    - `type` 'property' | 'argument' | 'direct', required — The structural type of the field
    - `dataType` union, required — The data type of the field
      - 'string' | 'number' | 'boolean' | 'date' | 'string[]' | 'number[]' | 'boolean[]' | 'date[]'
      - 'cohort'
      - 'deeplink'

## Response `200`

Default Response

---

[API](https://skmtc.dev/gamebeast/apis/gamebeast-api.md) · [All operations](https://skmtc.dev/gamebeast/apis/gamebeast-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gamebeast/gamebeast-api/revisions/e9940594b0cc/schema)
