I want to create a script with helping of this document but I don't know how to pass a groovy file instead of json and when I execute
curl -u admin:admin123 -X POST --header 'Content-Type: application/json' \ ─╯
http://<url>/service/rest/v1/script \
-d create_task.groovy
I got this error:
{ "id" : "*", "message" : "Could not process the input: Unrecognized token 'create_task': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')" }%
Any help would be appreciated!