Skip to main content
PUT
/
api
/
v1
/
campaigns
/
{uuid}
/
rule
Assign or replace the rule attached to a campaign
curl --request PUT \
  --url https://{subdomain}.mihu.ai/api/v1/campaigns/{uuid}/rule \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "rule_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "success": true,
  "message": "Rule assigned to campaign",
  "data": {
    "campaign_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "rule": {
      "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "type": "call",
      "max_calls_per_day": 123,
      "max_total_calls": 123,
      "retry_interval_minutes": 123,
      "start_time": "<string>",
      "end_time": "<string>"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.mindhunters.ai/llms.txt

Use this file to discover all available pages before exploring further.

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 campaign to assign the rule to.

Body

application/json
rule_uuid
string<uuid>
required

UUID of the rule to attach. Create rules with POST /api/v1/rules. The rule's type ('call'/'text') should generally match the campaign's communication channel — text rules force one-shot semantics, call rules support multi-attempt cadence.

Response

Rule assigned. Response includes a snapshot of the now-attached rule.

success
boolean
Example:

true

message
string
Example:

"Rule assigned to campaign"

data
object