Unify and manage your data

Show Page Sections

Update User Associated Entity

Learn about the API operation to update an entity associated to a user.

Table 1. Endpoint Details
Request TypePUT
URL/oauth/users/{userID}/entity
Parameters JSON object with structure like { "URI" "entities/abc123", "tenant" "Sample"}
AccessAccess ROLE_ADMIN_TENANT or ROLE_USER and the same user

Request

curl -k -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer 5925f793-c092-43ec-b3a3-65ce8e194440" -X PUT -d '{ "URI" : "entities/abc123", "tenant" : "Sample" }' http://localhost:8080/oauth/users/lee_eybe/entity

Response

{ "URI": "entities/abc12345", "tenant": "MS2" }
Was this content helpful?