POST api/Company/SaveCompany

Request Information

URI Parameters

None.

Body Parameters

CompanyAddDto
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Address1

string

None.

Address2

string

None.

Zip

string

None.

City

string

None.

State

string

None.

TradeLicense

string

None.

TradeLicenseFileUrl

string

None.

TrnNumber

string

None.

EmiratesId

string

None.

EmirateIdFileUrl

string

None.

CurrentUserId

integer

None.

IsVerfied

boolean

None.

swiftshield

boolean

None.

breakprotection

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "Address1": "sample string 3",
  "Address2": "sample string 4",
  "Zip": "sample string 5",
  "City": "sample string 6",
  "State": "sample string 7",
  "TradeLicense": "sample string 8",
  "TradeLicenseFileUrl": "sample string 9",
  "TrnNumber": "sample string 10",
  "EmiratesId": "sample string 11",
  "EmirateIdFileUrl": "sample string 12",
  "CurrentUserId": 13,
  "IsVerfied": true,
  "swiftshield": true,
  "breakprotection": true
}

application/xml, text/xml

Sample:
<CompanyAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BreakProtection.Common.Dto">
  <Address1>sample string 3</Address1>
  <Address2>sample string 4</Address2>
  <City>sample string 6</City>
  <CurrentUserId>13</CurrentUserId>
  <EmirateIdFileUrl>sample string 12</EmirateIdFileUrl>
  <EmiratesId>sample string 11</EmiratesId>
  <Id>1</Id>
  <IsVerfied>true</IsVerfied>
  <Name>sample string 2</Name>
  <State>sample string 7</State>
  <TradeLicense>sample string 8</TradeLicense>
  <TradeLicenseFileUrl>sample string 9</TradeLicenseFileUrl>
  <TrnNumber>sample string 10</TrnNumber>
  <Zip>sample string 5</Zip>
  <breakprotection>true</breakprotection>
  <swiftshield>true</swiftshield>
</CompanyAddDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
Status

integer

None.

Message

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "Message": "sample string 2",
  "Data": {}
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BreakProtection.Common.Dto">
  <Data />
  <Message>sample string 2</Message>
  <Status>1</Status>
</Response>