Edit an invitation
update_invitationChange an existing draft invitation. Send the ownership_code and ONLY the fields that change; everything else is left as it is. List fields (schedule, extra_sections, rsvp.questions) replace the whole previous list, so send the complete new list. To remove a text section send an empty string or use hide_sections. Returns the updated invitation and the same two links, preview_url and edit_url (the pages update in place: tell the user to reload). Works only while the invitation is a draft (and, once it belongs to an account, only if the owner allowed edits from chat).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ownership_code": "<ownership_code>"
},
"name": "update_invitation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Wedding date, YYYY-MM-DD. | |
| font | No | Font of the titles: an id from list_invitation_options. | |
| rsvp | No | RSVP form settings. The form (name, attending yes/no, notes) is always there; use this for a deadline and extra questions. | |
| song | No | Background music: the `id` of a song from list_invitation_options. Empty string = the default song. | |
| time | No | Time the ceremony starts, 24-hour HH:MM. Also drives the countdown. | |
| gifts | No | Gift note: registry, honeymoon fund, bank details, or 'your presence is enough'. | |
| story | No | 'Our story': how the couple met, in their own words. Plain text, blank lines between paragraphs. Hidden until provided. | |
| theme | No | Visual theme id from list_invitation_options. | |
| divider | No | Small ornament under section titles: an id from list_invitation_options. | |
| opening | No | How the invitation opens when a guest taps it (e.g. an envelope or a garden gate): an `openings` id from list_invitation_options. Default: the envelope. | |
| palette | No | Ready-made colour palette id from list_invitation_options (sets all four colours). | |
| ceremony | No | Where the ceremony takes place. Hidden until provided. | |
| language | No | Language of the invitation: one of de, en, es, fr, it. It sets the built-in labels (buttons, month names, default texts). Choose the language the user is writing to you in (not the country of the wedding or the origin of the names), unless they ask for another; if it is not in the list, ask. Write every text you send in the same language. | |
| schedule | No | Programme of the day in order (ceremony, drinks, dinner, party…). Sending the list replaces the previous one. Hidden until provided. | |
| reception | No | Where the reception/party takes place. Hidden until provided. | |
| dress_code | No | Dress code note, e.g. 'Formal. Please avoid white.' | |
| text_color | No | Colour of body text: an id or #rrggbb. | |
| title_color | No | Colour of titles: an id from list_invitation_options or #rrggbb. | |
| announcement | No | One or two short sentences shown large near the top, e.g. 'With great joy we invite you to our wedding'. If omitted, a standard sentence in the invitation language is used. | |
| hide_sections | No | Sections to hide from guests (their content is kept). | |
| partner1_name | No | First partner's name as it should appear on the invitation (first name, or full name). | |
| partner2_name | No | Second partner's name. | |
| show_sections | No | Sections to show again. A section with no content cannot be shown. | |
| extra_sections | No | Extra titled notes for anything else: accommodation, transport, children, parking. Sending the list replaces the previous extra sections. | |
| ornament_color | No | Colour of flowers and decorative lines: an id or #rrggbb. | |
| ownership_code | Yes | The ownership_code returned by create_invitation. | |
| background_color | No | Colour of the page background: an id or #rrggbb. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||