Solved
Different way to expire Web API
Hi Team,
I'm using API Key approach to access web api, is there a automated way to disable the web API to show error between 4pm to 8pm. Is there a approach to do that?
Hi Team,
I'm using API Key approach to access web api, is there a automated way to disable the web API to show error between 4pm to 8pm. Is there a approach to do that?
You can add this logic in the API to only execute the action between the time you want it.
if(
and(
now() > time(16, 00, 00, 00),
now() < time(18, 00, 00, 00)
),
a!httpResponse(
statusCode: 200,
headers: {},
body: "Hello World"
),
a!httpResponse(
statusCode: 503,
headers: {},
body: "Please try between 4:00 PM and 8:00 PM"
)
)Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.