POST
/
benefits
/
v1
Create a benefit
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>"
}

Authorizations

Authorization
string
header
required

See our authentication documentation for how to authorize your requests

Headers

spacebring-network-id
string

The id of the network. Required when using bearer token authentication

Body

application/json

Response

201
application/json

Created

The response is of type object.