POST v1/{Client}/MatterTypes

Adds one Matter Type.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Client

The code of the Client database to connect to.

string

Required

Body Parameters

GranicusMatterType object to be inserted. Note that MatterTypeID is not required to be set.

GranicusMatterType
NameDescriptionTypeAdditional information
MatterTypeId

integer

None.

MatterTypeGuid

string

None.

MatterTypeLastModifiedUtc

date

None.

MatterTypeRowVersion

Collection of byte

None.

MatterTypeName

string

Required

MatterTypeSort

integer

None.

MatterTypeActiveFlag

integer

None.

MatterTypeDescription

string

None.

MatterTypeUsedFlag

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "MatterTypeId": 1,
  "MatterTypeGuid": "sample string 2",
  "MatterTypeLastModifiedUtc": "2024-04-25T02:42:31.9109268-04:00",
  "MatterTypeRowVersion": "QEA=",
  "MatterTypeName": "sample string 4",
  "MatterTypeSort": 5,
  "MatterTypeActiveFlag": 6,
  "MatterTypeDescription": "sample string 7",
  "MatterTypeUsedFlag": 8
}

application/xml, text/xml

Sample:
<GranicusMatterType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LegistarWebAPI.Models.v1">
  <MatterTypeActiveFlag>6</MatterTypeActiveFlag>
  <MatterTypeDescription>sample string 7</MatterTypeDescription>
  <MatterTypeGuid>sample string 2</MatterTypeGuid>
  <MatterTypeId>1</MatterTypeId>
  <MatterTypeLastModifiedUtc>2024-04-25T02:42:31.9109268-04:00</MatterTypeLastModifiedUtc>
  <MatterTypeName>sample string 4</MatterTypeName>
  <MatterTypeRowVersion>QEA=</MatterTypeRowVersion>
  <MatterTypeSort>5</MatterTypeSort>
  <MatterTypeUsedFlag>8</MatterTypeUsedFlag>
</GranicusMatterType>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

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