Skip to main content
POST
/
api
/
prompts
/
reassign
Reassign contacts and conversations from one prompt to another
curl --request POST \
  --url https://your-instance.example.com/api/prompts/reassign \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "promptId": "5f7b1c2e8a1d4e0012c3b4a5",
  "targetPromptId": "5f7b1c2e8a1d4e0012c3b4a6"
}
'
{
  "success": true,
  "message": "Successfully reassigned 14 items and deleted prompt",
  "contactsUpdated": 9,
  "conversationsUpdated": 5,
  "totalUpdated": 14
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
promptId
string
required

Source prompt _id whose contacts and conversations will be moved; this prompt is then deleted.

targetPromptId
string
required

Destination prompt _id that will receive the reassigned contacts and conversations.

Response

Successfully reassigned and deleted prompt

Returned by POST /api/prompts/reassign.

success
enum<boolean>
required
Available options:
true
message
string
required
contactsUpdated
integer
required
conversationsUpdated
integer
required
totalUpdated
integer
required