PUT api/users/{id}/subjects
Requires authentication. Updates the user with the set of subjects contained in the request body. To clear all subjects, send an empty list If successful returns "200 OK", with the body of the response containing a representation of the the user's subjects. If user not found, returns "404 Not Found" If CRM operations fail for an un-recoverable reason, the service returns "502 Bad Gateway" Any other server-side errors return "500 Internal Server Error"
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | globally unique identifier |
Required |
Body Parameters
Collection of SubjectName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
Name | string |
None. |
Request Formats
application/json, text/json
Sample:
[ { "Id": "dec94975-ccda-474a-91e5-ac3bbbe7a9a5", "Name": "sample string 2" }, { "Id": "dec94975-ccda-474a-91e5-ac3bbbe7a9a5", "Name": "sample string 2" } ]
application/xml, text/xml
Sample:
<ArrayOfSubject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSAT.Webservices.Domain"> <Subject> <Id>dec94975-ccda-474a-91e5-ac3bbbe7a9a5</Id> <Name>sample string 2</Name> </Subject> <Subject> <Id>dec94975-ccda-474a-91e5-ac3bbbe7a9a5</Id> <Name>sample string 2</Name> </Subject> </ArrayOfSubject>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
UserSubjectsListRepresentation
UserSubjectListsRepresentationName | Description | Type | Additional information |
---|---|---|---|
Id |
Unique identifier - same as in CRM |
globally unique identifier |
None. |
TotalResults | integer |
None. |
|
ResourceList | Collection of SubjectRepresentation |
None. |
|
Links | Collection of Link |
None. |
Response Formats
application/json, text/json, application/hal+json, application/hal+xml
Sample:
Sample not available.