POST Api/User/AssignTools?delete={delete}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
delete | boolean |
Default value is False |
Body Parameters
UserToolDTOName | Description | Type | Additional information |
---|---|---|---|
_IncomingUser | UserDTO |
None. |
|
_user | globally unique identifier |
None. |
|
_toolids | Collection of integer |
None. |
|
delete | boolean |
None. |
|
ClientPublicKey | string |
None. |
|
SecurityToken | string |
None. |
|
CurrentUserId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "_IncomingUser": { "id": "488126e2-5c7a-4428-8f8d-c9bd4d7b86fc", "username": "sample string 2", "password": "sample string 3", "email": "sample string 4", "accountId": "1c10119d-f73c-4ed3-9fba-993783f768be", "userType": { "id": 1, "name": "sample string 2", "description": "sample string 3" }, "products": [ { "id": 1, "portal": { "id": 1, "name": "sample string 2", "description": "sample string 3", "clientPublicKey": "sample string 4", "securityToken": "sample string 5", "currentUserId": "ff8f4db5-56f1-4a70-9f7d-16d4e4f690bf" }, "tool": { "id": 1, "name": "sample string 2", "shortName": "sample string 3", "logoUrl": "sample string 4", "order": 5, "description": "sample string 6", "author": "sample string 7", "ageRange": "sample string 8", "clientPublicKey": "sample string 9", "securityToken": "sample string 10", "currentUserId": "f4c3bae4-a1b9-4a54-b252-25add2d40580" }, "clientPublicKey": "sample string 2", "securityToken": "sample string 3", "currentUserId": "ad436298-8319-4985-b742-73f8f72de25e" }, { "id": 1, "portal": { "id": 1, "name": "sample string 2", "description": "sample string 3", "clientPublicKey": "sample string 4", "securityToken": "sample string 5", "currentUserId": "ff8f4db5-56f1-4a70-9f7d-16d4e4f690bf" }, "tool": { "id": 1, "name": "sample string 2", "shortName": "sample string 3", "logoUrl": "sample string 4", "order": 5, "description": "sample string 6", "author": "sample string 7", "ageRange": "sample string 8", "clientPublicKey": "sample string 9", "securityToken": "sample string 10", "currentUserId": "f4c3bae4-a1b9-4a54-b252-25add2d40580" }, "clientPublicKey": "sample string 2", "securityToken": "sample string 3", "currentUserId": "ad436298-8319-4985-b742-73f8f72de25e" } ], "firstName": "sample string 6", "lastName": "sample string 7", "oneId": "16ff28d0-cac6-4a76-b221-ee050abc093c", "verificationDate": "2024-11-21T01:39:08.5760181-05:00", "verificationCode": "sample string 9", "clientPublicKey": "sample string 10", "securityToken": "sample string 11", "currentUserId": "b745081e-4356-499b-9d1c-6c9c5912bff5" }, "_user": "673a7a65-e33a-4887-b684-a4bb7a8b635a", "_toolids": [ 1, 2 ], "delete": true, "clientPublicKey": "sample string 3", "securityToken": "sample string 4", "currentUserId": "10288819-1ffc-4bab-b57a-a0274ff4dd72" }
application/xml, text/xml
Sample:
<UserToolDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AccessManager.DTO"> <ClientPublicKey>sample string 3</ClientPublicKey> <CurrentUserId>10288819-1ffc-4bab-b57a-a0274ff4dd72</CurrentUserId> <SecurityToken>sample string 4</SecurityToken> <_IncomingUser> <ClientPublicKey>sample string 10</ClientPublicKey> <CurrentUserId>b745081e-4356-499b-9d1c-6c9c5912bff5</CurrentUserId> <SecurityToken>sample string 11</SecurityToken> <AccountId>1c10119d-f73c-4ed3-9fba-993783f768be</AccountId> <Email>sample string 4</Email> <FirstName>sample string 6</FirstName> <Id>488126e2-5c7a-4428-8f8d-c9bd4d7b86fc</Id> <LastName>sample string 7</LastName> <OneId>16ff28d0-cac6-4a76-b221-ee050abc093c</OneId> <Password>sample string 3</Password> <Products> <ProductDTO> <ClientPublicKey>sample string 2</ClientPublicKey> <CurrentUserId>ad436298-8319-4985-b742-73f8f72de25e</CurrentUserId> <SecurityToken>sample string 3</SecurityToken> <Id>1</Id> <Portal> <ClientPublicKey>sample string 4</ClientPublicKey> <CurrentUserId>ff8f4db5-56f1-4a70-9f7d-16d4e4f690bf</CurrentUserId> <SecurityToken>sample string 5</SecurityToken> <Description>sample string 3</Description> <Id>1</Id> <Name>sample string 2</Name> </Portal> <Tool> <ClientPublicKey>sample string 9</ClientPublicKey> <CurrentUserId>f4c3bae4-a1b9-4a54-b252-25add2d40580</CurrentUserId> <SecurityToken>sample string 10</SecurityToken> <AgeRange>sample string 8</AgeRange> <Author>sample string 7</Author> <Description>sample string 6</Description> <Id>1</Id> <LogoUrl>sample string 4</LogoUrl> <Name>sample string 2</Name> <Order>5</Order> <ShortName>sample string 3</ShortName> </Tool> </ProductDTO> <ProductDTO> <ClientPublicKey>sample string 2</ClientPublicKey> <CurrentUserId>ad436298-8319-4985-b742-73f8f72de25e</CurrentUserId> <SecurityToken>sample string 3</SecurityToken> <Id>1</Id> <Portal> <ClientPublicKey>sample string 4</ClientPublicKey> <CurrentUserId>ff8f4db5-56f1-4a70-9f7d-16d4e4f690bf</CurrentUserId> <SecurityToken>sample string 5</SecurityToken> <Description>sample string 3</Description> <Id>1</Id> <Name>sample string 2</Name> </Portal> <Tool> <ClientPublicKey>sample string 9</ClientPublicKey> <CurrentUserId>f4c3bae4-a1b9-4a54-b252-25add2d40580</CurrentUserId> <SecurityToken>sample string 10</SecurityToken> <AgeRange>sample string 8</AgeRange> <Author>sample string 7</Author> <Description>sample string 6</Description> <Id>1</Id> <LogoUrl>sample string 4</LogoUrl> <Name>sample string 2</Name> <Order>5</Order> <ShortName>sample string 3</ShortName> </Tool> </ProductDTO> </Products> <UserType> <Description>sample string 3</Description> <Id>1</Id> <Name>sample string 2</Name> </UserType> <Username>sample string 2</Username> <VerificationCode>sample string 9</VerificationCode> <VerificationDate>2024-11-21T01:39:08.5760181-05:00</VerificationDate> </_IncomingUser> <_toolids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </_toolids> <_user>673a7a65-e33a-4887-b684-a4bb7a8b635a</_user> <delete>true</delete> </UserToolDTO>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>