Skip to main content
PUT
/
custom_fields
/
{id}
Update a custom field
curl --request PUT \
  --url https://app.supercycle.com/api/v1/custom_fields/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "value": "<string>"
}
'
{
  "id": 123,
  "ownerId": 123,
  "ownerType": "Item",
  "definitionId": 123,
  "key": "<string>",
  "value": "<string>",
  "valueJson": "<unknown>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

Numeric ID of the custom field.

Body

application/json
value
string
required

New value of the custom field.

Response

Custom field updated successfully

id
integer<int64>
required

Numeric ID of the custom field.

ownerId
integer<int64>
required

ID of the item or rental that owns this custom field.

ownerType
enum<string>
required

Type of the owner resource.

Available options:
Item,
Rental
definitionId
integer<int64>
required

ID of the custom field definition.

key
string
required

Key of the custom field definition.

value
string
required

Raw stored value of the custom field.

valueJson
any

Typed JSON value of the custom field (format depends on definition type).