Update for our Zephyr for Jira Server/DataCenter customers : Our team is working on a major version release of Zephyr for Jira to be compatible with Jira 8 .The tentative ETA for the release of this compatible version is by end of March 2019.Please watch this space and anticipate further notifications from the Zephyr team on the updates with regards to the release of the same.Till then we suggest you to use lower version of Jira for seamless operations of Zephyr plugin.For any further feedback , follow up queries or suggestions kindly 'Submit a Ticket' with us.
Support | Zephyr



Zapi HTTP Status 405 - Method Not Allowed

Created on

Problem

When attempting to update an API call, for example : execution status using url for a known execution id http://jira_url/rest/zapi/latest/execution/id/execute. we receive a 405 error-Method Not Allowed. The same happens when we navigate directly in a browser and receive the same error.

Cause and Fix

1.The API http://jira_url/jira/rest/zapi/latest/execution/id/execute allows PUT method and not POST
Kindly refer http://docs.getzephyr.apiary.io/#reference/executionresource/update-execution-details/update-execution-details . Make sure the correct request methods are used after referring the apiary document

2.Make sure that you are sending the required payload and content-type information. For example in this case it should be like below.

PathParam: id\*.
PUT /rest/zapi/latest/execution/{id}/execute
Content-Type: application/json
Payload:
{"status":"1","changeAssignee":false}

3.Make sure in your code wherever you are passing the response to an object you are using the corresponding response method ie PUT,POST....

For the example here use the below instead of objectVariable.post(payload)

Response response = objectVariabe.put(payload);

 


Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request
Powered by Zendesk