POST api/companies/{companyId}/job-types
Post company job type POST: api/companies/{companyId:guid}/job-types
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companyId | globally unique identifier |
Required |
Body Parameters
JobTypeDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Job type id |
globally unique identifier |
None. |
| Name |
Job type name |
string |
Required |
| Description |
Job type description |
string |
None. |
| CompanyId |
Job type company: this job type only for this company, other companies can not viewing this type |
globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "fb01d86c-cc2b-4f5d-ad25-d9408370eb2c",
"Name": "sample string 2",
"Description": "sample string 3",
"CompanyId": "5acf5996-ac51-4b40-a63b-4d37dc4fdc93"
}
application/xml, text/xml
Sample:
<JobTypeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models"> <CompanyId>5acf5996-ac51-4b40-a63b-4d37dc4fdc93</CompanyId> <Description>sample string 3</Description> <Id>fb01d86c-cc2b-4f5d-ad25-d9408370eb2c</Id> <Name>sample string 2</Name> </JobTypeDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
201: Created
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.