Forum Discussion

ramyaw's avatar
15 days ago

Zephyr API : /rest/zapi/latest/execution/addTestsToCycle not working

I was trying to access the APIs to create test cycles from Automated code. But the POST or PUT APIs are not working. It responds with 405 method not found. For example i am trying to hit this from psotman

Url:http://host:port/rest/zapi/latest/execution/addTestsToCycle

Method:POST

Body: 

{

  "issues": [

    "QE-3800"

  ],

  "versionId": 28389,

  "cycleId": "21263",

  "projectId": "15113",

  "method": "1"

}

Facing the same issue with any POST/PUT APIs. All the GET requests are working fine...Any help would be appreciated.

  • MisterB's avatar
    MisterB
    Icon for Champion Level 3 rankChampion Level 3

    I'm not familiar with that URL structure, perhaps it's an older version.  The current documentation is linked below and an example URL:

    URL: https://api.zephyrscale.smartbear.com/v2/testcycles

    Zephyr Scale for Jira Cloud API