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. 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 something else, or an empty string for no group.