POST api/Entity/UpsertEntity

Request Information

URI Parameters

None.

Body Parameters

EntityModel
NameDescriptionTypeAdditional information
EntityKey

string

None.

NameEnglish

string

None.

NameArabic

string

None.

TaxIdNumber

string

None.

CRNumber

string

None.

EntityTypeId

integer

None.

PrefixTitleId

integer

None.

ParentEntityKey

string

None.

ImageModel

ImageUploadModel

None.

StatusId

integer

None.

AreaId

integer

None.

BookingTypeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "EntityKey": "sample string 1",
  "NameEnglish": "sample string 2",
  "NameArabic": "sample string 3",
  "TaxIdNumber": "sample string 4",
  "CRNumber": "sample string 5",
  "EntityTypeId": 6,
  "PrefixTitleId": 1,
  "ParentEntityKey": "sample string 7",
  "ImageModel": {
    "ImageExtension": "sample string 1",
    "ImageBase64String": "sample string 2",
    "DescriptionEnglish": "sample string 3",
    "DescriptionArabic": "sample string 4",
    "FilePath": "sample string 5",
    "ThumbnailPath": "sample string 6"
  },
  "StatusId": 1,
  "AreaId": 1,
  "BookingTypeId": 1
}

application/xml, text/xml

Sample:
<EntityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AccountManagement.Models">
  <AddressId>1</AddressId>
  <AreaId>1</AreaId>
  <BookingTypeId>1</BookingTypeId>
  <CRNumber>sample string 5</CRNumber>
  <EntityKey>sample string 1</EntityKey>
  <EntityTypeId>6</EntityTypeId>
  <ImageModel>
    <DescriptionArabic>sample string 4</DescriptionArabic>
    <DescriptionEnglish>sample string 3</DescriptionEnglish>
    <FilePath>sample string 5</FilePath>
    <ImageBase64String>sample string 2</ImageBase64String>
    <ImageExtension>sample string 1</ImageExtension>
    <ThumbnailPath>sample string 6</ThumbnailPath>
  </ImageModel>
  <NameArabic>sample string 3</NameArabic>
  <NameEnglish>sample string 2</NameEnglish>
  <ParentEntityKey>sample string 7</ParentEntityKey>
  <PrefixTitleId>1</PrefixTitleId>
  <SpecialtyGroupId>1</SpecialtyGroupId>
  <StatusId>1</StatusId>
  <TaxIdNumber>sample string 4</TaxIdNumber>
</EntityModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

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.