Update a Forward identity.
POST /api/v1/forward/identities/{identity_id}
Updates mutable Identity fields. Omitted fields are unchanged. metadata is merged; a metadata value of an empty string deletes that key.
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <PAT or SAT> |
Content-Type | Yes | application/json |
Idempotency-Key | No | Optional idempotency key for unsafe requests. |
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
identity_id | string | Yes | Forward Identity ID. |
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
external_id | string | No | Replaces the existing end-user ID. |
name | string | No | Replaces the display name. |
enabled | boolean | No | Updates whether the Identity can be used. |
auto_memory_store | boolean|null | No | Whether to automatically create a default Memory Store on demand when creating a Session. Omitted or null preserves the current value. |
metadata | object | No | Merge updates custom metadata. Empty string values delete keys. |
Example request
Example response
HTTP 200 OK
Response fields
Returns the updated Identity object.
Errors
| HTTP | Type | Code | Trigger |
|---|---|---|---|
| 400 | invalid_request_error | - | The request body is invalid. |
| 401 | authentication_error | - | The PAT or SAT is invalid or expired. |
| 404 | not_found_error | - | The Identity does not exist. |
| 409 | conflict_error | - | The Identity conflicts with an existing record. |
Notes
-
auto_memory_store=falseonly stops future automatic creation of default Memory Stores. Existing default and explicit mounts keep their bindings and permissions and remain available to new Sessions; existing Sessions are unaffected. -
Setting it back to
trueallows future on-demand creation, but does not clear the automatic-creation disabled state for the current(identity, template)caused by detaching the default Store. -
Updating
enabledhas the same execution and recovery semantics as disabling or enabling an Identity. Already accepted executions finish naturally. - Historical sessions and audit records are not modified.

