Replies: 1 comment
-
--data '@data.json' |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am struggeling adding tags with api :
curl -k -X POST --location 'https://x.x.x.x/tags/add' --header 'Authorization: XXXXXXXXXXXXXX' --header "Accept: application/json" --header 'Content-Type: application/json' --data 'data.json'
i get :
{"name":"Invalid JSON input. Make sure that the JSON input is a correctly formatted JSON string. This request has been blocked to avoid an unfiltered request.","message":"Invalid JSON input. Make sure that the JSON input is a correctly formatted JSON string. This request has been blocked to avoid an unfiltered request.","url":"/tags/add"}
cat data.json
{
"name": "departement : xxx",
"colour": "#1976e3",
"exportable": true,
"org_id": "1",
"user_id": "0",
"hide_tag": false,
"numerical_value": null,
"is_galaxy": false,
"is_custom_galaxy": false,
"inherited": 1
}
I tried many variation of data.json without success.
Regards
Beta Was this translation helpful? Give feedback.
All reactions