POST v1/{Client}/Indexes

Adds one Index.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Client

The code of the Client database to connect to.

string

Required

Body Parameters

GranicusIndex object to be inserted. Note that IndexId is not required to be set.

GranicusIndex
NameDescriptionTypeAdditional information
IndexId

integer

None.

IndexGuid

string

None.

IndexLastModifiedUtc

date

None.

IndexRowVersion

Collection of byte

None.

IndexName

string

Required

IndexActiveFlag

integer

None.

IndexUsedFlag

integer

None.

api_metadata

string

None.

Request Formats

application/json, text/json

Sample:
{
  "IndexId": 1,
  "IndexGuid": "sample string 2",
  "IndexLastModifiedUtc": "2024-04-19T17:12:41.864736-04:00",
  "IndexRowVersion": "QEA=",
  "IndexName": "sample string 4",
  "IndexActiveFlag": 5,
  "IndexUsedFlag": 6,
  "api_metadata": "sample string 7"
}

application/xml, text/xml

Sample:
<GranicusIndex xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LegistarWebAPI.Models.v1">
  <IndexActiveFlag>5</IndexActiveFlag>
  <IndexGuid>sample string 2</IndexGuid>
  <IndexId>1</IndexId>
  <IndexLastModifiedUtc>2024-04-19T17:12:41.864736-04:00</IndexLastModifiedUtc>
  <IndexName>sample string 4</IndexName>
  <IndexRowVersion>QEA=</IndexRowVersion>
  <IndexUsedFlag>6</IndexUsedFlag>
  <api_metadata>sample string 7</api_metadata>
</GranicusIndex>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Returns Id of a created Index as a string value when Accept header is "text/plain"; otherwise returns created Index 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.