POST api/lockapi/add?siteId={siteId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

globally unique identifier

None.

Body Parameters

LockViewModel
NameDescriptionTypeAdditional information
id

globally unique identifier

None.

name

string

String length: inclusive between 0 and 100

direction

string

Required

String length: inclusive between 0 and 2

distribution_id

globally unique identifier

None.

guard_id

globally unique identifier

None.

active

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "e5b77b01-c745-4b09-8092-da8e0cd58acd",
  "name": "sample string 2",
  "direction": "sample string 3",
  "distribution_id": "c77fffe7-b3f2-4053-a931-b2e36073c601",
  "guard_id": "5a46f010-b463-4bd1-ba96-5fc3d1637783",
  "active": true
}

application/xml, text/xml

Sample:
<lock xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <active>true</active>
  <direction>sample string 3</direction>
  <distribution_id>c77fffe7-b3f2-4053-a931-b2e36073c601</distribution_id>
  <guard_id>5a46f010-b463-4bd1-ba96-5fc3d1637783</guard_id>
  <id>e5b77b01-c745-4b09-8092-da8e0cd58acd</id>
  <name>sample string 2</name>
</lock>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"829757d3-90fc-4550-bd85-d4a18e9dfb0d"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">829757d3-90fc-4550-bd85-d4a18e9dfb0d</guid>