Update a custom profile field by name
Update a custom profile field by name.
PUT
/api/custom-profile-fields/{name}
curl \
--request PUT 'https://[tenant_id].logto.app/api/custom-profile-fields/{name}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"type":"string","label":"string","description":"string","required":true,"config":{"placeholder":"string","minLength":42.0,"maxLength":42.0}}'
Request examples
Object-1
{
"type": "string",
"label": "string",
"description": "string",
"required": true,
"config": {
"placeholder": "string",
"minLength": 42.0,
"maxLength": 42.0
}
}
{
"type": "string",
"label": "string",
"description": "string",
"required": true,
"config": {
"placeholder": "string",
"minValue": 42.0,
"maxValue": 42.0
}
}
{
"type": "string",
"label": "string",
"description": "string",
"required": true,
"config": {
"placeholder": "string",
"format": "string"
}
}
{
"type": "string",
"label": "string",
"description": "string",
"required": true,
"config": {
"options": [
{
"label": "string",
"value": "string"
}
]
}
}
{
"type": "string",
"label": "string",
"description": "string",
"required": true,
"config": {
"placeholder": "string",
"options": [
{
"label": "string",
"value": "string"
}
]
}
}
{
"type": "string",
"label": "string",
"description": "string",
"required": true,
"config": {
"placeholder": "string"
}
}
{
"type": "string",
"label": "string",
"description": "string",
"required": true,
"config": {
"placeholder": "string",
"format": "string"
}
}
{
"type": "string",
"label": "string",
"description": "string",
"required": true,
"config": {
"parts": [
{
"key": "formatted",
"enabled": true
}
]
}
}
{
"type": "string",
"label": "string",
"description": "string",
"required": true,
"config": {
"parts": [
{
"key": "givenName",
"enabled": true
}
]
}
}
Response examples (200)
{
"tenantId": "string",
"id": "string",
"name": "string",
"type": "Text",
"label": "string",
"description": "string",
"required": true,
"config": {
"placeholder": "string",
"minLength": 42.0,
"maxLength": 42.0,
"minValue": 42.0,
"maxValue": 42.0,
"format": "string",
"options": [
{
"label": "string",
"value": "string"
}
],
"parts": [
{
"key": "string",
"enabled": true
}
]
},
"createdAt": 42.0,
"sieOrder": 42.0
}