update_offer
Modify existing offers in Ghost CMS by updating fields like name, code, display title, and description. Requires the offer ID and optional details for changes. Returns the updated offer representation.
Instructions
Update an existing offer in Ghost.
Args:
offer_id: ID of the offer to update (required)
name: New internal name for the offer (optional)
code: New shortcode for the offer (optional)
display_title: New name displayed in the offer window (optional)
display_description: New text displayed in the offer window (optional)
ctx: Optional context for logging
Returns:
String representation of the updated offer
Raises:
GhostError: If the Ghost API request fails
ValueError: If no fields to update are provided
Input Schema
Name | Required | Description | Default |
---|---|---|---|
code | No | ||
display_description | No | ||
display_title | No | ||
name | No | ||
offer_id | Yes |