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.

    Additional properties are allowed.

Responses

  • 200 application/json

    The identity is updated.

    Hide response attribute Show response attribute object
    • * object Additional properties

      Additional properties are allowed.

      Hide * attributes Show * attributes object
  • 201 application/json

    The identity is created.

    Hide response attribute Show response attribute object
    • * object Additional properties

      Additional properties are allowed.

      Hide * attributes Show * attributes object
  • Bad Request

  • Unauthorized

  • Forbidden

  • Not Found

  • Unprocessable Content

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)
{
  "additionalProperty1": {
    "userId": "string",
    "details": {}
  },
  "additionalProperty2": {
    "userId": "string",
    "details": {}
  }
}
Response examples (201)
{
  "additionalProperty1": {
    "userId": "string",
    "details": {}
  },
  "additionalProperty2": {
    "userId": "string",
    "details": {}
  }
}