试图解决“参数列表太长”我一直在寻找解决的办法,发现一个最接近我的问题 卷曲:参数列表太长, 但响应并不清楚我仍然有问题“参数列表太长”
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"'"
}
}
}
}'
Run Code Online (Sandbox Code Playgroud)
谢谢你