ValeronDocs

Fields and pipelines

Update a field

PATCH/v1/fields/{field_id}

Requires the scope schema:write

Change a custom field's label, description, group or AI prompt.

#Path parameters

field_idstringrequired

#Request body

application/json
ai_promptstring or null
descriptionstring or null
groupstring or null
labelstring or null

#Responses

200Successful Response
Show response fieldsHide response fields
ai_promptstring or nullrequired
can_filterbooleanrequired
can_groupbooleanrequired
can_sortbooleanrequired
descriptionstringrequired
groupstringrequired
idstring or nullrequired
is_aibooleanrequired
is_custombooleanrequired
is_multibooleanrequired
is_read_onlybooleanrequired
is_requiredbooleanrequired
keystringrequired
labelstringrequired
link_objectstring or nullrequired
metricobject or nullrequired
What a metric column is: the metric, the period it is worked out over and its unit.
Show child attributesHide child attributes
keystringrequired
minimum_sampleintegerrequired
periodstringrequired
unitstringrequired
optionsobject[] or nullrequired
Show child attributesHide child attributes
colorstring or nullrequired
Allowed values: "purple" "green" "red" "yellow" "gray" "pink" "blue" "orange"
labelstringrequired
valuestringrequired
typeobjectrequired
Show child attributesHide child attributes
labelstringrequired
valuestringrequired

#Errors

Errors use the standard error shape.

StatusMeaning
400The request is not valid.
401Not signed in, or the credentials are not valid.
402The balance is too low.
403Not allowed to do this.
404Not found.
409Conflicts with the current state.
413The request body is too large.
415The content type is not supported.
422A value in the request is not valid.
429Too many requests. Wait for Retry-After seconds.
500Something went wrong on our side.
502A service Valeron depends on refused the request.
503A service Valeron depends on is unavailable.