प्रमाणीकरण
एपिआई कुञ्जीलाई बियरर टोकन (bearer token) को रूपमा पठाउनुहोस्। कुञ्जीसँग links.edit अनुमति हुनुपर्छ; अनुमति नभएको कुञ्जीलाई 404 होइन, 403 मार्फत अस्वीकार गरिन्छ।
तपाईंको संस्थाको आइडी राख्ने ठाउँ
यो इन्डपोटले JSON बडीमा एक फिल्डको रूपमा org_id लिन्छ।
तपाईंको संस्थाको आइडी (ID) तपाईंको ड्यासबोर्डमा रहेको API कुञ्जीहरू (keys) स्क्रिनमा, कुञ्जीको छेउमा हुन्छ। तपाईंले गर्ने प्रत्येक कलमा यही आइडी प्रयोग हुन्छ।
प्रयास गर्नुहोस्
कोणीय कोष्ठकभित्र भएका जुनसुकै कुरालाई आफ्नो मानहरूद्वारा बदल्नुहोस्, र मुख्य स्थानहोल्डरलाई तपाईंको ड्यासबोर्डको कुञ्जीद्वारा बदल्नुहोस्।
curl -X PATCH https://api.zinndigital.com/v1/ai/recipes/{recipeId} \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "name": <string> }'लगइन गर्नुभएको छ? तपाईंको ड्यासबोर्डमा रहेको API कन्सोलले तपाईंको वास्तविक संस्थाको आईडी र आफ्नै कुञ्जी भरिदिन्छ, र लाइभ API विरुद्ध अनुरोध चलाउँछ ताकि तपाईंले वास्तविक प्रतिक्रिया हेर्न सक्नुहोस्। यो एन्डपोइन्टलाई API कन्सोलमा खोल्नुहोस्
विवरणहरू
Partial update. The schedule is recomputed on every write rather than by a nightly job — a recipe saved with a cadence and no next run is a recipe that never runs and shows no error anywhere. Requires `links.edit`.
प्यारामिटरहरू
| नाम | प्रकार | आवश्यक | यो के हो |
|---|---|---|---|
recipeId (path) | Uuid | हुन्छ | — |
अनुरोध बडी
| नाम | प्रकार | आवश्यक | यो के हो |
|---|---|---|---|
name | string | हुन्छ | — |
is_enabled | boolean | हैन | — |
brief | string | हैन | — |
tone | string | हैन | — |
word_count | integer | हैन | — |
language | string | हैन | — |
posts_per_run | integer | हैन | — |
provider | string | हैन | — |
model_id | string | हैन | — |
model_family | string | हैन | — |
anchors | AiAnchor[] | हैन | — |
anchor_policy | string<none, every_post, rotate> | हैन | — |
link_set_id | string | हैन | The reusable link set this recipe draws its links from, or `null` to use the recipe's own `anchors`. When set it **replaces** `anchors` rather than adding to them — two sources… |
cadence | string<manual, daily, weekly, monthly> | हैन | — |
cadence_hour_utc | integer | हैन | — |
cadence_dow | integer | हैन | — |
cadence_dom | integer | हैन | — |
target_kind | string<none, sites, site_group, cms_targets> | हैन | — |
target_sites | string[] | हैन | — |
target_site_group_id | object | हैन | — |
target_cms_target_ids | string[] | हैन | — |
target_category | string | हैन | — |
requires_capabilities | string[] | हैन | — |
capability_policy | string<refuse, degrade, ask> | हैन | — |
image_provider | string | हैन | — |
image_model | string | हैन | — |
featured_image | boolean | हैन | — |
inline_image_count | integer | हैन | — |
inline_placement | string<after_intro, between_sections, end> | हैन | — |
image_style | string | हैन | — |
publish_mode | string<draft, schedule, publish> | हैन | — |
schedule_offset_hours | integer | हैन | — |
schedule_stagger_minutes | integer | हैन | — |
org_id | Uuid | हैन | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
प्रतिक्रिया
| नाम | प्रकार | आवश्यक | यो के हो |
|---|---|---|---|
id | Uuid | हुन्छ | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
name | string | हुन्छ | — |
is_enabled | boolean | हुन्छ | — |
brief | string | हैन | — |
tone | string | हैन | — |
word_count | integer | हैन | — |
language | string | हैन | BCP-47, or empty for "the language the brief is written in". |
posts_per_run | integer | हैन | ⛔ Capped at 10. Two hundred articles from one brief are two hundred near-identical articles, which is a **footprint** — the exact thing the Footprint-Free line is sold to avoid. |
provider | string | हैन | Blank = whatever the funding route resolves to. |
model_id | string | हैन | Blank = the newest verified model in the family. |
model_family | string | हैन | — |
anchors | AiAnchor[] | हैन | — |
anchor_policy | string<none, every_post, rotate> | हैन | — |
link_set_id | string | हैन | The reusable link set this recipe draws its links from, or `null` to use the recipe's own `anchors`. When set it **replaces** `anchors` rather than adding to them — two sources… |
cadence | string<manual, daily, weekly, monthly> | हुन्छ | — |
cadence_hour_utc | integer | हैन | — |
cadence_dow | integer | हैन | 0 = Monday. |
cadence_dom | integer | हैन | ⛔ Never 29-31: a monthly recipe set to the 31st would skip February silently, and a schedule that stops without an error is the failure this feature prevents. |
next_run_at | object | हैन | — |
last_run_at | object | हैन | — |
target_kind | string<none, sites, site_group, cms_targets> | हैन | — |
target_sites | string[] | हैन | — |
target_site_group_id | object | हैन | — |
target_cms_target_ids | string[] | हैन | — |
target_category | string | हैन | — |
requires_capabilities | string[] | हैन | Capability ids the target must support, e.g. `cms_target:featured_image`. Enforced on every run: each site's capabilities are read from its CMS target and any shortfall is handl… |
capability_policy | string<refuse, degrade, ask> | हैन | What to do when a target cannot do something the recipe requires. Default `refuse` — silently dropping a requested field is the failure this exists to stop. `refuse` skips that… |
image_provider | string | हैन | — |
image_model | string | हैन | — |
featured_image | boolean | हैन | — |
inline_image_count | integer | हैन | — |
inline_placement | string<after_intro, between_sections, end> | हैन | — |
image_style | string | हैन | — |
publish_mode | string<draft, schedule, publish> | हुन्छ | ⚖️ Owner ruling 2026-08-20: a **per-recipe** switch defaulting to `draft`. `draft` writes into the library and schedules nothing; `schedule` queues placements the customer can s… |
schedule_offset_hours | integer | हैन | — |
schedule_stagger_minutes | integer | हैन | Minutes between consecutive posts in one run. ⛔ Not cosmetic: a network whose articles all appear in the same minute is a footprint. |
blocking_providers | string[] | हैन | Providers this recipe needs a working key for and does not have. Empty means it can run now. ⚖️ A recipe naming no provider is never blocked — credits are the default route and… |
created_at | string | हुन्छ | — |
updated_at | string | हैन | — |
यो इन्डपोइन्टले फर्काउन सक्ने त्रुटिहरू
401 · 403 · 404 · 422 · 429