Trying to solve "argument list too long" I have been searching for a solution and found the closest one to my issue curl: argument list too long however the response is not clear as I am still having the issue "argument list too long"
curl -X POST -d @data.txt \
https://Path/to/attachments \
-H 'content-type: application/vnd.api+json' \
-H 'x-api-key: KEY' \
-d '{
"data": {
"type": "attachments",
"attributes": {
"attachment": {
"content": "'$(cat data.txt | base64 --wrap=0)'",
"file_name": "'"$FileName"'"
}
}
}
}'
thank you