Skip to main content
PUT
/
fields
/
{field_id}
Update Field
curl --request PUT \
  --url https://api.everhour.com/fields/{field_id} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "name": "field name",
  "type": "select",
  "format": {
    "decimals": 2,
    "label": "US$"
  },
  "icon": "<string>",
  "options": [
    {
      "id": 806,
      "name": "option value",
      "color": "#FC5500"
    }
  ]
}
'
{
  "id": 406,
  "name": "field name",
  "type": "date",
  "format": {
    "decimals": 2,
    "label": "US$"
  },
  "options": [
    {
      "id": 806,
      "name": "option value",
      "color": "#FC5500"
    }
  ],
  "position": 1
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

field_id
number
required

Field ID

Example:

4456411

Body

application/json
name
string
Example:

"field name"

type
enum<string>
Available options:
number,
text,
select,
date
Example:

"select"

format
object
icon
string
options
object[]

Up to 10 options for select type field

Response

OK

id
number

Custom field ID

Example:

406

name
string
Example:

"field name"

type
string
Example:

"date"

format
object
options
object[]
position
number
Example:

1