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

  • 200 application/json

    The identity is updated.

    Hide response attribute Show response attribute object
    • * object Additional properties
      Hide * attributes Show * attributes object
      • userId string Required
      • details object

        arbitrary

  • 201 application/json

    The identity is created.

    Hide response attribute Show response attribute object
    • * object Additional properties
      Hide * attributes Show * attributes object
      • userId string Required
      • details object

        arbitrary

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Not Found

  • 422

    Unprocessable Content

PUT /api/users/{userId}/identities/{target}
curl \
 --request PUT 'https://[tenant_id].logto.app/api/users/{userId}/identities/{target}' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"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": {}
  }
}