# Pin object

Pin the object reached thru the given URI.

See [GET](/webside/api/objects/get.md) for details on how to form this URI.

**URL**: `/objects/{id}/*`

**Method**: `POST`

## Success Responses

**Code** : `200 OK`

**Payload**: `object` defined as:

```json
{
	"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**

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://webside.gitbook.io/webside/api/objects/post.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
