Update pricing market group
Replace the name, countries, and metadata of a pricing market group.
Replace the name, countries, and metadata of a pricing market group.
Authorization
ApiKeyAuth x-api-key<token>
In: header
Path Parameters
id*string
Header Parameters
Idempotency-Key?string
Unique key used to safely retry this write for 24 hours without applying it twice.
Length
1 <= length <= 200Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
name*string
Length
1 <= lengthcountryCodes*array<>
Items
1 <= itemsmetadata?
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/pricing/market-groups/string" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "countryCodes": [ "st" ] }'{ "id": "string", "name": "string", "countryCodes": [ "string" ], "metadata": { "property1": null, "property2": null }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "object": "market_group", "livemode": true}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}