PUT v1/{Client}/Bodies/{BodyId}

Updates one Body.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Client

The code of the Client database to connect to.

string

Required

BodyId

The BodyId of the body.

integer

Required

Body Parameters

GranicusBody object to be updated. Note that BodyId is not required to be set.

GranicusBody
NameDescriptionTypeAdditional information
BodyId

integer

None.

BodyGuid

string

None.

BodyLastModifiedUtc

date

None.

BodyRowVersion

Collection of byte

None.

BodyName

string

Required

String length: inclusive between 1 and 255

BodyTypeId

integer

Required

BodyTypeName

string

None.

BodyMeetFlag

integer

None.

BodyActiveFlag

integer

None.

BodySort

integer

None.

BodyDescription

string

None.

BodyContactNameId

integer

None.

BodyContactFullName

string

None.

BodyContactPhone

string

None.

BodyContactEmail

string

None.

BodyUsedControlFlag

integer

None.

BodyNumberOfMembers

integer

None.

BodyUsedActingFlag

integer

None.

BodyUsedTargetFlag

integer

None.

BodyUsedSponsorFlag

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "BodyId": 1,
  "BodyGuid": "sample string 2",
  "BodyLastModifiedUtc": "2024-11-21T03:29:45.7162314-05:00",
  "BodyRowVersion": "QEA=",
  "BodyName": "sample string 4",
  "BodyTypeId": 5,
  "BodyTypeName": "sample string 6",
  "BodyMeetFlag": 7,
  "BodyActiveFlag": 8,
  "BodySort": 9,
  "BodyDescription": "sample string 10",
  "BodyContactNameId": 1,
  "BodyContactFullName": "sample string 11",
  "BodyContactPhone": "sample string 12",
  "BodyContactEmail": "sample string 13",
  "BodyUsedControlFlag": 14,
  "BodyNumberOfMembers": 15,
  "BodyUsedActingFlag": 16,
  "BodyUsedTargetFlag": 17,
  "BodyUsedSponsorFlag": 18
}

application/xml, text/xml

Sample:
<GranicusBody xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LegistarWebAPI.Models.v1">
  <BodyActiveFlag>8</BodyActiveFlag>
  <BodyContactEmail>sample string 13</BodyContactEmail>
  <BodyContactFullName>sample string 11</BodyContactFullName>
  <BodyContactNameId>1</BodyContactNameId>
  <BodyContactPhone>sample string 12</BodyContactPhone>
  <BodyDescription>sample string 10</BodyDescription>
  <BodyGuid>sample string 2</BodyGuid>
  <BodyId>1</BodyId>
  <BodyLastModifiedUtc>2024-11-21T03:29:45.7162314-05:00</BodyLastModifiedUtc>
  <BodyMeetFlag>7</BodyMeetFlag>
  <BodyName>sample string 4</BodyName>
  <BodyNumberOfMembers>15</BodyNumberOfMembers>
  <BodyRowVersion>QEA=</BodyRowVersion>
  <BodySort>9</BodySort>
  <BodyTypeId>5</BodyTypeId>
  <BodyTypeName>sample string 6</BodyTypeName>
  <BodyUsedActingFlag>16</BodyUsedActingFlag>
  <BodyUsedControlFlag>14</BodyUsedControlFlag>
  <BodyUsedSponsorFlag>18</BodyUsedSponsorFlag>
  <BodyUsedTargetFlag>17</BodyUsedTargetFlag>
</GranicusBody>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

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