PUT
/
api
/
v1
/
custom-attributes
/
{id}
Update Custom Attribute
curl --request PUT \
  --url http://localhost:8080/api/v1/custom-attributes/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "created_at": "2025-08-28T10:00:00Z",
  "updated_at": "2025-08-28T10:00:00Z",
  "name": "Customer Type",
  "key": "customer_type",
  "type": "select",
  "options": [
    "Premium",
    "Standard"
  ]
}'
{
  "status": "success",
  "data": {
    "id": 1,
    "created_at": "2025-08-28T10:00:00Z",
    "updated_at": "2025-08-28T10:00:00Z",
    "name": "Customer Type",
    "key": "customer_type",
    "type": "select",
    "options": [
      "Premium",
      "Standard"
    ]
  }
}

Authorizations

Authorization
string
header
required

Basic authentication using base64 encoded API key and secret. Format: Authorization: Basic <base64(api_key:api_secret)>

Path Parameters

id
string
required

Body

application/json

Custom attribute update

The body is of type object.

Response

200
application/json

Custom attribute updated successfully

The response is of type object.