PUT v1/{Client}/CodeSections/{CodeSectionId}
Updates one Code Section.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Client |
The code of the Client database to connect to. |
string |
Required |
| CodeSectionId |
The Id of the Code Section. |
integer |
Required |
Body Parameters
GranicusCodeSection object to be updated. Note that CodeSectionId is not required to be set.
GranicusCodeSection| Name | 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": "2025-11-17T17:41:07.1185787-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>2025-11-17T17:41:07.1185787-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 the updated Code Section as a string value when Accept header is "text/plain"; otherwise returns updated Code Section as an object.
HttpResponseMessage| Name | 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. |