POST api/tenant/service-tenant/create

Request Information

URI Parameters

None.

Body Parameters

RecServiceTenantDTOW
NameDescriptionTypeAdditional information
code

string

Required

Max length: 100

description

string

Required

Max length: 100

short_name

string

Max length: 100

user_prefix

string

Max length: 100

sector_id

integer

Required

no_of_employees

integer

Required

employment_type

integer

Required

official_email_address

string

Required

Max length: 100

website_url

string

Required

Max length: 500

address_line1

string

Required

Max length: 100

address_line2

string

Max length: 100

official_phone_number

string

Max length: 100

business_type

string

Max length: 100

tenant_logo

Collection of byte

None.

location_country_id

integer

Required

location_state_id

integer

Required

location_city_id

integer

Required

account_status

integer

Required

status

integer

Required

year_founded

integer

Required

doc_extension

string

Max length: 5

doc_binary

string

None.

doc_size

string

None.

customer_care_no

string

Max length: 100

twitter

string

Max length: 100

facebook

string

Max length: 100

instagram

string

Max length: 100

youtube

string

Max length: 100

linkedin

string

Max length: 100

firstname

string

Required

Max length: 100

surname

string

Required

Max length: 100

other_name

string

Max length: 100

gender

string

Required

Max length: 50

admin_status

integer

Required

phone_number

string

Required

Max length: 50

email_address

string

Required

Max length: 100

Request Formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "description": "sample string 2",
  "short_name": "sample string 3",
  "user_prefix": "sample string 4",
  "sector_id": 5,
  "no_of_employees": 6,
  "employment_type": 7,
  "official_email_address": "sample string 8",
  "website_url": "sample string 9",
  "address_line1": "sample string 10",
  "address_line2": "sample string 11",
  "official_phone_number": "sample string 12",
  "business_type": "sample string 13",
  "tenant_logo": "QEA=",
  "location_country_id": 14,
  "location_state_id": 15,
  "location_city_id": 16,
  "account_status": 17,
  "status": 18,
  "year_founded": 19,
  "doc_extension": "sample string 20",
  "doc_binary": "sample string 21",
  "doc_size": "sample string 22",
  "customer_care_no": "sample string 23",
  "twitter": "sample string 24",
  "facebook": "sample string 25",
  "instagram": "sample string 26",
  "youtube": "sample string 27",
  "linkedin": "sample string 28",
  "firstname": "sample string 29",
  "surname": "sample string 30",
  "other_name": "sample string 31",
  "gender": "sample string 32",
  "admin_status": 33,
  "phone_number": "sample string 34",
  "email_address": "sample string 35"
}

application/xml, text/xml

Sample:
<RecServiceTenantDTOW xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Xceed365EngageApi.core.DTOs.Writable">
  <account_status>17</account_status>
  <address_line1>sample string 10</address_line1>
  <address_line2>sample string 11</address_line2>
  <admin_status>33</admin_status>
  <business_type>sample string 13</business_type>
  <code>sample string 1</code>
  <customer_care_no>sample string 23</customer_care_no>
  <description>sample string 2</description>
  <doc_binary>sample string 21</doc_binary>
  <doc_extension>sample string 20</doc_extension>
  <doc_size>sample string 22</doc_size>
  <email_address>sample string 35</email_address>
  <employment_type>7</employment_type>
  <facebook>sample string 25</facebook>
  <firstname>sample string 29</firstname>
  <gender>sample string 32</gender>
  <instagram>sample string 26</instagram>
  <linkedin>sample string 28</linkedin>
  <location_city_id>16</location_city_id>
  <location_country_id>14</location_country_id>
  <location_state_id>15</location_state_id>
  <no_of_employees>6</no_of_employees>
  <official_email_address>sample string 8</official_email_address>
  <official_phone_number>sample string 12</official_phone_number>
  <other_name>sample string 31</other_name>
  <phone_number>sample string 34</phone_number>
  <sector_id>5</sector_id>
  <short_name>sample string 3</short_name>
  <status>18</status>
  <surname>sample string 30</surname>
  <tenant_logo>QEA=</tenant_logo>
  <twitter>sample string 24</twitter>
  <user_prefix>sample string 4</user_prefix>
  <website_url>sample string 9</website_url>
  <year_founded>19</year_founded>
  <youtube>sample string 27</youtube>
</RecServiceTenantDTOW>

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 'RecServiceTenantDTOW'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.