fields.clients[], cada campo é identificado por uma chave key composta pelo nome do grupo pai e do campo filho, no formato grupoPai.campoFilho (por exemplo, fiadores.nome) — nunca pelo identificador (id) do campo, que é rejeitado pela API. O mesmo vale para fields.generalSections[]: cada campo usa key, title, type e value, sem id. Além disso, cada item de clients[] exige name e index além de clientId e fields, e cada item de generalSections[] exige title e index além de section e fields.GET .../templates/{templateId}/fields) para obter a estrutura exata a ser preenchida antes de montar este payload.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"
}