pin_edit
Edit one draft using its last read revision.
For agents: this page as Markdown.
- Group
- Granted by
-
pinterest:write - Team permission
-
listing.edit— a role that can edit listings - Effect
- Writes to the seller’s Tusella workspace only. Nothing is sent to Etsy or Pinterest.
- Undo
- The result carries a
recovery_refforpin_revert. - Retry-safe
- Repeat the same
client_request_idwith the same arguments.
Description
Edit one draft using its last read revision. To undo a draft edit, read current state and edit the prior values. Submitted Pins refuse this draft operation.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| alt_text | string | no | Describe the photo for accessibility. |
| based_on_selection_revision | integer | no | The revision returned by your last Pin read. |
| board_id | string | no | The chosen public board id, belonging to that Pinterest account. |
| board_section_id | string | no | A section of the selected board. Empty string selects the board root. |
| client_request_id | string | yes | Mint once for this deliberate command; reuse the same key and payload on every retry. |
| description | string | no | Pin description. |
| destination_url | string | no | A public HTTPS destination; empty uses the attached listing Etsy URL. |
| expected_draft_revision | integer | yes | The revision returned by your last Pin read. |
| listing_id | string | null | no | Optional listing attribution; null clears it independently of the destination link. |
| media_asset_id | string | no | The id returned by a Tusella read. |
| pin_id | string | yes | The id returned by a Tusella read. |
| pinterest_account_id | string | null | no | A team Pinterest account allowed for the Pin's shop; null clears it. |
| scheduled_local | string | no | Chosen local date and time, YYYY-MM-DDTHH:MM. |
| slides | array of object | no | Ordered photos; one photo or 2–5 carousel slides. |
| timezone | string | no | IANA time zone such as Europe/Kyiv. |
| timing_intent | "now" | "scheduled" | no | Draft timing proposal only; does not submit. |
| title | string | no | Pin title. |
Example
{
"pin_id": "00000000-0000-0000-0000-000000000001",
"client_request_id": "edit",
"expected_draft_revision": 0,
"title": "Edited"
}{
"result": {
"pin_id": "00000000-0000-0000-0000-000000000001",
"draft_revision": 1,
"selection_revision": 0,
"intent_revision": 0,
"lifecycle_state": "draft",
"tusella_path": "/pinterest?dispatch=00000000-0000-0000-0000-000000000001",
"command_id": "00000000-0000-0000-0000-000000000001",
"outcome": "",
"reason_code": "",
"requested_for": null,
"timezone": "",
"pin_url": null,
"recovery_ref": "00000000-0000-0000-0000-000000000001"
}
}Schemas
Exactly what the server declares to MCP clients. The input_schema is what the server validates arguments against.
Input schema· 125 lines of JSON
{
"additionalProperties": false,
"properties": {
"alt_text": {
"description": "Describe the photo for accessibility.",
"maxLength": 500,
"type": "string"
},
"based_on_selection_revision": {
"description": "The revision returned by your last Pin read.",
"minimum": 0,
"type": "integer"
},
"board_id": {
"description": "The chosen public board id, belonging to that Pinterest account.",
"maxLength": 64,
"type": "string"
},
"board_section_id": {
"description": "A section of the selected board. Empty string selects the board root.",
"maxLength": 64,
"type": "string"
},
"client_request_id": {
"description": "Mint once for this deliberate command; reuse the same key and payload on every retry.",
"maxLength": 128,
"type": "string"
},
"description": {
"description": "Pin description.",
"maxLength": 800,
"type": "string"
},
"destination_url": {
"description": "A public HTTPS destination; empty uses the attached listing Etsy URL.",
"maxLength": 2048,
"type": "string"
},
"expected_draft_revision": {
"description": "The revision returned by your last Pin read.",
"minimum": 0,
"type": "integer"
},
"listing_id": {
"description": "Optional listing attribution; null clears it independently of the destination link.",
"maxLength": 255,
"type": [
"string",
"null"
]
},
"media_asset_id": {
"description": "The id returned by a Tusella read.",
"maxLength": 64,
"type": "string"
},
"pin_id": {
"description": "The id returned by a Tusella read.",
"maxLength": 64,
"type": "string"
},
"pinterest_account_id": {
"description": "A team Pinterest account allowed for the Pin's shop; null clears it.",
"maxLength": 255,
"type": [
"string",
"null"
]
},
"scheduled_local": {
"description": "Chosen local date and time, YYYY-MM-DDTHH:MM.",
"maxLength": 32,
"type": "string"
},
"slides": {
"description": "Ordered photos; one photo or 2–5 carousel slides.",
"items": {
"additionalProperties": false,
"properties": {
"media_asset_id": {
"description": "The id returned by a Tusella read.",
"maxLength": 64,
"type": "string"
},
"slide_id": {
"description": "The id returned by a Tusella read.",
"maxLength": 64,
"type": "string"
}
},
"required": [
"media_asset_id"
],
"type": "object"
},
"maxItems": 5,
"minItems": 1,
"type": "array"
},
"timezone": {
"description": "IANA time zone such as Europe/Kyiv.",
"maxLength": 64,
"type": "string"
},
"timing_intent": {
"description": "Draft timing proposal only; does not submit.",
"enum": [
"now",
"scheduled"
],
"type": "string"
},
"title": {
"description": "Pin title.",
"maxLength": 100,
"type": "string"
}
},
"required": [
"pin_id",
"client_request_id",
"expected_draft_revision"
],
"type": "object"
}Output schema· 82 lines of JSON
{
"additionalProperties": false,
"properties": {
"command_id": {
"maxLength": 64,
"type": "string"
},
"draft_revision": {
"minimum": 0,
"type": "integer"
},
"intent_revision": {
"minimum": 0,
"type": "integer"
},
"lifecycle_state": {
"maxLength": 32,
"type": "string"
},
"outcome": {
"maxLength": 16,
"type": "string"
},
"pin_id": {
"maxLength": 64,
"type": "string"
},
"pin_url": {
"maxLength": 255,
"type": [
"string",
"null"
]
},
"reason_code": {
"maxLength": 64,
"type": "string"
},
"recovery_ref": {
"maxLength": 64,
"type": "string"
},
"requested_for": {
"maxLength": 64,
"type": [
"string",
"null"
]
},
"selection_revision": {
"minimum": 0,
"type": "integer"
},
"timezone": {
"maxLength": 64,
"type": "string"
},
"tusella_path": {
"maxLength": 100,
"type": "string"
}
},
"required": [
"pin_id",
"draft_revision",
"selection_revision",
"intent_revision",
"lifecycle_state",
"tusella_path",
"command_id",
"outcome",
"reason_code",
"requested_for",
"timezone",
"pin_url"
],
"type": "object",
"x-result-size-budget": {
"max_bytes": 19000,
"strategy": "bounded-result"
}
}