Set up expiry for location header uri in logic app async Response

Goutamendu HAIT 26 Reputation points
2020-10-12T10:23:54.933+00:00

I have enabled "Asynchronous Response" http Response action in my logic app which gets triggered with a http request . I can see from Postman that a location header is being returned with http status code 202 and the same url can be queried with multiple GET calls to know the completion status of the workflow .

I have verified that the the location header uri is active and can be queried even after 2-3 days which can be queried the same response back .In my scenario , this is not required .
Is it possible to set up expiry time for the location header uri ? if yes , Could you please suggest how .

Thank you .

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,716 questions
{count} votes

Accepted answer
  1. MayankBargali-MSFT 67,096 Reputation points
    2020-10-16T05:21:03.56+00:00

    Hi @Goutamendu HAIT

    I had a discussion with my product team and they have confirmed that the location URL is tied to the run and will be available as long as the run exists.
    Unfortunately, the only way to “expire” the URL is by deleting the run either manually, or by setting workflow retention duration. The default value for run retention is 90 days and the minimum it can be set to 7 days. Alternatively, you need to write your own logic to delete the run.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


0 additional answers

Sort by: Most helpful