Catalog
update_product
Write grantIdempotent
Change a product's slug, name, type, description or repository. Only the fields given change. An archived product cannot change, and a product becomes a website or API product only once each of its deployments has a base URL. Returns the product. Needs write access.
Inputs
productstringRequiredThe product's slug, such as storefront.
slugstringA new slug for the product, such as web-store.
namestringThe product's display name, up to 100 characters, such as Storefront.
typestringWhat kind of software the product is. Website and API products need a base URL in every deployment.
One of
websiteapiclimobile_appdesktop_appagentdescriptionnullable stringWhat the product is, up to 200 characters. null clears it.
repositorynullable stringThe source repository as owner/name, such as acme/storefront. null clears it.
tools/callJSON-RPC
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "update_product", "arguments": { "product": "storefront", "description": "The Acme web store and its docs site." } }}POST/agent/v1/products:update
curl -X POST https://api.qa.clankership.net/agent/v1/products:update \ -H "Authorization: Bearer $CLANKER_AGENT_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "product": "storefront", "description": "The Acme web store and its docs site." }'