Create a public week link
share_weekCreates a public link to one of the user's Saved Weeks (savedWeekId) so others can preview it and import a copy. Anyone with the link can see the dinners and recipe contents, so it suits a request to share. Draft IDs are private and are never share codes. Requires a linked Chop it account.
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": {
"savedWeekId": "<savedWeekId>"
},
"name": "share_week"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| savedWeekId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| created | Yes | ||
| message | Yes | ||
| shareUrl | Yes | ||
| shareCode | Yes |