Skip to main content
PUT
/
benefits
/
v1
/
{id}
Update a benefit
curl --request PUT \
  --url https://api.spacebring.com/benefits/v1/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "benefit": {
    "categoryRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "title": "<string>",
    "application": {
      "allowance": "unlimited",
      "buttonLabel": "apply",
      "confirmationEmail": {
        "enabled": false,
        "template": ""
      },
      "enabled": true
    },
    "description": "",
    "featured": false,
    "media": [
      {
        "key": "<string>"
      }
    ],
    "subtitle": "",
    "visibility": "public"
  }
}
'
{
  "benefit": {
    "application": {
      "confirmationEmail": {
        "enabled": true,
        "template": "<string>"
      },
      "enabled": true
    },
    "categoryRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createDate": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "featured": true,
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "locale": "<string>",
    "locationRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "media": [
      {
        "key": "<string>",
        "url": "<string>"
      }
    ],
    "networkRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "subtitle": "<string>",
    "title": "<string>",
    "updateDate": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

See our authentication documentation for how to authorize your requests

Path Parameters

id
string<uuid>
required

The id of the benefit

Body

application/json
benefit
object
required

Benefit to update.

Response

OK

benefit
object