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"
}
}
'{
"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>"
}
}Update a benefit.
benefitscurl --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"
}
}
'{
"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>"
}
}See our authentication documentation for how to authorize your requests
The id of the benefit
Show child attributes
Show child attributes
once, unlimited apply, buy, contact, get, learnMore The id of the category.
public, admins, members, networkMembers OK
Show child attributes
Show child attributes
once, unlimited apply, buy, contact, get, learnMore The date and time in ISO 8601 format, e.g. 2021-05-21T10:00:00Z
The date and time in ISO 8601 format, e.g. 2021-05-21T10:00:00Z