Skip to content

Edit the label (per language; replaces the whole set) and the description of a field. The type cannot change: 400 field_type_immutable

PATCH
/v1/fields/{field}
curl --request PATCH \
--url https://api.replifier.com/v1/fields/fld_01hx0000000000000000000000 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "label": { "es-MX": "example", "es-ES": "example", "es-AR": "example", "en": "example", "pt-BR": "example", "fr": "example", "de": "example", "it": "example", "ja": "example", "ko": "example", "zh-CN": "example", "ar": "example" }, "description": "example", "type": "text" }'
field
required
string
/^fld_[a-z0-9]{26}$/

Example

fld_01hx0000000000000000000000
Media typeapplication/json
object
label
object
es-MX
string
>= 1 characters <= 120 characters
es-ES
string
>= 1 characters <= 120 characters
es-AR
string
>= 1 characters <= 120 characters
en
string
>= 1 characters <= 120 characters
pt-BR
string
>= 1 characters <= 120 characters
fr
string
>= 1 characters <= 120 characters
de
string
>= 1 characters <= 120 characters
it
string
>= 1 characters <= 120 characters
ja
string
>= 1 characters <= 120 characters
ko
string
>= 1 characters <= 120 characters
zh-CN
string
>= 1 characters <= 120 characters
ar
string
>= 1 characters <= 120 characters
description
string
nullable <= 500 characters /^[^\x00-\x08\x0b\x0c\x0e-\x1f\x7f]*$/
type

Only so it can be rejected: the type cannot be changed

string
Allowed values: text number date boolean select

Field updated

Media typeapplication/json
object
id
required
string
brandId
required
string
key
required
string
label
required
object
key
additional properties
string
description
required
string
nullable
type
required
string
Allowed values: text number date boolean select
options
required
Array<string>
nullable
required
required
boolean
createdAt
required
string

Example

{
"type": "text"
}

Invalid data

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

No session, expired session, or invalid, expired or revoked API key

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Does not exist or is not visible to you

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Internal error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}