---
title: "Edit Text"
method: PUT
path: "/v1/texts/{text_id}/emotions"
tags: ["Text Emotion API"]
---

# Edit Text

`PUT /v1/texts/{text_id}/emotions`

## Request

- Base URL: `https://api.imentiv.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.imentiv.ai/v1/texts/{text_id}/emotions`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

This end-point allows a user to edit the existing text and reprocess it to generate emotion insights.

## Path parameters

- `text_id` string, required: The unique text ID of the text.

## Request body `application/x-www-form-urlencoded`

- BodyEditTextV1TextsTextIdEmotionsPut
  - `callback_url` string, nullable: Optional URL to receive a webhook notification when analysis is complete. Example: 'https://example.com/callback'. Must be an https URL on a publicly reachable host.
  - `text` string, required: The updated text to be analyzed for emotions.

## Response `200`

Successful Response

- TextReprocessResponse: Response model for reprocessing a text analysis request. Attributes: message (str): Additional information about the reprocessing result.
  - `id` string, required
  - `status` string, required
  - `message` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-08-20** `74ceee4a5c98`: 1 info
  - request property `callback_url` list-of-types was widened by adding types `null` to media type `application/x-www-form-urlencoded`

[Operation history](https://skmtc.dev/imentiv/apis/welcome-to-imentiv-ai/changes/v1/texts/:text_id/emotions/put.md)

---

[API](https://skmtc.dev/imentiv/apis/welcome-to-imentiv-ai.md) - [All operations](https://skmtc.dev/imentiv/apis/welcome-to-imentiv-ai/llms.txt) - [OpenAPI document](https://skmtc.dev/imentiv/apis/welcome-to-imentiv-ai/revisions/bc15cec7e794?raw)
