PUT api2/prices/{id}.json
Update price by ID
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Price ID |
string |
Required |
Body Parameters
Price
api_rootName | Description | Type | Additional information |
---|---|---|---|
entry | PriceModels |
None. |
Request Format
{ "entry": { "title": "sample string 2", "company_id": 1, "valid": 1, "assignment": 1, "modified_at": "2024-12-21T17:15:26.0513818+01:00", "pay_what_you_want": true, "type": 64, "currencies": [ { "currency": "usd", "id": 2, "price": 3 }, { "currency": "usd", "id": 2, "price": 3 } ], "countries": [ { "country": null, "country_name": null, "country_code": null, "id": 4, "price": 5 }, { "country": null, "country_name": null, "country_code": null, "id": 4, "price": 5 } ] } }
Response Information
Resource Description
Updated price
api_rootName | Description | Type | Additional information |
---|---|---|---|
entry | PriceModels |
None. |
Response Format
{ "entry": { "id": 1, "title": "sample string 2", "created_at": "2024-12-21T17:15:26.0513818+01:00", "company_id": 1, "valid": 1, "assignment": 1, "modified_at": "2024-12-21T17:15:26.0513818+01:00", "pay_what_you_want": true, "type": 64, "currencies": [ { "currency": "usd", "id": 2, "price": 3 }, { "currency": "usd", "id": 2, "price": 3 } ], "countries": [ { "country": null, "country_name": null, "country_code": null, "id": 4, "price": 5 }, { "country": null, "country_name": null, "country_code": null, "id": 4, "price": 5 } ] } }