- 1: The form contains both a field for activation-date and deactivation-date (not mandatory). I wrote a script connected to a custom trigger that creates a linked request of the same template when you request to activate a permission level and the field for deactivation-date is filled. This linked request is created to track and perform the deactivation of said permission and the correct date. However, since this happens automatically and only after a request has been approved I wish to include to also automatically approve both approval levels in the script.
But in this
User Guide it's shown as: /api/v3/requests/{request_id}/approval_levels/{approval_level_id}/approvals/{approval_id}/_approve
I'm assuming approval_level_id is correct, because when entering the id found from
/api/v3/requests/{request_id}/approval_levels results in a response saying I'm not authorized, while using the level_number (a.k.a 1 or 2 in my case?) results in Invalid URL.
How do I get around this? Both when attempting to make this call from python (with technician key/authtoken) and directly on the APIdoc I get the same result. Do I have to change something regarding the user groups used in the approval levels? I'd prefer to not clutter them.
What should I do?