POST api/SaveIdentity

Request Information

URI Parameters

None.

Body Parameters

Identity
NameDescriptionTypeAdditional information
Type

string

None.

Number

string

None.

HolderName

string

None.

IssuedDate

date

None.

Expired

date

None.

IssuedBy

string

None.

CustormerId

integer

None.

Created

date

None.

CreatedBy

integer

None.

CreatedComboId

string

None.

Guid

globally unique identifier

None.

Id

integer

None.

IsDirty

boolean

None.

Modified

date

None.

ModifiedBy

integer

None.

ModifiedComboId

string

None.

TenantId

integer

None.

Deleted

boolean

None.

Action

EntityAction

None.

Message

string

None.

Error

ServiceError

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "Identity",
  "Type": "Passport",
  "Number": "sample string 2",
  "HolderName": "sample string 3",
  "IssuedDate": "2020-11-25T11:12:08.8388588+00:00",
  "Expired": "2020-11-25T11:12:08.8388588+00:00",
  "IssuedBy": "sample string 4",
  "CustormerId": 6,
  "Created": "2020-11-25T11:12:08.8411412+00:00",
  "CreatedBy": 8,
  "CreatedComboId": "sample string 9",
  "Guid": "49c7d3a8-0806-40d7-9339-4c0df0b8f2db",
  "Id": 11,
  "IsDirty": true,
  "Loaded": true,
  "Modified": "2020-11-25T11:12:08.8411412+00:00",
  "ModifiedBy": 15,
  "ModifiedComboId": "sample string 16",
  "TenantId": 17,
  "Deleted": true,
  "Action": 0,
  "Message": "sample string 19",
  "Error": {
    "$id": "2",
    "Message": "sample string 1",
    "ECode": 2,
    "Source": "sample string 3",
    "DateTime": "2020-11-25T11:12:08.8418591+00:00",
    "Operator": 5,
    "TenantId": 6
  }
}

application/xml, text/xml

Sample:
<Identity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://IMBK/query/2.0">
  <Action>None</Action>
  <Created>2020-11-25T11:12:08.8411412+00:00</Created>
  <CreatedBy>8</CreatedBy>
  <CreatedComboId>sample string 9</CreatedComboId>
  <Deleted>true</Deleted>
  <Error z:Id="i2">
    <DateTime>2020-11-25T11:12:08.8418591+00:00</DateTime>
    <ECode>2</ECode>
    <Message>sample string 1</Message>
    <Operator>5</Operator>
    <Source>sample string 3</Source>
    <TenantId>6</TenantId>
  </Error>
  <Guid>49c7d3a8-0806-40d7-9339-4c0df0b8f2db</Guid>
  <Id>11</Id>
  <IsDirty>true</IsDirty>
  <Message>sample string 19</Message>
  <Modified>2020-11-25T11:12:08.8411412+00:00</Modified>
  <ModifiedBy>15</ModifiedBy>
  <ModifiedComboId>sample string 16</ModifiedComboId>
  <Name>Identity</Name>
  <TenantId>17</TenantId>
  <CustormerId>6</CustormerId>
  <Expired>2020-11-25T11:12:08.8388588+00:00</Expired>
  <HolderName>sample string 3</HolderName>
  <IssuedBy>sample string 4</IssuedBy>
  <IssuedDate>2020-11-25T11:12:08.8388588+00:00</IssuedDate>
  <Number>sample string 2</Number>
  <Type>Passport</Type>
</Identity>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Identity'.

Response Information

Resource Description

Collection of Identity
NameDescriptionTypeAdditional information
Type

string

None.

Number

string

None.

HolderName

string

None.

IssuedDate

date

None.

Expired

date

None.

IssuedBy

string

None.

CustormerId

integer

None.

Created

date

None.

CreatedBy

integer

None.

CreatedComboId

string

None.

Guid

globally unique identifier

None.

Id

integer

None.

IsDirty

boolean

None.

Modified

date

None.

ModifiedBy

integer

None.

ModifiedComboId

string

None.

TenantId

integer

None.

Deleted

boolean

None.

Action

EntityAction

None.

Message

string

None.

Error

ServiceError

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "Name": "Identity",
    "Type": "Passport",
    "Number": "sample string 2",
    "HolderName": "sample string 3",
    "IssuedDate": "2020-11-25T11:12:08.8678597+00:00",
    "Expired": "2020-11-25T11:12:08.8678597+00:00",
    "IssuedBy": "sample string 4",
    "CustormerId": 6,
    "Created": "2020-11-25T11:12:08.8678597+00:00",
    "CreatedBy": 8,
    "CreatedComboId": "sample string 9",
    "Guid": "d3f5aa2c-3f40-431c-bacc-b096f96aafad",
    "Id": 11,
    "IsDirty": true,
    "Loaded": true,
    "Modified": "2020-11-25T11:12:08.8678597+00:00",
    "ModifiedBy": 15,
    "ModifiedComboId": "sample string 16",
    "TenantId": 17,
    "Deleted": true,
    "Action": 0,
    "Message": "sample string 19",
    "Error": {
      "$id": "2",
      "Message": "sample string 1",
      "ECode": 2,
      "Source": "sample string 3",
      "DateTime": "2020-11-25T11:12:08.8678597+00:00",
      "Operator": 5,
      "TenantId": 6
    }
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfIdentity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://IMBK/query/2.0">
  <Identity z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
    <Action>None</Action>
    <Created>2020-11-25T11:12:08.8678597+00:00</Created>
    <CreatedBy>8</CreatedBy>
    <CreatedComboId>sample string 9</CreatedComboId>
    <Deleted>true</Deleted>
    <Error z:Id="i2">
      <DateTime>2020-11-25T11:12:08.8678597+00:00</DateTime>
      <ECode>2</ECode>
      <Message>sample string 1</Message>
      <Operator>5</Operator>
      <Source>sample string 3</Source>
      <TenantId>6</TenantId>
    </Error>
    <Guid>d3f5aa2c-3f40-431c-bacc-b096f96aafad</Guid>
    <Id>11</Id>
    <IsDirty>true</IsDirty>
    <Message>sample string 19</Message>
    <Modified>2020-11-25T11:12:08.8678597+00:00</Modified>
    <ModifiedBy>15</ModifiedBy>
    <ModifiedComboId>sample string 16</ModifiedComboId>
    <Name>Identity</Name>
    <TenantId>17</TenantId>
    <CustormerId>6</CustormerId>
    <Expired>2020-11-25T11:12:08.8678597+00:00</Expired>
    <HolderName>sample string 3</HolderName>
    <IssuedBy>sample string 4</IssuedBy>
    <IssuedDate>2020-11-25T11:12:08.8678597+00:00</IssuedDate>
    <Number>sample string 2</Number>
    <Type>Passport</Type>
  </Identity>
  <Identity z:Ref="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
</ArrayOfIdentity>