---
title: "Update social identity of user"
method: PUT
path: "/api/users/{userId}/identities/{target}"
tags: ["Users"]
---

# Update social identity of user

`PUT /api/users/{userId}/identities/{target}`

Directly update a social identity of the user.

## Path parameters

- `userId` string, required
- `target` string, required

## Request body

- object
  - `userId` string, required — The user's social identity ID.
  - `details` object — The user's social identity details.

## Response `200`

The identity is updated.

- object

## Other responses

- `201` — The identity is created.
- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Content

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/versions/a163dc77d842/schema)
