PUT /V1/customerGroups/{id}
curl \
-X PUT https://magento2.winkelstraat.mac/rest/all/V1/customerGroups/{id} \
-d '{"group":{"id":42,"code":"string","tax_class_id":42,"tax_class_name":"string","extension_attributes":{"exclude_website_ids":[42]}}}'
Request examples
{
"group": {
"id": 42,
"code": "string",
"tax_class_id": 42,
"tax_class_name": "string",
"extension_attributes": {
"exclude_website_ids": [
42
]
}
}
}
Response examples (200)
{
"id": 42,
"code": "string",
"tax_class_id": 42,
"tax_class_name": "string",
"extension_attributes": {
"exclude_website_ids": [
42
]
}
}
Response examples (401)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (400)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (500)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}