PUT method to update a Product
Name | Description |
---|---|
account_id required | Your account unique identifier to access API. |
UUID required | Unique identifier of the product |
name | Name of the product |
price | Price of the product |
currency | Currency of the product |
description | Description of the product |
url | The external link of the product |
image_url | The external image link of the product |
'Your variable product' | You can create a variable product and use it within your API request: 'https://www.cendyncrm.com/settings/product_custom_fields' |
PUT
/v2/account/:account_id/products/:UUID
Accept: application/json
Authorization: Token token={account.secret}
Content-Type: application/json
{
"UUID": "321093",
"name": "Hotel Paris",
"price": 748.45,
"currency": "EUR",
"description": "PUSHOTEL Paris hotel with more than 400 rooms in center city.",
"url": "https://www.pushotels.com/",
"image_url": "https://www.pushotels.com/assets/img/gallery/g3@2x.jpg"
}
200
{
"product": {
"UUID": "321093",
"created_at": "2016-06-22T14:24:07Z",
"updated_at": "2016-06-22T14:24:07Z",
"name": "Hotel Paris",
"price": 748.45,
"currency": "EUR",
"description": "PUSHOTEL Paris hotel with more than 400 rooms in center city.",
"url": "https://www.pushotels.com/",
"image_url": "https://www.pushotels.com/assets/img/gallery/g3@2x.jpg"
}
}