Getting Started
Endpoints
- Benefit Applications
- Benefits
- Bookings
- Companies
- Event Tickets
- Feed Posts
- Invoices
- Invoice Items
- Locations
- Memberships
- Networks
- Orders
- Plans
- Products
- Resources
- Subscriptions
- Support Tickets
- Transactions
- Visitors
Products
Update a product
Update a certain product.
OAuth
Required scopes:shop
PUT
/
shop
/
products
/
v1
/
{productId}
curl --request PUT \
--url https://api.spacebring.com/shop/products/v1/{productId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"product": {
"description": "<string>",
"featured": true,
"title": "<string>",
"options": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customTax": {
"enabled": true,
"rate": 123
},
"description": "<string>",
"available": true,
"price": {
"credits": {
"amount": 123,
"enabled": true
},
"money": {
"amount": 123,
"enabled": true
}
},
"title": "<string>"
}
]
}
}'
{
"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",
"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
}
},
"title": "<string>"
}
],
"title": "<string>"
}
}
Authorizations
See our authentication documentation for how to authorize your requests
Headers
The id of the network. Required when using bearer token authentication
Path Parameters
The id of the product.
Body
application/json
Response
200
application/json
OK
curl --request PUT \
--url https://api.spacebring.com/shop/products/v1/{productId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"product": {
"description": "<string>",
"featured": true,
"title": "<string>",
"options": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customTax": {
"enabled": true,
"rate": 123
},
"description": "<string>",
"available": true,
"price": {
"credits": {
"amount": 123,
"enabled": true
},
"money": {
"amount": 123,
"enabled": true
}
},
"title": "<string>"
}
]
}
}'
{
"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",
"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
}
},
"title": "<string>"
}
],
"title": "<string>"
}
}