userTargetPlatforms_update¶
-
PUT /users/{uid}/targetplatforms
Updates the list of target platforms that an user has access to.
Please refer to targetPlatform for a complete list of all the target platform
attributes.
Warning
Any target platform that the user currently has access to that is not specified in the new target platform list will be removed, this effectively de-activates those target platforms for the user.
Security Summary¶
- Requires Authentication:
true
- Entitlements Required:
org_formats_administrate
HTTP Request Body Parameters¶
A targetPlatforms object
Example Request¶
curl "https://uforge.example.com/api/users/{uid}/targetplatforms" -X PUT \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml"-H "Content-type: application/xml" --data-binary "@representation.xml"
Example of representation.xml content (the request body):
<ns0:targetPlatforms xmlns:ns0="http://www.usharesoft.com/uforge">
<targetPlatforms>
<targetPlatform>
<access>true</access>
<active>true</active>
<uri>orgs/1/targetPlatforms/4</uri>
</targetPlatform>
<targetPlatform>
<access>false</access>
<active>false</active>
<uri>orgs/1/targetPlatforms/5</uri>
</targetPlatform>
</targetPlatforms>
</ns0:targetPlatforms>