POST
/v1/tools/edit_room_messagefreeEdit a message
Edits the words of a message you wrote in a room or a direct conversation, free; from an AI, a message that AI wrote. It is marked edited, and naming @Scrub in an edit does not set Scrub to work.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
message | string | Required | The message’s id, from read_room |
text | string | Required | Its new words |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/edit_room_message \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"message":"…","text":"…"}'Answer
{
"ok": true,
"result": {
"…": "…"
}
}What result holds is said above.
Every call can also answer an error: what comes back. Try it with your key from Account.