Create/Update new gift wrapping with data object values
Create/Update new gift wrapping with data object values
POST /V1/gift-wrappings
curl \
-X POST https://magento2.winkelstraat.mac/rest/all/V1/gift-wrappings \
-d '{"data":{"wrapping_id":42,"design":"string","status":42,"base_price":42.0,"image_name":"string","image_base64_content":"string","base_currency_code":"string","website_ids":[42],"image_url":"string","extension_attributes":{}},"storeId":42}'
Request examples
{
"data": {
"wrapping_id": 42,
"design": "string",
"status": 42,
"base_price": 42.0,
"image_name": "string",
"image_base64_content": "string",
"base_currency_code": "string",
"website_ids": [
42
],
"image_url": "string",
"extension_attributes": {}
},
"storeId": 42
}
Response examples (200)
{
"wrapping_id": 42,
"design": "string",
"status": 42,
"base_price": 42.0,
"image_name": "string",
"image_base64_content": "string",
"base_currency_code": "string",
"website_ids": [
42
],
"image_url": "string",
"extension_attributes": {}
}
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 (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}