Forum Discussion

tlytvyn's avatar
tlytvyn
Occasional Visitor
3 years ago

"message": "Please provide all mandatory details." in test automation API for POST request

Hi,

 

I am sending this request to create Test Automation task:

 

curl --location --request POST 'https://prod-vortexapi.zephyr4jiracloud.com/api/v1/automation/job/create' \
--header 'accessKey: <accessKeyValue>' \
--header 'jwt: JWT <jwtTokenValue>' \
--form 'jobName="Applause-selenium-run-13"' \
--form 'automationFramework="JUNIT"' \
--form 'cycleName="Applause-automation"' \
--form 'appendDateTimeInCycleName="true"' \
--form 'versionName="Regression"' \
--form 'file=@"/Users/tlytvyn/Desktop/Surefire.zip"' \
--form 'mandatoryFields="{\"reporter\": {\"label\": \"Taras Lytvyn\",\"name\": \"Taras Lytvyn\",\"id\": \"557058:4ac8b266-a685-413b-9c24-642d63bfefd0\"}}"' \
--form 'createNewFolder="false"' \
--form 'createNewCycle="false"' \
--form 'appendDateTimeInFolderName="false"' \
--form 'projectKey=""' \
--form 'cycleStartingDate=""' \
--form 'cycleEndingDate=""' \
--form 'assigneeUser=""' \
--form 'jobDescription=""'

 

and getting this error:

{
"message": "Please provide all mandatory details."
}
No RepliesBe the first to reply