POST v1/{Client}/BodyTypes
Adds one Body Type.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
Client |
The code of the Client database to connect to. |
string |
Required |
Body Parameters
GranicusBodyType object to be inserted. Note that BodyTypeId is not required to be set.
GranicusBodyTypeName | Description | Type | Additional information |
---|---|---|---|
BodyTypeId | integer |
None. |
|
BodyTypeGuid | string |
None. |
|
BodyTypeLastModifiedUtc | date |
None. |
|
BodyTypeRowVersion | Collection of byte |
None. |
|
BodyTypeName | string |
Required |
Request Formats
application/json, text/json
Sample:
{ "BodyTypeId": 1, "BodyTypeGuid": "sample string 2", "BodyTypeLastModifiedUtc": "2024-11-21T03:49:47.8776794-05:00", "BodyTypeRowVersion": "QEA=", "BodyTypeName": "sample string 4" }
application/xml, text/xml
Sample:
<GranicusBodyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LegistarWebAPI.Models.v1"> <BodyTypeGuid>sample string 2</BodyTypeGuid> <BodyTypeId>1</BodyTypeId> <BodyTypeLastModifiedUtc>2024-11-21T03:49:47.8776794-05:00</BodyTypeLastModifiedUtc> <BodyTypeName>sample string 4</BodyTypeName> <BodyTypeRowVersion>QEA=</BodyTypeRowVersion> </GranicusBodyType>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Returns Id of a created Body Type as a string value when Accept header is "text/plain"; otherwise returns created Body Type 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. |