curl --request POST \
--url https://api.spacebring.com/benefits/v1 \
--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,
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"media": [
{
"key": "<string>"
}
],
"subtitle": "<string>",
"title": "<string>",
"visibility": "public"
}
}'
{
"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>"
}
Create a benefit.
benefits
curl --request POST \
--url https://api.spacebring.com/benefits/v1 \
--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,
"locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"media": [
{
"key": "<string>"
}
],
"subtitle": "<string>",
"title": "<string>",
"visibility": "public"
}
}'
{
"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 network. Required when using bearer token authentication
Created
The response is of type object
.