Skip to main content
POST
/
api
/
v1
/
data
/
{uuid}
/
assign
Assign imported data to an agent
curl --request POST \
  --url https://{subdomain}.mindhunters.ai/api/v1/data/{uuid}/assign \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agent_uuid": "b5f693c9-1be7-4f2f-bf91-3d3ee4f83f9c"
}'
{
  "success": true,
  "message": "Data assigned to agent and sync started.",
  "data": {
    "agent_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "data_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "pending"
  }
}

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Path Parameters

uuid
string<uuid>
required

UUID of the data to assign

Body

application/json
agent_uuid
string<uuid>
required
Example:

"b5f693c9-1be7-4f2f-bf91-3d3ee4f83f9c"

Response

Data assigned and sync triggered

success
boolean
Example:

true

message
string
Example:

"Data assigned to agent and sync started."

data
object