Last updated 1 month ago
Get planet-wide settings and values
Planet info successfully retrieved
const response = await fetch('/api/v4.0/conf/{config}/planets', { method: 'GET', headers: {}, }); const data = await response.json();
{ "ichallenge": { "palette": [ "text" ] }, "name": "text", "trusted_nets": [ { "address": "text", "comment": "text" } ] }
Modify settings of a planet
Planet ID
Planet updated successfully
Information about successful update operation
"Successfully updated entry"
const response = await fetch('/api/v4.0/conf/{config}/planets/{entry_id}', { method: 'PUT', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "name": "text", "trusted_nets": [ { "address": "text", "comment": "text" } ], "ichallenge": { "palette": [ "text" ] } }), }); const data = await response.json();
{ "message": "Successfully updated entry" }