POST api/UserPreference/ApplyToOthers
Apply a user preference setting to others
Request Information
URI Parameters
None.
Body Parameters
ApplyUserPreferenceBinder| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectId | integer |
None. |
|
| PrefIds | Collection of integer |
None. |
|
| ApplyTo | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProjectId": 1,
"PrefIds": [
1,
2
],
"ApplyTo": [
1,
2
]
}
application/xml, text/xml
Sample:
<ApplyUserPreferenceBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
<ApplyTo xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</ApplyTo>
<PrefIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</PrefIds>
<ProjectId>1</ProjectId>
</ApplyUserPreferenceBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Apply a user preference setting to others
ApiReturn| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Error | ErrorInfo |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Error": {
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
}
}
application/xml, text/xml
Sample:
<ApiReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
<Error>
<ErrorCode>1</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</Error>
<Success>true</Success>
</ApiReturn>