unpublish_asset
Unpublish a published asset to revert it to draft status, removing it from live delivery in your Contentful space.
Instructions
Unpublish an asset
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": {
"assetId": "<assetId>",
"spaceId": "<spaceId>",
"environmentId": "<environmentId>"
},
"name": "unpublish_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assetId | Yes | ||
| spaceId | Yes | The ID of the Contentful space. This must be the space's ID, not its name, ask for this ID if it's unclear. | |
| environmentId | Yes | The ID of the environment within the space, by default this will be called Master | master |