> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update an entity

> Update an entity's fields/properties. **Required scope:** write

Update an entity's fields/properties.

**Required scope:** `write`

### Path parameters

**id** `string` *required*

Entity ID

### Request body

`UpdateEntityRequest`

**name** `string`

New name (optional)

**properties** `object`

Properties to add or update

**remove\_properties** `string[]`

Property keys to remove

### Response

`EntityResponse`

**confidence** `number (float)` *required*

Confidence score

**created\_at** `string`

Creation timestamp (RFC3339)

**entity\_type** `string` *required*

Entity type

**has\_embedding** `boolean` *required*

Whether entity has an embedding vector

**id** `string` *required*

Unique entity ID

**name** `string` *required*

Entity name

**properties** `object` *required*

Entity properties

**updated\_at** `string`

Last update timestamp (RFC3339)

### Status codes

| Code | Meaning |
| - | - |
| `200` | Entity updated |
| `400` | Invalid request |
| `401` | Unauthorized — missing or invalid credentials |
| `403` | Forbidden — the key/token lacks the required scope |
| `404` | Entity not found |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |

```bash cURL theme={null}
curl --request PATCH \
  --url 'https://api.nsr.stateset.com/api/v1/entities/{id}' \
  --header "X-API-Key: $STATESET_NSR_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Two-Person Tent",
  "properties": {},
  "remove_properties": [
    "string"
  ]
}'
```

```json 200 theme={null}
{
  "confidence": 7.5,
  "created_at": "2026-08-31T14:22:05Z",
  "entity_type": "string",
  "has_embedding": true,
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "name": "Two-Person Tent",
  "properties": {},
  "updated_at": "2026-08-31T14:22:05Z"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.