Website logo

Creates a company for the currently logged in member, or returns their existing company if they already have one

Creates a company for the currently logged in member, or returns their existing company if they already have one

URL: https://api.trademe.co.nz/v1/Jobs/Companies.{file_format}
HTTP Method: POST
Requires Authentication? Yes
Permission Required: MyTradeMeWrite: Maintain your watchlist, answer questions and post comments.
Supported Formats: XML, JSON
Rate Limited? Yes

URL parameters

file_format Enumeration (required) The format of the response.
xml Serialize responses into XML.
json Serialize responses into JSON.

POST Data

<JobCompany>

CompanyId Integer (optional)

The id of the company

CompanyName String (optional)

The name of the company

IsCompanyOwner Boolean (optional)

The flag indicates whether the current member is the owner of the company

Returns

<JobCompany>

The created company

CompanyId Integer

The id of the company

CompanyName String or null

The name of the company

IsCompanyOwner Boolean

The flag indicates whether the current member is the owner of the company

Example XML Request (switch to JSON)

<JobCompany xmlns="http://api.trademe.co.nz/v1">
  <CompanyId>123</CompanyId>
  <CompanyName>ABC</CompanyName>
  <IsCompanyOwner>false</IsCompanyOwner>
</JobCompany>

Example JSON Request (switch to XML)

{
  "CompanyId": 123,
  "CompanyName": "ABC",
  "IsCompanyOwner": false
}

Example XML Response (switch to JSON)

<JobCompany xmlns="http://api.trademe.co.nz/v1">
  <CompanyId>123</CompanyId>
  <CompanyName>ABC</CompanyName>
  <IsCompanyOwner>false</IsCompanyOwner>
</JobCompany>

Example JSON Response (switch to XML)

{
  "CompanyId": 123,
  "CompanyName": "ABC",
  "IsCompanyOwner": false
}