> ## 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 a triple's confidence

> Update a triple's confidence. **Required scope:** write

Update a triple's confidence.

**Required scope:** `write`

### Request body

`UpdateTripleRequest`

**clear\_valid\_time** `boolean`

If true, clear the validity interval on this triple.

**confidence** `number (float)`

New confidence score

**object\_id** `string` *required*

Object entity ID (to identify the triple)

**predicate** `string` *required*

Predicate name (to identify the triple)

**subject\_id** `string` *required*

Subject entity ID (to identify the triple)

**valid\_from** `string`

Optional RFC3339 start of validity interval.

**valid\_to** `string`

Optional RFC3339 end of validity interval.

### Response

`TripleResponse`

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

**object** `string` *required*

**object\_name** `string` *required*

**predicate** `string` *required*

**subject** `string` *required*

**subject\_name** `string` *required*

**valid\_from** `string`

**valid\_to** `string`

### Status codes

| Code | Meaning |
| - | - |
| `200` | Triple updated |
| `400` | Invalid request |
| `401` | Unauthorized — missing or invalid credentials |
| `403` | Forbidden — the key/token lacks the required scope |
| `404` | Triple 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/triples' \
  --header "X-API-Key: $STATESET_NSR_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "clear_valid_time": true,
  "confidence": 7.5,
  "object_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "predicate": "string",
  "subject_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "valid_from": "string",
  "valid_to": "string"
}'
```

```json 200 theme={null}
{
  "confidence": 7.5,
  "object": "string",
  "object_name": "string",
  "predicate": "string",
  "subject": "Replacement tent pole set",
  "subject_name": "string",
  "valid_from": "string",
  "valid_to": "string"
}
```


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