POST v1/{Client}/Actions

Adds one Action.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Client

The code of the Client database to connect to.

string

Required

Body Parameters

GranicusAction object to be inserted. Note that ActionID is not required to be set.

GranicusAction
NameDescriptionTypeAdditional information
ActionId

integer

None.

ActionGuid

string

None.

ActionLastModifiedUtc

date

None.

ActionRowVersion

Collection of byte

None.

ActionName

string

Required

String length: inclusive between 1 and 255

ActionActiveFlag

integer

None.

ActionUsedFlag

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ActionId": 1,
  "ActionGuid": "sample string 2",
  "ActionLastModifiedUtc": "2020-11-26T13:17:41.3113533-05:00",
  "ActionRowVersion": "QEA=",
  "ActionName": "sample string 4",
  "ActionActiveFlag": 5,
  "ActionUsedFlag": 6
}

application/xml, text/xml

Sample:
<GranicusAction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LegistarWebAPI.Models.v1">
  <ActionActiveFlag>5</ActionActiveFlag>
  <ActionGuid>sample string 2</ActionGuid>
  <ActionId>1</ActionId>
  <ActionLastModifiedUtc>2020-11-26T13:17:41.3113533-05:00</ActionLastModifiedUtc>
  <ActionName>sample string 4</ActionName>
  <ActionRowVersion>QEA=</ActionRowVersion>
  <ActionUsedFlag>6</ActionUsedFlag>
</GranicusAction>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

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