# analysis_user_sentiment_prompt on PATCH /update-chat-agent/{} stops working

Calls to PATCH /update-chat-agent/{}, body parameter analysis_user_sentiment_prompt on Retell AI API stopped working on June 15, 2026.

- API: Retell AI API (api.retellai.com)
- Kind: Endpoint removal
- Takes effect: June 15, 2026
- Calls after that day: fail
- Calls it hits: `PATCH /update-chat-agent/{}`, `body parameter analysis_user_sentiment_prompt`
- Source: [Announcement](https://docs.retellai.com/deprecation-notice/2026/06-15_legacy_list_endpoints)
- Page: https://www.okapi.bot/providers/retell-ai-api/breaking-changes/analysis-user-sentiment-prompt-on-patch-update-chat-agent-stops-working/

## What to use instead

Add a system preset item to post_chat_analysis_data (type system-presets, name user_sentiment, description your prompt) instead.

## Retell AI API's words

> 1. The three prompt fields above will be removed from the API.
