POST api/Administration/User/{userId}/Role

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

globally unique identifier

Required

Body Parameters

UserRoleCreateUpdateViewModel
NameDescriptionTypeAdditional information
RoleId

globally unique identifier

None.

WorkPlaceId

globally unique identifier

None.

TSPInformationId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "RoleId": "00adb6ee-1f51-4e70-9a5f-2b71f1aaf128",
  "WorkPlaceId": "ffad6043-adb6-4cb3-9005-a4ae939c022c",
  "TSPInformationId": "44b020e7-6bbc-4248-b797-607c58203158"
}

application/xml, text/xml

Sample:
<UserRoleCreateUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iP.Products.MySDS.WebAPI.Areas">
  <RoleId>00adb6ee-1f51-4e70-9a5f-2b71f1aaf128</RoleId>
  <TSPInformationId>44b020e7-6bbc-4248-b797-607c58203158</TSPInformationId>
  <WorkPlaceId>ffad6043-adb6-4cb3-9005-a4ae939c022c</WorkPlaceId>
</UserRoleCreateUpdateViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="RoleId"

00adb6ee-1f51-4e70-9a5f-2b71f1aaf128
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="WorkPlaceId"

ffad6043-adb6-4cb3-9005-a4ae939c022c
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="TSPInformationId"

44b020e7-6bbc-4248-b797-607c58203158
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, multipart/form-data

Sample:

Sample not available.