Setting system identity through REST API
Posted: Mon Jun 27, 2022 4:10 pm
I'm trying to set /system/identity through the REST API, but struggling to get it to set.
Any pointers here? Is this even possible?
Code: Select all
curl -k -u admin: -X PATCH https://localhost/rest/system/identity --data '{"name":"newName"}' -H "content-type: application/json"
{"detail":"missing or invalid resource identifier","error":400,"message":"Bad Request"}%
curl -k -u admin: -X PATCH https://localhost/rest/system/identity/set --data '{"name":"newName"}' -H "content-type: application/json"
{"detail":"missing or invalid resource identifier","error":400,"message":"Bad Request"}%