POST api/P1ProjectSetting/Save
Save p1 project settings
Request Information
URI Parameters
None.
Body Parameters
SaveP1ProjectSettingBinderName | Description | Type | Additional information |
---|---|---|---|
ProjectId | integer |
None. |
|
SpaceId | integer |
None. |
|
Settings | Collection of TSetting |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProjectId": 1, "SpaceId": 2, "Settings": [ { "SettingId": 1, "SettingValue": { "IntValue": 1, "SettingText": "sample string 2", "SettingNote": "sample string 3" } }, { "SettingId": 1, "SettingValue": { "IntValue": 1, "SettingText": "sample string 2", "SettingNote": "sample string 3" } } ] }
application/xml, text/xml
Sample:
<SaveP1ProjectSettingBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.ProjectOne"> <ProjectId>1</ProjectId> <Settings xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common"> <d2p1:TSetting> <d2p1:SettingId>1</d2p1:SettingId> <d2p1:SettingValue> <d2p1:IntValue>1</d2p1:IntValue> <d2p1:SettingNote>sample string 3</d2p1:SettingNote> <d2p1:SettingText>sample string 2</d2p1:SettingText> </d2p1:SettingValue> </d2p1:TSetting> <d2p1:TSetting> <d2p1:SettingId>1</d2p1:SettingId> <d2p1:SettingValue> <d2p1:IntValue>1</d2p1:IntValue> <d2p1:SettingNote>sample string 3</d2p1:SettingNote> <d2p1:SettingText>sample string 2</d2p1:SettingText> </d2p1:SettingValue> </d2p1:TSetting> </Settings> <SpaceId>2</SpaceId> </SaveP1ProjectSettingBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Save p1 project settings
ApiReturnName | 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>