POST api/Regions/SaveRegion
Request Information
URI Parameters
None.
Body Parameters
SaveUpdateRegionsViewModelName | Description | Type | Additional information |
---|---|---|---|
AccountId | string |
Required |
|
Name | string |
Required |
|
Description | string |
None. |
|
Color | ColorViewModel |
None. |
|
AddRemoveRegionInSubAccount | Collection of AddRemoveRegionInSubAccountViewModel |
None. |
|
Id | string |
None. |
|
CreatedDate | date |
None. |
|
UpdatedDate | date |
None. |
|
CreatedBy | string |
None. |
|
UpdatedBy | string |
None. |
|
CreatedByUserId | string |
None. |
|
UpdatedByUserId | string |
None. |
|
IsDeleted | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "AccountId": "sample string 1", "Name": "sample string 2", "Description": "sample string 3", "Color": { "HexValue": "sample string 1", "RgbValue": { "R": "sample string 1", "G": "sample string 2", "B": "sample string 3", "A": "sample string 4" }, "Gradient": "sample string 2" }, "AddRemoveRegionInSubAccount": [ { "SubAccountIds": [ "sample string 1", "sample string 2" ], "RegionActionOnSubAccount": "Add" }, { "SubAccountIds": [ "sample string 1", "sample string 2" ], "RegionActionOnSubAccount": "Add" } ], "Id": "sample string 4", "CreatedDate": "2024-11-20T08:36:41.0831976+00:00", "UpdatedDate": "2024-11-20T08:36:41.0831976+00:00", "CreatedBy": "sample string 7", "UpdatedBy": "sample string 8", "CreatedByUserId": "sample string 9", "UpdatedByUserId": "sample string 10", "IsDeleted": true }
application/xml, text/xml
Sample:
<SaveUpdateRegionsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ResponseModel.Regions"> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 7</CreatedBy> <CreatedByUserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 9</CreatedByUserId> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">2024-11-20T08:36:41.0831976+00:00</CreatedDate> <Id xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 4</Id> <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">true</IsDeleted> <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 8</UpdatedBy> <UpdatedByUserId xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">sample string 10</UpdatedByUserId> <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models">2024-11-20T08:36:41.0831976+00:00</UpdatedDate> <AddRemoveRegionInSubAccount> <AddRemoveRegionInSubAccountViewModel> <RegionActionOnSubAccount>Add</RegionActionOnSubAccount> <SubAccountIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </SubAccountIds> </AddRemoveRegionInSubAccountViewModel> <AddRemoveRegionInSubAccountViewModel> <RegionActionOnSubAccount>Add</RegionActionOnSubAccount> <SubAccountIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </SubAccountIds> </AddRemoveRegionInSubAccountViewModel> </AddRemoveRegionInSubAccount> <Color xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel.Elements"> <d2p1:Gradient>sample string 2</d2p1:Gradient> <d2p1:HexValue>sample string 1</d2p1:HexValue> <d2p1:RgbValue> <d2p1:A>sample string 4</d2p1:A> <d2p1:B>sample string 3</d2p1:B> <d2p1:G>sample string 2</d2p1:G> <d2p1:R>sample string 1</d2p1:R> </d2p1:RgbValue> </Color> <Description>sample string 3</Description> <Name>sample string 2</Name> <AccountId>sample string 1</AccountId> </SaveUpdateRegionsViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.