Last updated 12 days ago
No response body
50
3
1
10
5
2
const response = await fetch('https://api.erathos.com/developers/workspaces/{workspace_id}/variables/{_id}/', { method: 'DELETE', headers: {}, }); const data = await response.json();
const response = await fetch('https://api.erathos.com/developers/workspaces/{workspace_id}/variables/{_id}/', { method: 'GET', headers: {}, }); const data = await response.json();
{ "_id": "123e4567-e89b-12d3-a456-426614174000", "_created_at": "2024-12-04T19:07:55.968Z", "_updated_at": "2024-12-04T19:07:55.968Z", "name": "text", "value": "text" }
const response = await fetch('https://api.erathos.com/developers/workspaces/{workspace_id}/variables/', { method: 'GET', headers: {}, }); const data = await response.json();
{ "count": 50, "next_page": 3, "previous_page": 1, "page_size": 10, "total_pages": 5, "current_page": 2, "results": [ { "_id": "123e4567-e89b-12d3-a456-426614174000", "_created_at": "2024-12-04T19:07:55.968Z", "_updated_at": "2024-12-04T19:07:55.968Z", "name": "text", "value": "text" } ] }
const response = await fetch('https://api.erathos.com/developers/workspaces/{workspace_id}/variables/{_id}/', { method: 'PUT', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "_created_at": "2024-12-04T19:07:55.968Z", "_id": "123e4567-e89b-12d3-a456-426614174000", "_updated_at": "2024-12-04T19:07:55.968Z", "value": "text" }), }); const data = await response.json();
{ "_id": "123e4567-e89b-12d3-a456-426614174000", "_created_at": "2024-12-04T19:07:55.968Z", "_updated_at": "2024-12-04T19:07:55.968Z", "value": "text" }
const response = await fetch('https://api.erathos.com/developers/workspaces/{workspace_id}/variables/', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "_created_at": "2024-12-04T19:07:55.968Z", "_id": "123e4567-e89b-12d3-a456-426614174000", "_updated_at": "2024-12-04T19:07:55.968Z", "name": "text", "value": "text" }), }); const data = await response.json();