Update social identity of user

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

Directly update a social identity of the user.

Path parameters

  • userId string Required

    The unique identifier of the user.

  • target string Required
application/json

Body Required

  • userId string Required

    The user's social identity ID.

  • details object

    The user's social identity details.

Responses

PUT /api/users/{userId}/identities/{target}
curl \
 -X PUT https://[tenant_id].logto.app/api/users/{userId}/identities/{target} \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"userId":"string","details":{}}'
Request examples
{
  "userId": "string",
  "details": {}
}
Response examples (200)
{
  "userId": "string",
  "details": {}
}
Response examples (201)
{
  "userId": "string",
  "details": {}
}