Ghost MCP Server

by MFYDev
Verified

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

NameRequiredDescriptionDefault
codeNo
display_descriptionNo
display_titleNo
nameNo
offer_idYes

Input Schema (JSON Schema)

{ "properties": { "code": { "default": null, "title": "Code", "type": "string" }, "display_description": { "default": null, "title": "Display Description", "type": "string" }, "display_title": { "default": null, "title": "Display Title", "type": "string" }, "name": { "default": null, "title": "Name", "type": "string" }, "offer_id": { "title": "Offer Id", "type": "string" } }, "required": [ "offer_id" ], "title": "update_offerArguments", "type": "object" }
ID: vor63xn7ky