curl --request PUT \
--url https://api.spacebring.com/shop/products/v1/{productId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"product": {
"categoryRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"options": [
{
"available": true,
"price": {
"credits": {
"amount": 123,
"enabled": true
},
"money": {
"amount": 123,
"enabled": true
}
},
"title": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customTax": {
"enabled": true,
"rate": 123
},
"description": "<string>"
}
],
"description": "<string>",
"featured": true,
"media": [
{
"key": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
}
],
"visibility": "<string>",
"order": {
"confirmationEmail": {
"enabled": true,
"template": "<string>"
},
"enabled": true
},
"refundPolicy": "noRefund"
}
}
'{
"product": {
"categoryRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createDate": "2023-11-07T05:31:56Z",
"description": "<string>",
"featured": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"imageUrl": "<string>",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"media": [
{
"key": "<string>",
"url": "<string>"
}
],
"options": [
{
"available": true,
"createDate": "2023-11-07T05:31:56Z",
"customTax": {
"enabled": true,
"rate": 123
},
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price": {
"credits": {
"amount": 123,
"enabled": true
},
"money": {
"amount": 123,
"currencyCode": "<string>",
"enabled": true
}
},
"stock": {
"enabled": true,
"quantity": 123
},
"title": "<string>"
}
],
"order": {
"confirmationEmail": {
"enabled": true,
"template": "<string>"
},
"enabled": true
},
"refundPolicy": "<string>",
"title": "<string>",
"updateDate": "2023-11-07T05:31:56Z",
"visibility": "<string>"
}
}Update a certain product.
shopcurl --request PUT \
--url https://api.spacebring.com/shop/products/v1/{productId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"product": {
"categoryRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"options": [
{
"available": true,
"price": {
"credits": {
"amount": 123,
"enabled": true
},
"money": {
"amount": 123,
"enabled": true
}
},
"title": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customTax": {
"enabled": true,
"rate": 123
},
"description": "<string>"
}
],
"description": "<string>",
"featured": true,
"media": [
{
"key": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
}
],
"visibility": "<string>",
"order": {
"confirmationEmail": {
"enabled": true,
"template": "<string>"
},
"enabled": true
},
"refundPolicy": "noRefund"
}
}
'{
"product": {
"categoryRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createDate": "2023-11-07T05:31:56Z",
"description": "<string>",
"featured": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"imageUrl": "<string>",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"media": [
{
"key": "<string>",
"url": "<string>"
}
],
"options": [
{
"available": true,
"createDate": "2023-11-07T05:31:56Z",
"customTax": {
"enabled": true,
"rate": 123
},
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price": {
"credits": {
"amount": 123,
"enabled": true
},
"money": {
"amount": 123,
"currencyCode": "<string>",
"enabled": true
}
},
"stock": {
"enabled": true,
"quantity": 123
},
"title": "<string>"
}
],
"order": {
"confirmationEmail": {
"enabled": true,
"template": "<string>"
},
"enabled": true
},
"refundPolicy": "<string>",
"title": "<string>",
"updateDate": "2023-11-07T05:31:56Z",
"visibility": "<string>"
}
}See our authentication documentation for how to authorize your requests
The id of the network. Required when using bearer token authentication
The id of the product.
Show child attributes
Show child attributes
Show child attributes
noRefund, statusNew OK
Show child attributes
The date and time in ISO 8601 format, e.g. 2021-05-21T10:00:00Z
Show child attributes
The date and time in ISO 8601 format, e.g. 2021-05-21T10:00:00Z
Show child attributes
The date and time in ISO 8601 format, e.g. 2021-05-21T10:00:00Z