---
title: "Create a new sentiment source"
method: POST
path: "/application/{applicationId}/sentiment/sources/"
tags: ["Sentiment"]
---

# Create a new sentiment source

`POST /application/{applicationId}/sentiment/sources/`

Create a new sentiment source for an application

## Path parameters

- `applicationId` number, required

## Headers

- `environment_id` number, required

## Request body

- object
  - `name` string, required — The name of the sentiment source
  - `description` string — The description of the sentiment source
  - `contentSource` 'chat' | 'feedback' | 'bug-reports' | 'support-tickets', required — The type of content of the sentiment source
  - `markerType` string, required — The type of marker of the sentiment source
  - `idField` object — The field that contains a unique identifier for each source row
    - `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'
  - `contentField` object, required — The field that contains the content of the source row
    - `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'
  - `threadField` object — The field that contains the thread of the source row
    - `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'
  - `customMetadataFields` object[] — The fields that contain the metadata of the source row
    - `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'
  - `sampleRate` number — The sample rate of the source row

## 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/801fbad9d8d0/schema)
