Batch create custom profile fields
Create multiple custom profile fields in a single request (max 20 items).
POST
/api/custom-profile-fields/batch
curl \
--request POST 'https://[tenant_id].logto.app/api/custom-profile-fields/batch' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '[{"name":"string","type":"string","label":"string","description":"string","required":true,"config":{"placeholder":"string","minLength":42.0,"maxLength":42.0}}]'
Request examples
[
{
"name": "string",
"type": "string",
"label": "string",
"description": "string",
"required": true,
"config": {
"placeholder": "string",
"minLength": 42.0,
"maxLength": 42.0
}
}
]
Response examples (201)
[
{
"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",
"customFormat": "string",
"options": [
{
"label": "string",
"value": "string"
}
],
"defaultValue": "string",
"parts": [
{
"enabled": true,
"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",
"customFormat": "string",
"options": [
{
"label": "string",
"value": "string"
}
],
"defaultValue": "string"
}
}
]
},
"createdAt": 42.0,
"sieOrder": 42.0
}
]