POST v1/{Client}/OfficeRecords

Adds one Office Record.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Client

The code of the Client database to connect to.

string

Required

Body Parameters

GranicusOfficeRecord object to be inserted. Note that OfficeRecordId is not required to be set.

GranicusOfficeRecord
NameDescriptionTypeAdditional information
OfficeRecordId

integer

None.

OfficeRecordGuid

string

None.

OfficeRecordLastModifiedUtc

date

None.

OfficeRecordRowVersion

Collection of byte

None.

OfficeRecordFirstName

string

None.

OfficeRecordLastName

string

None.

OfficeRecordEmail

string

None.

OfficeRecordFullName

string

None.

OfficeRecordStartDate

date

Required

OfficeRecordEndDate

date

None.

OfficeRecordSort

integer

None.

OfficeRecordPersonId

integer

Required

OfficeRecordBodyId

integer

Required

OfficeRecordBodyName

string

None.

OfficeRecordTitle

string

None.

OfficeRecordVoteDivider

decimal number

Required

OfficeRecordExtendFlag

integer

Required

OfficeRecordMemberTypeId

integer

Required

OfficeRecordMemberType

string

None.

OfficeRecordSupportNameId

integer

None.

OfficeRecordSupportFullName

string

None.

OfficeRecordExtraText

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OfficeRecordId": 1,
  "OfficeRecordGuid": "sample string 2",
  "OfficeRecordLastModifiedUtc": "2024-11-21T03:54:20.0022911-05:00",
  "OfficeRecordRowVersion": "QEA=",
  "OfficeRecordFirstName": "sample string 4",
  "OfficeRecordLastName": "sample string 5",
  "OfficeRecordEmail": "sample string 6",
  "OfficeRecordFullName": "sample string 7",
  "OfficeRecordStartDate": "2024-11-21T03:54:20.0022911-05:00",
  "OfficeRecordEndDate": "2024-11-21T03:54:20.0022911-05:00",
  "OfficeRecordSort": 9,
  "OfficeRecordPersonId": 10,
  "OfficeRecordBodyId": 11,
  "OfficeRecordBodyName": "sample string 12",
  "OfficeRecordTitle": "sample string 13",
  "OfficeRecordVoteDivider": 14.1,
  "OfficeRecordExtendFlag": 15,
  "OfficeRecordMemberTypeId": 16,
  "OfficeRecordMemberType": "sample string 17",
  "OfficeRecordSupportNameId": 1,
  "OfficeRecordSupportFullName": "sample string 18",
  "OfficeRecordExtraText": "sample string 19"
}

application/xml, text/xml

Sample:
<GranicusOfficeRecord xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LegistarWebAPI.Models.v1">
  <OfficeRecordBodyId>11</OfficeRecordBodyId>
  <OfficeRecordBodyName>sample string 12</OfficeRecordBodyName>
  <OfficeRecordEmail>sample string 6</OfficeRecordEmail>
  <OfficeRecordEndDate>2024-11-21T03:54:20.0022911-05:00</OfficeRecordEndDate>
  <OfficeRecordExtendFlag>15</OfficeRecordExtendFlag>
  <OfficeRecordExtraText>sample string 19</OfficeRecordExtraText>
  <OfficeRecordFirstName>sample string 4</OfficeRecordFirstName>
  <OfficeRecordFullName>sample string 7</OfficeRecordFullName>
  <OfficeRecordGuid>sample string 2</OfficeRecordGuid>
  <OfficeRecordId>1</OfficeRecordId>
  <OfficeRecordLastModifiedUtc>2024-11-21T03:54:20.0022911-05:00</OfficeRecordLastModifiedUtc>
  <OfficeRecordLastName>sample string 5</OfficeRecordLastName>
  <OfficeRecordMemberType>sample string 17</OfficeRecordMemberType>
  <OfficeRecordMemberTypeId>16</OfficeRecordMemberTypeId>
  <OfficeRecordPersonId>10</OfficeRecordPersonId>
  <OfficeRecordRowVersion>QEA=</OfficeRecordRowVersion>
  <OfficeRecordSort>9</OfficeRecordSort>
  <OfficeRecordStartDate>2024-11-21T03:54:20.0022911-05:00</OfficeRecordStartDate>
  <OfficeRecordSupportFullName>sample string 18</OfficeRecordSupportFullName>
  <OfficeRecordSupportNameId>1</OfficeRecordSupportNameId>
  <OfficeRecordTitle>sample string 13</OfficeRecordTitle>
  <OfficeRecordVoteDivider>14.1</OfficeRecordVoteDivider>
</GranicusOfficeRecord>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Returns Id of a created Office Record as a string value when Accept header is "text/plain"; otherwise returns created Office Record as an object.

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.