POST api/P1UserPreference/save
Save P1 User settings
Request Information
URI Parameters
None.
Body Parameters
Collection of TSubProjectUserPref| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectId | integer |
None. |
|
| SubProjectId | integer |
None. |
|
| UserId | integer |
None. |
|
| PrefId | integer |
None. |
|
| PreferenceValue | integer |
None. |
|
| PreferenceText | string |
None. |
|
| PreferenceMemo | string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"ProjectId": 1,
"SubProjectId": 2,
"UserId": 3,
"PrefId": 4,
"PreferenceValue": 1,
"PreferenceText": "sample string 5",
"PreferenceMemo": "sample string 6"
},
{
"ProjectId": 1,
"SubProjectId": 2,
"UserId": 3,
"PrefId": 4,
"PreferenceValue": 1,
"PreferenceText": "sample string 5",
"PreferenceMemo": "sample string 6"
}
]
application/xml, text/xml
Sample:
<ArrayOfTSubProjectUserPref xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Project">
<TSubProjectUserPref>
<PrefId>4</PrefId>
<PreferenceMemo>sample string 6</PreferenceMemo>
<PreferenceText>sample string 5</PreferenceText>
<PreferenceValue>1</PreferenceValue>
<ProjectId>1</ProjectId>
<SubProjectId>2</SubProjectId>
<UserId>3</UserId>
</TSubProjectUserPref>
<TSubProjectUserPref>
<PrefId>4</PrefId>
<PreferenceMemo>sample string 6</PreferenceMemo>
<PreferenceText>sample string 5</PreferenceText>
<PreferenceValue>1</PreferenceValue>
<ProjectId>1</ProjectId>
<SubProjectId>2</SubProjectId>
<UserId>3</UserId>
</TSubProjectUserPref>
</ArrayOfTSubProjectUserPref>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Save P1 User settings
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>