Join 34,000+ subscribers and receive articles from our
blog about software quality, testing, QA and security.

[add_run] {"error":"Field :suite_id is a required field."}


#1

getting {“error”:“Field :suite_id is a required field.”} while making following POST request

/usr/bin/curl --insecure -L -X POST -H “Content-Type: application/json” -u username:password ‘https://host:20202/testrail/api/v2/add_run/91’ -d ‘{ “suite_id”: “2918”, “name”:“test2018-02-07-12:18:54” }’


#2

I got solution for this :):grin:

I used following command
/usr/bin/curl --insecure -L -X POST -H “Content-Type: application/json” -u guest_associates@amazon.com:testaccount ‘https://host:20202/api.php?/api/v2/add_run/91&suite_id=2918’ --data ‘{ “suite_id”: “2918”, “name”:“test2018-02-07-12:18:54” }’