PATCH v1/admin/company/{id}

Updated the details of company whose ID is passed in URL

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

UpdateCompanyInput
NameDescriptionTypeAdditional information
MainEmail

string

None.

JobsEmail

string

None.

InfoEmail

string

None.

Website

string

None.

Request Formats

application/json, text/json

Sample:
{
  "MainEmail": "sample string 1",
  "JobsEmail": "sample string 2",
  "InfoEmail": "sample string 3",
  "Website": "sample string 4"
}

text/html

Sample:
{"MainEmail":"sample string 1","JobsEmail":"sample string 2","InfoEmail":"sample string 3","Website":"sample string 4"}

application/xml, text/xml

Sample:
<v1_Admin_CompanyEndpointController.UpdateCompanyInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_Admin_CompanyEndpoint">
  <InfoEmail>sample string 3</InfoEmail>
  <JobsEmail>sample string 2</JobsEmail>
  <MainEmail>sample string 1</MainEmail>
  <Website>sample string 4</Website>
</v1_Admin_CompanyEndpointController.UpdateCompanyInput>

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

Response Information

Resource Description

CompanyPatchOutput
NameDescriptionTypeAdditional information
id

integer

None.

name

string

None.

website

string

None.

mainEmail

string

None.

JobsEmail

string

None.

InfoEmail

string

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "website": "sample string 3",
  "mainEmail": "sample string 4",
  "JobsEmail": "sample string 5",
  "InfoEmail": "sample string 6"
}

text/html

Sample:
{"id":1,"name":"sample string 2","website":"sample string 3","mainEmail":"sample string 4","JobsEmail":"sample string 5","InfoEmail":"sample string 6"}

application/xml, text/xml

Sample:
<v1_Admin_CompanyEndpointController.CompanyPatchOutput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_Admin_CompanyEndpoint">
  <InfoEmail>sample string 6</InfoEmail>
  <JobsEmail>sample string 5</JobsEmail>
  <id>1</id>
  <mainEmail>sample string 4</mainEmail>
  <name>sample string 2</name>
  <website>sample string 3</website>
</v1_Admin_CompanyEndpointController.CompanyPatchOutput>