PATCH /v1/brands/{brand_id}/autopilot

Change the Autopilot

Send only what changes. enabled: true starts it, free on any plan (the first scan of a site never scanned); enabled: false stops it and turns writes_alone off with it. Turning writes_alone or remeasure on, raising autonomy or adding to auto_classes needs the brand owner on Starter or with an API subscription; turning anything off, stepping down or removing classes never does. A new article_target_type of cms_connection comes with its article_target_id. Saving spends nothing: credits go when items are written, cost says how many a month. resume: true lifts a pause once its cause is fixed; on plan and blog_offline, which lift on their own, it answers 400.

Path parameters

Query parameters

  • dry_run boolean optional

    Preview the call without executing it. Runs auth, scope, eligibility and body validation, then returns 200 with a dry_run object reporting the request-unit and credit cost plus a non-consuming quota snapshot. Nothing is debited, reserved, dispatched or mutated. An invalid body still returns 422.

    default: false

Header parameters

  • Idempotency-Key string optional

    Optional. A retry with the same key and body within 24 hours replays the first success; a 4xx or 5xx is not stored.

Request body

application/json required
Type: AutopilotUpdate
  • article_target_id string (nullable) nullable

    The connection from GET /v1/brands/{brand_id}/publish-targets; with hosted_site, the brand's hosted blog.

  • article_target_type enum (nullable) nullable

    cms_connection or hosted_site; null while articles wait as drafts. Null clears the destination.

  • article_weekdays array of integer (nullable) nullable

    ISO weekdays, 1 (Monday) to 7 (Sunday).

  • auto_classes array of string (nullable) nullable

    What goes out without an approval: a change kind (title, meta_description, faq...), the same kind with .missing for a page that had no value, link (the internal links the scan proposes), new_page, article_update, links_back (the links back to each new article on its related posts), article.publish (an article goes out on its day) or article.publish_after_window (on its day or once review_window_hours passed, whichever is later).

  • autonomy enum (nullable) nullable

    none (every change waits for an approval), some (the classes in auto_classes go out alone) or all (everything goes out alone).

  • enabled boolean (nullable) nullable

    true starts it (free, the first scan of a site never scanned); false stops it and writes_alone with it.

  • excluded_topics array of string (nullable) nullable

    Topics never written.

  • min_quality integer (nullable) nullable

    0 to 100.

  • monthly_article_cap integer (nullable) nullable

    Articles a month.

  • pinned_topics array of string (nullable) nullable

    Topics written first.

  • publish_time string (nullable) nullable

    Local time, HH:MM.

  • remeasure boolean (nullable) nullable

    Run a live item's prompts again at 14 and 28 days, each run charged like any run.

  • resume boolean (nullable) nullable

    true lifts the pause once its cause is fixed; 400 on a pause that lifts alone.

  • review_window_hours integer (nullable) nullable

    1 to 168 hours.

  • scan_weekday integer (nullable) nullable

    0 Monday to 6 Sunday.

  • time_zone string (nullable) nullable

    IANA time zone, such as Europe/Madrid.

  • writes_alone boolean (nullable) nullable

    Write the plan's items by itself.

Responses

Change the Autopilot application/json
Type: Autopilot
  • cost AutopilotCost required

    What writing alone costs at these settings.

    Show fields
    Type: AutopilotCost
    • article_credits integer required

      The month's articles: articles_per_month x credits_per_article.

    • articles_per_month integer required

      Articles the settings write in a month, after the cap.

    • credits_per_article integer required

      Credits one article costs at that volume.

    • credits_per_page integer required

      Credits one page item costs per language version of the page, and a new page per language of the site. Page items have no monthly number: while writes_alone is on and nothing is paused, each weekly scan (and the first) writes the plan's page items in order that fit half of the larger of the month's plan credits and the balance (one at least when the balance covers it); the next scan takes the rest.

  • settings AutopilotSettings required

    The settings as saved, defaults filled in. Left out on purpose, set in the app only: the page rules (what may change on which pages), the checks turned off, and the pages picked to work on.

    Show fields
    Type: AutopilotSettings
    • article_weekdays array of integer required

      ISO weekdays with an article day, 1 (Monday) to 7 (Sunday).

    • auto_classes array of string required

      What goes out without an approval: a change kind (title, meta_description, faq...), the same kind with .missing for a page that had no value, link (the internal links the scan proposes), new_page, article_update, links_back (the links back to each new article on its related posts), article.publish (an article goes out on its day) or article.publish_after_window (on its day or once review_window_hours passed, whichever is later).

    • autonomy enum required

      none (every change waits for an approval), some (the classes in auto_classes go out alone) or all (everything goes out alone).

    • enabled boolean required

      On: the weekly scan of the site runs and the plan is kept. Free on any plan.

    • excluded_topics array of string required

      Topics never written.

    • min_quality integer required

      Lowest quality score an article goes out alone with.

    • monthly_article_cap integer required

      Most articles it writes alone in a calendar month.

    • pinned_topics array of string required

      Topics written first, in this order.

    • publish_time string required

      Local time of each article day, HH:MM.

    • remeasure boolean required

      A live item's prompts run again 14 and 28 days after it went out, charged like any run.

    • review_window_hours integer required

      Hours article.publish_after_window waits after an article is written.

    • time_zone string required

      IANA time zone the article days are read in.

    • writes_alone boolean required

      It writes the plan's items by itself: articles on their days, pages after each scan. Spends credits.

    • article_target_id string (nullable) nullable

      The connection from GET /v1/brands/{brand_id}/publish-targets; with hosted_site, the brand's hosted blog.

    • article_target_type enum (nullable) nullable

      cms_connection or hosted_site; null while articles wait as drafts.

    • next_run_at string (nullable) nullable

      The next article day; null while writes_alone is off or a pause is on.

      format: `date-time`

    • next_scan_at string (nullable) nullable

      The next weekly scan.

      format: `date-time`

    • scan_weekday integer (nullable) nullable

      0 Monday to 6 Sunday, in the owner's time zone.

  • work AutopilotWork required

    What waits on the owner and what is being written.

    Show fields
    Type: AutopilotWork
    • awaiting_client integer required

      Items sent to the agency's client, waiting for their answer.

    • generating integer required

      Items being written now.

    • to_paste integer required

      Items to paste by hand into a site no connection writes.

    • to_review object required

      Items written and waiting for an approval, by kind.

      Show fields

      Empty object (no properties).

    • applying integer

      Approved items going on the site now.

      default: `0`

    • next_article_at string (nullable) nullable

      The next article day.

      format: `date-time`

    • next_topic string (nullable) nullable

      The topic that day takes.

    • New articles kept with nowhere to publish them: they go out once the brand connects a site.

      default: `0`

  • object string

    Always autopilot.

    default: `autopilot`

  • pause AutopilotPause (nullable) nullable

    Why writing alone stopped; null while it runs.

Request validation failed application/json
Type: ApiError
  • error object required
    Show fields
    • code string required

      Stable machine-readable error code from the catalog.

    • message string required

      Human-readable description suitable for logging.

    • details object

      Optional, code-specific context (e.g. errors array for validation_error, retry_after for service_unavailable). Shape depends on error.code; treat as opaque otherwise.

      Show fields

      Empty object (no properties).

  • Server-generated correlation id for the request. Mirrors the X-Correlation-ID response header. Include this when contacting support.

    format: `uuid`

Example response
{
  "error": {
    "code": "validation_error",
    "message": "Request validation failed"
  },
  "request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}
Missing or invalid credentials application/json
Type: ApiError
  • error object required
    Show fields
    • code string required

      Stable machine-readable error code from the catalog.

    • message string required

      Human-readable description suitable for logging.

    • details object

      Optional, code-specific context (e.g. errors array for validation_error, retry_after for service_unavailable). Shape depends on error.code; treat as opaque otherwise.

      Show fields

      Empty object (no properties).

  • Server-generated correlation id for the request. Mirrors the X-Correlation-ID response header. Include this when contacting support.

    format: `uuid`

Example response
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid credentials"
  },
  "request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}
You do not have permission to access this resource application/json
Type: ApiError
  • error object required
    Show fields
    • code string required

      Stable machine-readable error code from the catalog.

    • message string required

      Human-readable description suitable for logging.

    • details object

      Optional, code-specific context (e.g. errors array for validation_error, retry_after for service_unavailable). Shape depends on error.code; treat as opaque otherwise.

      Show fields

      Empty object (no properties).

  • Server-generated correlation id for the request. Mirrors the X-Correlation-ID response header. Include this when contacting support.

    format: `uuid`

Example response
{
  "error": {
    "code": "forbidden",
    "message": "You do not have permission to access this resource"
  },
  "request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}
Resource not found application/json
Type: ApiError
  • error object required
    Show fields
    • code string required

      Stable machine-readable error code from the catalog.

    • message string required

      Human-readable description suitable for logging.

    • details object

      Optional, code-specific context (e.g. errors array for validation_error, retry_after for service_unavailable). Shape depends on error.code; treat as opaque otherwise.

      Show fields

      Empty object (no properties).

  • Server-generated correlation id for the request. Mirrors the X-Correlation-ID response header. Include this when contacting support.

    format: `uuid`

Example response
{
  "error": {
    "code": "not_found",
    "message": "Resource not found"
  },
  "request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}
Resource conflict application/json
Type: ApiError
  • error object required
    Show fields
    • code string required

      Stable machine-readable error code from the catalog.

    • message string required

      Human-readable description suitable for logging.

    • details object

      Optional, code-specific context (e.g. errors array for validation_error, retry_after for service_unavailable). Shape depends on error.code; treat as opaque otherwise.

      Show fields

      Empty object (no properties).

  • Server-generated correlation id for the request. Mirrors the X-Correlation-ID response header. Include this when contacting support.

    format: `uuid`

Example response
{
  "error": {
    "code": "conflict",
    "message": "Resource conflict"
  },
  "request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}
Request body did not match the expected schema application/json
Type: ApiError
  • error object required
    Show fields
    • code string required

      Stable machine-readable error code from the catalog.

    • message string required

      Human-readable description suitable for logging.

    • details object

      Optional, code-specific context (e.g. errors array for validation_error, retry_after for service_unavailable). Shape depends on error.code; treat as opaque otherwise.

      Show fields

      Empty object (no properties).

  • Server-generated correlation id for the request. Mirrors the X-Correlation-ID response header. Include this when contacting support.

    format: `uuid`

Example response
{
  "error": {
    "code": "body_validation_error",
    "message": "Request body did not match the expected schema"
  },
  "request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}
Per-minute rate limit exceeded application/json
Type: ApiError
  • error object required
    Show fields
    • code string required

      Stable machine-readable error code from the catalog.

    • message string required

      Human-readable description suitable for logging.

    • details object

      Optional, code-specific context (e.g. errors array for validation_error, retry_after for service_unavailable). Shape depends on error.code; treat as opaque otherwise.

      Show fields

      Empty object (no properties).

  • Server-generated correlation id for the request. Mirrors the X-Correlation-ID response header. Include this when contacting support.

    format: `uuid`

Example response
{
  "error": {
    "code": "rate_limit_exceeded",
    "message": "Per-minute rate limit exceeded"
  },
  "request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}
An unexpected error occurred application/json
Type: ApiError
  • error object required
    Show fields
    • code string required

      Stable machine-readable error code from the catalog.

    • message string required

      Human-readable description suitable for logging.

    • details object

      Optional, code-specific context (e.g. errors array for validation_error, retry_after for service_unavailable). Shape depends on error.code; treat as opaque otherwise.

      Show fields

      Empty object (no properties).

  • Server-generated correlation id for the request. Mirrors the X-Correlation-ID response header. Include this when contacting support.

    format: `uuid`

Example response
{
  "error": {
    "code": "internal_error",
    "message": "An unexpected error occurred"
  },
  "request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}
Service temporarily unavailable, please retry application/json
Type: ApiError
  • error object required
    Show fields
    • code string required

      Stable machine-readable error code from the catalog.

    • message string required

      Human-readable description suitable for logging.

    • details object

      Optional, code-specific context (e.g. errors array for validation_error, retry_after for service_unavailable). Shape depends on error.code; treat as opaque otherwise.

      Show fields

      Empty object (no properties).

  • Server-generated correlation id for the request. Mirrors the X-Correlation-ID response header. Include this when contacting support.

    format: `uuid`

Example response
{
  "error": {
    "code": "service_unavailable",
    "message": "Service temporarily unavailable, please retry"
  },
  "request_id": "9f6c4e8a-1d3b-4c8b-9f1e-7a3b1c2d3e4f"
}