Messages
Update a message
Updates a message.
Request body
Key | Type | Description |
---|---|---|
vote | 1 | -1 | 0 | A vote. Set to 0 to clear value. |
metadata | object | A metadata object. |
strategy | "merge" | "overwrite" | The update strategy. If set to |
1POST https://api.markprompt.com/messages/{message_id}
Updates a message.
Key | Type | Description |
---|---|---|
vote | 1 | -1 | 0 | A vote. Set to 0 to clear value. |
metadata | object | A metadata object. |
strategy | "merge" | "overwrite" | The update strategy. If set to |
1curl "https://api.markprompt.com/messages/message_123" \
2 -X POST \
3 -H "Authorization: Bearer <TOKEN>" \
4 -H "Content-type: application/json" \
5 -H "X-Markprompt-API-Version: 2024-05-21" \
6 -d '{
7 "metadata": { "category": "payments" },
8 "vote": 1,
9 "strategy": "merge"
10 }'