Hello,
I'm trying to send a file to a card. Executing createPresignedUrl and PUT for S3 works perfectly, I can even access the download of the file that was sent.
My problem is with the updateFieldsValues mutation. When I send it I get an error, can you help me with that?
My mutation:
mutation {
updateFieldsValues(
input: {
nodeId: CARD-ID,
values: {
fieldId: "foto_do_cnpj_cpf",
value: ["uploads/7c3b7885-16d5-44c0-9e23-8570f261b20a/1633126573430.png"],
operation: ADD
}
}
)
{
clientMutationId,
updatedNode
}
}
The returned error:
{
"data": {
"updateFieldsValues": null
},
"errors": [
{
"message": "Invalid input: foto_do_cnpj_cpf ([\"uploads/7c3b7885-16d5-44c0-9e23-8570f261b20a/1633126573430.png\"])",
"locations": [
{
"line": 3,
"column": 7
}
],
"path": [
"updateFieldsValues"
],
"code": 30000,
"type": "PipefyRuntimeError"
}
]
}
Do you know what it can be? I've already checked the field id, it's correct