Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
technical:api-profiles [2025/04/02 11:49] – [Add Profiles From List] system | technical:api-profiles [2025/04/02 12:51] (current) – system | ||
---|---|---|---|
Line 39: | Line 39: | ||
$api_url = ' | $api_url = ' | ||
$names_file = ' | $names_file = ' | ||
- | $token = 'fe707fcd-6316-4c26-b14c-03ae7fc49065'; // replace with your token (If you want to add the profile as system wide, you will need root's token) | + | $token = '617088c3-f908-4f1f-8091-82223c571cc67'; // replace with your token (If you want to add the profile as system wide, you will need root's token) |
- | $cloud_id = 23; // replace with the Cloud ID that you want to work on. | + | $cloud_id = 56; // replace with the Cloud ID that you want to work on. |
// Read names from file | // Read names from file | ||
Line 47: | Line 47: | ||
// Set API payload | // Set API payload | ||
$payload = [ | $payload = [ | ||
- | | + | // |
" | " | ||
" | " | ||
Line 86: | Line 86: | ||
* The server' | * The server' | ||
* The Token can be found when you edit an Admin. | * The Token can be found when you edit an Admin. | ||
+ | <panel type=" | ||
+ | {{: | ||
+ | </ | ||
* The Cloud ID is listed under the Cloud Applet. | * The Cloud ID is listed under the Cloud Applet. | ||
+ | <panel type=" | ||
+ | {{: | ||
+ | </ | ||
* Below is the result of our script: | * Below is the result of our script: | ||
+ | <panel type=" | ||
+ | {{: | ||
+ | </ | ||