# Update social identity of user **PUT /api/users/{userId}/identities/{target}** Directly update a social identity of the user. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters ### Path parameters - **userId** (string) The unique identifier of the user. - **target** (string) ### Body: application/json (object) - **userId** (string) The user's social identity ID. - **details** (object) The user's social identity details. ## Responses ### 200 The identity is updated. #### Body: application/json (object) - ***** (object) ### 201 The identity is created. #### Body: application/json (object) - ***** (object) ### 400 Bad Request ### 401 Unauthorized ### 403 Forbidden ### 404 Not Found ### 422 Unprocessable Content [Powered by Bump.sh](https://bump.sh)