PATCH
/
api
/
v2
/
platform
/
store_credit_categories
/
{id}
curl --request PATCH \
  --url http://{defaultHost}/api/v2/platform/store_credit_categories/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "store_credit_category": {
    "name": "refunded"
  }
}'
{
  "data": {
    "id": "9",
    "type": "store_credit_category",
    "attributes": {
      "name": "refunded",
      "created_at": "2022-11-08T19:35:34.884Z",
      "updated_at": "2022-11-08T19:35:35.112Z"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
store_credit_category
object
required

Response

200
application/vnd.api+json
Record updated
data
object
required