Getting started
Endpoints
- Benefit applications
- Benefit categories
- Benefits
- Bookings
- Companies
- Events
- Event tickets
- Feed posts
- Invoices
- Invoice items
- Locations
- Memberships
- Networks
- Orders
- Plans
- Products
- Registrations
- Resources
- Shop categories
- Subscriptions
- Support tickets
- Transactions
- Visitors
Benefits
Update a benefit
Update a benefit.
OAuth
Required scopes:benefits
PUT
/
benefits
/
v1
/
{id}
Update a benefit
Copy
curl --request PUT \
--url https://api.spacebring.com/benefits/v1/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"benefit": {
"application": {
"confirmationEmail": {
"enabled": true,
"template": "<string>"
},
"allowance": "once",
"enabled": true,
"buttonLabel": "apply"
},
"categoryRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"featured": true,
"media": [
{
"key": "<string>"
}
],
"subtitle": "<string>",
"title": "<string>",
"visibility": "public"
}
}'
Copy
{
"benefit": {
"application": {
"confirmationEmail": {
"enabled": true,
"template": "<string>"
},
"allowance": "once",
"enabled": true,
"buttonLabel": "apply"
},
"categoryRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createDate": "2023-11-07T05:31:56Z",
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subtitle": "<string>",
"title": "<string>",
"updateDate": "2023-11-07T05:31:56Z",
"visibilityType": "<string>"
}
}
Authorizations
See our authentication documentation for how to authorize your requests
Path Parameters
The id of the benefit
Body
application/json
Response
200
application/json
OK
The response is of type object
.
Update a benefit
Copy
curl --request PUT \
--url https://api.spacebring.com/benefits/v1/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"benefit": {
"application": {
"confirmationEmail": {
"enabled": true,
"template": "<string>"
},
"allowance": "once",
"enabled": true,
"buttonLabel": "apply"
},
"categoryRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"featured": true,
"media": [
{
"key": "<string>"
}
],
"subtitle": "<string>",
"title": "<string>",
"visibility": "public"
}
}'
Copy
{
"benefit": {
"application": {
"confirmationEmail": {
"enabled": true,
"template": "<string>"
},
"allowance": "once",
"enabled": true,
"buttonLabel": "apply"
},
"categoryRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createDate": "2023-11-07T05:31:56Z",
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subtitle": "<string>",
"title": "<string>",
"updateDate": "2023-11-07T05:31:56Z",
"visibilityType": "<string>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.