asksteps: change the address or visibility of a published form
asksteps_update_publicationChanges the public address (slug), who may find it, or the page password of a form that is ALREADY published. Requires "publish:write". No mandate is needed: nothing new goes online, only the address and the audience change. A form without a page yet answers "not_found" — use asksteps_publish_form first, that is where the address is decided. Renaming keeps the old address as a redirect, so links already in circulation still work. Ask the user before changing a slug: the address is what they have given out.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | New path, e.g. "kontakt". Leave empty to keep the current one. | |
| form_id | Yes | The form or funnel id. | |
| password | No | Page password. Empty string removes it; leave the parameter out to keep it. | |
| visibility | No | "public" (listed and indexable), "unlisted" (only via the link) or "password". Leave empty to keep the current setting. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The public address after the change. | |
| note | Yes | One sentence for the user, naming what changed. | |
| slug | No | The path the page now lives at. | |
| status | Yes | Outcome. One of: "updated", "not_connected", "not_found" (the form has no published page yet — publish it first), "error". Authorisation can also refuse before the tool runs: "plan_required" (the account's plan does not include agent access), "not_enabled" (the account owner has not switched agent access on), "owner_required" (only the account owner may do this), "mandate_required" (the owner has not granted a mandate for this). The note then says what the user has to do. | |
| visibility | No | Who may find it: "public", "unlisted" or "password". |