POST /api/1/machine/$UUID/group

POST /api/1/machine/$UUID/group changes the group of the machine with the specified UUID.

The content is a dictionary of the following form:

{group_name: string}

where string is the name of the new group. The group is created if it does not already exist. Note that if the account does not have a machine with the specified UUID, the request results in an HTTP 404 error.

To remove a machine from a group, you can set the group to a different name, or you can specify an empty string for no group.