To work with installation name, execute requests using the "administration" API method (determine administrator token before executing the request):
Get installation name:
curl -v '<IP address or DNS server name>/api/v2/dashboard/administration/' --header 'Content-Type: application/json' -H 'Authorization: Bearer <administrator token>'
The example of response:
{
"title": "Foresight Mobile Platform"
}
Change installation name:
curl -X PUT -v '<IP address or DNS server name>/api/v2/dashboard/administration/' --header 'Content-Type: application/json' -H 'Authorization: Bearer <administrator token>' -d '{"title": "<new installation name>"}'
The example of response:
{
"title": "Custom name of administrator console"
}
See also: