Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 631 Bytes

post.md

File metadata and controls

36 lines (25 loc) · 631 Bytes

Pin objects

Pin the object reached thru the given URI.

See GET for details on how to form this URI.

URL: /objects/{id}/*

Method: POST

Success Responses

Code : 200 OK

Payload: object defined as:

{
	"id": "string",
	"class": "string",
	"hasNamedSlots": "boolean",
	"hasIndexedSlots": "boolean",
	"size": "number",
	"printString": "string"
}

Example:: Lets suppose there is a rectangle with ID 1. Requesting a POST /objects with the following body, will pin the x coordinate of the rectangle's origin:

Payload

{
	"uri": "/objects/1/origin/x"
}