fields.clients[], each field is identified by a key made up of the parent group name and the child field name, in the format parentGroup.childField (for example, fiadores.nome) — never by the field's identifier (id), which is rejected by the API. The same applies to fields.generalSections[]: each field uses key, title, type and value, without id. In addition, each item in clients[] requires name and index besides clientId and fields, and each item in generalSections[] requires title and index besides section and fields.GET .../templates/{templateId}/fields) to get the exact structure to fill in before assembling this request body.curl --location '/v1/cards//templates//generate' \
--header 'Content-Type: application/json' \
--data '{
"fileName": "string",
"fields": {
"clients": [
{
"clientId": "string",
"name": "string",
"index": 0,
"fields": [
{
"key": "string",
"title": "string",
"type": "string",
"value": null
}
]
}
],
"generalSections": [
{
"section": "string",
"title": "string",
"index": 0,
"fields": [
{
"key": "string",
"title": "string",
"required": true,
"type": "string",
"value": null
}
]
}
],
"general": [
"string"
],
"opinion": null,
"images": [
"string"
]
}
}'{
"id": "string",
"fileName": "string",
"fileDownloadUrl": "string"
}