POST api/v1/zones
Request Information
URI Parameters
None.
Body Parameters
ZoneDtoName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
Code | string |
None. |
|
ZoneGroupCode | string |
None. |
|
PlaceId | globally unique identifier |
None. |
|
PlaceCode | string |
None. |
|
IsIo | boolean |
None. |
|
ZoneIntervalDtos | Collection of ZoneIntervalDto |
None. |
|
Id | globally unique identifier |
None. |
|
CreationDate | date |
None. |
|
ModificationDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "name": "sample string 1", "code": "sample string 2", "zoneGroupCode": "sample string 3", "placeId": "e8037df2-1ae2-41f9-ae86-7e61104fad0a", "placeCode": "sample string 5", "isIo": true, "zoneIntervalDtos": [ { "startYear": 1, "startMonth": 1, "startDay": 1, "startHour": 1, "startMinute": 2, "endYear": 1, "endMonth": 1, "endDay": 1, "endHour": 3, "endMinute": 4, "mode": 0, "zoneCode": "sample string 5", "id": "a579be9a-ebc9-4476-b873-7602f02ae755", "creationDate": "2025-08-31T02:06:13.8286062+00:00", "modificationDate": "2025-08-31T02:06:13.8286062+00:00" }, { "startYear": 1, "startMonth": 1, "startDay": 1, "startHour": 1, "startMinute": 2, "endYear": 1, "endMonth": 1, "endDay": 1, "endHour": 3, "endMinute": 4, "mode": 0, "zoneCode": "sample string 5", "id": "a579be9a-ebc9-4476-b873-7602f02ae755", "creationDate": "2025-08-31T02:06:13.8286062+00:00", "modificationDate": "2025-08-31T02:06:13.8286062+00:00" } ], "id": "adad064f-739d-4be3-8cc5-0a4ebafa6b6b", "creationDate": "2025-08-31T02:06:13.8441548+00:00", "modificationDate": "2025-08-31T02:06:13.8441548+00:00" }
application/xml, text/xml
Sample:
<ZoneDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Domain.Dtos.Location"> <CreationDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Objects">2025-08-31T02:06:13.8441548+00:00</CreationDate> <Id xmlns="http://schemas.datacontract.org/2004/07/Domain.Objects">adad064f-739d-4be3-8cc5-0a4ebafa6b6b</Id> <ModificationDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Objects">2025-08-31T02:06:13.8441548+00:00</ModificationDate> <Code>sample string 2</Code> <IsIo>true</IsIo> <Name>sample string 1</Name> <PlaceCode>sample string 5</PlaceCode> <PlaceId>e8037df2-1ae2-41f9-ae86-7e61104fad0a</PlaceId> <ZoneGroupCode>sample string 3</ZoneGroupCode> <ZoneIntervalDtos> <ZoneIntervalDto> <CreationDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Objects">2025-08-31T02:06:13.8286062+00:00</CreationDate> <Id xmlns="http://schemas.datacontract.org/2004/07/Domain.Objects">a579be9a-ebc9-4476-b873-7602f02ae755</Id> <ModificationDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Objects">2025-08-31T02:06:13.8286062+00:00</ModificationDate> <EndDay>1</EndDay> <EndHour>3</EndHour> <EndMinute>4</EndMinute> <EndMonth>1</EndMonth> <EndYear>1</EndYear> <Mode>Never</Mode> <StartDay>1</StartDay> <StartHour>1</StartHour> <StartMinute>2</StartMinute> <StartMonth>1</StartMonth> <StartYear>1</StartYear> <ZoneCode>sample string 5</ZoneCode> </ZoneIntervalDto> <ZoneIntervalDto> <CreationDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Objects">2025-08-31T02:06:13.8286062+00:00</CreationDate> <Id xmlns="http://schemas.datacontract.org/2004/07/Domain.Objects">a579be9a-ebc9-4476-b873-7602f02ae755</Id> <ModificationDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Objects">2025-08-31T02:06:13.8286062+00:00</ModificationDate> <EndDay>1</EndDay> <EndHour>3</EndHour> <EndMinute>4</EndMinute> <EndMonth>1</EndMonth> <EndYear>1</EndYear> <Mode>Never</Mode> <StartDay>1</StartDay> <StartHour>1</StartHour> <StartMinute>2</StartMinute> <StartMonth>1</StartMonth> <StartYear>1</StartYear> <ZoneCode>sample string 5</ZoneCode> </ZoneIntervalDto> </ZoneIntervalDtos> </ZoneDto>
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.