POST api/job-types
Post global job type
Request Information
URI Parameters
None.
Body Parameters
JobTypeDtoName | 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": "0ac96c09-92a6-4db8-8702-3bb57098bc28", "Name": "sample string 2", "Description": "sample string 3", "CompanyId": "0b17731e-5652-4473-ab42-1e0eddbc9d04" }
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>0b17731e-5652-4473-ab42-1e0eddbc9d04</CompanyId> <Description>sample string 3</Description> <Id>0ac96c09-92a6-4db8-8702-3bb57098bc28</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.