After running the request, use the access token that you received in the response and pass it in the authorization header of the next request. The request can be to modify an alert template, or any other rest request.
The access token is valid for 5 minutes. You must refresh the access token after 5 minutes or rerun the login request to replace the token.
In the sample code below, replace the
<alert-template-id> with the alert code.