I’m trying to trigger builds with the below curl command:
curl --user ${CIRCLE_TOKEN}: \
--request POST \
--form revision=xxx\
--form config=@config.yml \
--form notify=false \
--form build_parameters='{"key":"value"}' \
https://circleci.com/api/v1.1/project/bitbucket/xx/yyy/tree/master
but end up getting the error in response:
{
"message" : "Invalid build_parameters value: must be a map"
}
problem is in the the build_parameters line:
–form build_parameters=‘{“key”:“value”}’ \
what is the correct way of passing build_parameters variables as map?