{"info":{"_postman_id":"a8eba527-9f0e-42b7-90c8-8bbae1091989","name":"PADM20 API Examples (Beta)","description":"<html><head></head><body><p>These are basic PADM20 API examples for training. The four examples below show how to:</p>\n<ul>\n<li>Get a token for authentication</li>\n<li>Turn off load 1</li>\n<li>Get all the variables/data related to load 1</li>\n<li>End your session</li>\n</ul>\n<p>Contact david_zomaya AT tripplite DOT COM with questions.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6407998","collectionId":"a8eba527-9f0e-42b7-90c8-8bbae1091989","publishedId":"TVt17Pi2","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-12-29T17:02:46.000Z"},"item":[{"name":"LOGIN PADM20","id":"bd68551b-696e-483b-8dfa-895f7dc3f022","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://10.22.0.13/api/oauth/token?grant_type=password&username=localadmin&password=localadmin1","description":"<p>Use this HTTPS POST to get a PADM20 access token and refresh token. Replace 10.22.0.13 with your IP address or FQDN.</p>\n","urlObject":{"protocol":"https","path":["api","oauth","token"],"host":["10","22","0","13"],"query":[{"key":"grant_type","value":"password"},{"key":"username","value":"localadmin"},{"key":"password","value":"localadmin1"}],"variable":[]}},"response":[],"_postman_id":"bd68551b-696e-483b-8dfa-895f7dc3f022"},{"name":"LOAD 1 OFF PADM20","id":"396cb7bf-df21-4aed-9c65-981db39ce964","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\"data\":{\"attributes\":{\"load_action\":\"LOAD_ACTION_OFF\",\"device_id\":1},\"type\":\"loads_execute\"}}","options":{"raw":{"language":"json"}}},"url":"https://10.22.0.13/api/loads_execute/1?load_id=1","description":"<p>Use this HTTPS PATCH to turn off LOAD 1 of a device with controllable loads. Other LOAD numbers (LOAD 2, LOAD 3,... LOAD N) work in the same way, simply change the number.</p>\n","urlObject":{"protocol":"https","path":["api","loads_execute","1"],"host":["10","22","0","13"],"query":[{"key":"load_id","value":"1"}],"variable":[]}},"response":[],"_postman_id":"396cb7bf-df21-4aed-9c65-981db39ce964"},{"name":"GET LOAD 1 PADM20 Details","id":"213c966d-e863-4e4f-9edb-64aebf4bb869","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://10.22.0.13/api/loads?load_id=1","description":"<p>Use this HTTP GET to get information on the state of Load 1. Other LOAD numbers (LOAD 2, LOAD 3,... LOAD N) work in the same way, simply change the number.</p>\n","urlObject":{"protocol":"https","path":["api","loads"],"host":["10","22","0","13"],"query":[{"key":"load_id","value":"1"}],"variable":[]}},"response":[],"_postman_id":"213c966d-e863-4e4f-9edb-64aebf4bb869"},{"name":"Logout PADM20","id":"970e16fd-04fe-4058-add5-366fa3d0234d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[],"url":"https://10.22.0.13/api/oauth/token/logout","description":"<p>End an active session. Make sure to send your REFRESH TOKEN not your ACCESS TOKEN.</p>\n","urlObject":{"protocol":"https","path":["api","oauth","token","logout"],"host":["10","22","0","13"],"query":[],"variable":[]}},"response":[],"_postman_id":"970e16fd-04fe-4058-add5-366fa3d0234d"}],"event":[{"listen":"prerequest","script":{"id":"edff86d6-c1e8-4bbe-9430-55ed54a8f1db","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"764129f4-51c2-4b4c-ac67-f5dbd161d76d","type":"text/javascript","exec":[""]}}]}