This endpoint allows you to fetch data about the defined Systems of your Team.
Last updated 4 months ago
OK
const response = await fetch('https://integration.goodaccess.com/api/v1/systems', { method: 'GET', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
const response = await fetch('https://integration.goodaccess.com/api/v1/system/<system-id>', { method: 'PUT', headers: { "Authorization": "Bearer <token>", "Content-Type": "application/json" }, body: JSON.stringify({ "name": "GoodAccess Example System", "host": "https://goodaccess.com", "uri": "https://goodaccess.com", "port": "8080", "protocol": "UDP" }), }); const data = await response.json();
const response = await fetch('https://integration.goodaccess.com/api/v1/system/<system-id>', { method: 'DELETE', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
const response = await fetch('https://integration.goodaccess.com/api/v1/system/<system-id>', { method: 'GET', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();
const response = await fetch('https://integration.goodaccess.com/api/v1/system', { method: 'POST', headers: { "Authorization": "Bearer <token>", "Content-Type": "application/json" }, body: JSON.stringify({ "name": "GoodAccess Example System", "host": "https://goodaccess.com", "uri": "https://goodaccess.com", "port": "8080", "protocol": "UDP" }), }); const data = await response.json();