Update Market provider product

This function sets an attribute for a cPanel Market provider's product.

SecurityBasicAuth
Request
query Parameters
attribute
required
string

The attribute of the cPanel Market provider's product.

Note

Attributes vary between cPanel Market providers and products.

Example: attribute=price
product_id
required
string

The cPanel Market provider product's name.

Example: product_id=12345
provider
required
string

The cPanel Market provider's name.

Example: provider=cPStore
value
required
string

The value to set for the attribute.

Example: value=6.00
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/set_market_product_attribute
Request samples
whmapi1 --output=jsonpretty \
  set_market_product_attribute \
  provider='cPStore' \
  product_id='12345' \
  attribute='price' \
  value='6.00'
Response samples
application/json
{
  • "metadata": {
    • "command": "set_market_product_attribute",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}