write

Autopilot approval policy

Change a channel's autopilot approval policy (the rule that decides whether an agent draft for a plan slot is scheduled automatically or waits for a human). autopilotPolicy: manual (every draft waits for approval), streak (automatic once the channel has config.streakTarget consecutive approved agent posts), auto (automatic right away). config is a partial object merged onto the stored config; pass null to reset it to defaults. Keys: streakTarget (3–20), autoPostTypes (subset of common | news), quietHours ({ from: "HH:mm", to: "HH:mm" } in the plan's time zone, or null), dailyAutoLimit (1–50 or null = no limit). Guardrails (recommendation review/revise, banlist hits, paused generation) always send a draft to approval regardless of the mode. Requires the team owner or a role allowed to manage agent jobs; returns the effective policy and changed=false when nothing differed.

post/api/v1/set_autopilot_policy

Request

  • Base URL: https://awraiter.ai
  • URL: https://awraiter.ai/api/v1/set_autopilot_policy
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

Retry key (≤ 200 characters). A repeated call with the same key returns the first call's result instead of acting twice. Without it the server hashes the arguments, which catches retries but treats a deliberate repeat within 24 hours as one too.

Request body

channelIdnumber required
autopilotPolicy'manual' | 'streak' | 'auto'

Response

The tool's result in data.

okunknown required
dataobject required

Not declared by the tool yet; treat the shape as informational.

Changes

No recorded changes to this operation across all 1 revision of this API.