POST Move Hierarchy Set

URL: /hierarchy/set

Accessible by: EMS, Utility accounts only.

Restrictions: User must have the hierarchy privilege.

Moves a set to a new parent in the hierarchy. A parent may not be moved into its own child, nor can a set be moved into itself.

See Getting Started with Management Set Hierarchy for additional information.

Request Properties

Property Version Type Required Description
operation 1 String Yes The type of request. Always "move".
setPath 1 String Yes The path of the set to move.
toPath 1 String Yes The path of the new parent to move to.

Response Properties

Property Version Type Description
status 1 Status The api response code.

Example Request:

Request Body

NOTE: Request body is not encoded for example purposes.

HEADERS:
	Content-Type: application/json;charset=UTF-8
	Authorization: Bearer Rc7JE8P7XUgSCPogLOx2VLMfITqQQrjg
	
REQUEST:
	POST https://api.ecobee.com/1/hierarchy/set?format=json
	
POST BODY:
{
	"operation": "move",
	"setPath": "/ToMove",
	"toPath": "/MainNode"
}
				

Sample API Call

Show code sample in:
curl -s --request POST --data-urlencode @json.txt -H "Content-Type: application/json;charset=UTF-8" -H "Authorization: Bearer ACCESS_TOKEN" "https://api.ecobee.com/1/hierarchy/set?format=json"  
				

Example Response:

{
    "status": {
        "code": 0,
        "message": ""
    }
}
    

Back To Top