cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Response status 202 with api call

ni5hat
Newcomer

Sometimes when I make a POST API call to dynatrace through python, I get 202 as the response status code,  meaning the request was accepted but is still being processed. 

My final goal is to get the final json response, hence I need a way to check the status of long-running requests. In general, 202 response often includes a Location header, which provides a URL where you can check the status of your request. But dynatrace does not include the location header in the 202 response.

Could anyone help me with the specific endpoint or method for checking long-running operations for dynatrace?

1 REPLY 1

Yosi_Neuman
DynaMight Guru
DynaMight Guru

Hi @ni5hat 

Under Dynatrace API - Response codes the follows is written:

In case when a successful request may return different codes, it is specified in the description of the request.

Anyhow, Can you elaborate on which API call you are using that's return 202?
My guess is that you are using a post call to create something, within the response body you should receive an ID that IMO you can check with the appropriate get API 
HTH
Yos 
dynatrace certificated professional - dynatrace master partner - Matrix Soft Ware Division - Israel

Featured Posts