POST v1/{Client}/CodeSections
Adds one Code Section.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
Client |
The code of the Client database to connect to. |
string |
Required |
Body Parameters
GranicusCodeSection object to be inserted. Note that CodeSectionId is not required to be set.
GranicusCodeSectionName | Description | Type | Additional information |
---|---|---|---|
CodeSectionId | integer |
None. |
|
CodeSectionGuid | string |
None. |
|
CodeSectionLastModifiedUtc | date |
None. |
|
CodeSectionRowVersion | Collection of byte |
None. |
|
CodeSectionNumber | string |
None. |
|
CodeSectionName | string |
None. |
|
CodeSectionActiveFlag | integer |
None. |
|
CodeSectionUsedFlag | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "CodeSectionId": 1, "CodeSectionGuid": "sample string 2", "CodeSectionLastModifiedUtc": "2024-12-21T11:23:24.0690715-05:00", "CodeSectionRowVersion": "QEA=", "CodeSectionNumber": "sample string 4", "CodeSectionName": "sample string 5", "CodeSectionActiveFlag": 6, "CodeSectionUsedFlag": 7 }
application/xml, text/xml
Sample:
<GranicusCodeSection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LegistarWebAPI.Models.v1"> <CodeSectionActiveFlag>6</CodeSectionActiveFlag> <CodeSectionGuid>sample string 2</CodeSectionGuid> <CodeSectionId>1</CodeSectionId> <CodeSectionLastModifiedUtc>2024-12-21T11:23:24.0690715-05:00</CodeSectionLastModifiedUtc> <CodeSectionName>sample string 5</CodeSectionName> <CodeSectionNumber>sample string 4</CodeSectionNumber> <CodeSectionRowVersion>QEA=</CodeSectionRowVersion> <CodeSectionUsedFlag>7</CodeSectionUsedFlag> </GranicusCodeSection>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Returns Id of a created Code Section as a string value when Accept header is "text/plain"; otherwise returns created Code Section as an object.
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |