PUT api/v1/zones/{code}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
code

string

Required

Body Parameters

ZoneDto
NameDescriptionTypeAdditional 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": "fe51f836-bf15-43d1-a810-1c875f9a75c7",
  "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": "67b9fa97-fce2-44fc-a636-85b4d7440ffc",
      "creationDate": "2025-08-31T06:18:38.8187809+00:00",
      "modificationDate": "2025-08-31T06:18:38.8187809+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": "67b9fa97-fce2-44fc-a636-85b4d7440ffc",
      "creationDate": "2025-08-31T06:18:38.8187809+00:00",
      "modificationDate": "2025-08-31T06:18:38.8187809+00:00"
    }
  ],
  "id": "6ad8560b-1b59-4738-a1eb-84c070d9d421",
  "creationDate": "2025-08-31T06:18:38.8187809+00:00",
  "modificationDate": "2025-08-31T06:18:38.8187809+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-31T06:18:38.8187809+00:00</CreationDate>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Domain.Objects">6ad8560b-1b59-4738-a1eb-84c070d9d421</Id>
  <ModificationDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Objects">2025-08-31T06:18:38.8187809+00:00</ModificationDate>
  <Code>sample string 2</Code>
  <IsIo>true</IsIo>
  <Name>sample string 1</Name>
  <PlaceCode>sample string 5</PlaceCode>
  <PlaceId>fe51f836-bf15-43d1-a810-1c875f9a75c7</PlaceId>
  <ZoneGroupCode>sample string 3</ZoneGroupCode>
  <ZoneIntervalDtos>
    <ZoneIntervalDto>
      <CreationDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Objects">2025-08-31T06:18:38.8187809+00:00</CreationDate>
      <Id xmlns="http://schemas.datacontract.org/2004/07/Domain.Objects">67b9fa97-fce2-44fc-a636-85b4d7440ffc</Id>
      <ModificationDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Objects">2025-08-31T06:18:38.8187809+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-31T06:18:38.8187809+00:00</CreationDate>
      <Id xmlns="http://schemas.datacontract.org/2004/07/Domain.Objects">67b9fa97-fce2-44fc-a636-85b4d7440ffc</Id>
      <ModificationDate xmlns="http://schemas.datacontract.org/2004/07/Domain.Objects">2025-08-31T06:18:38.8187809+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

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.