POST Api/Job
Creates a new job and returns the newly job ID.
Request Information
URI Parameters
None.
Body Parameters
The job parameter with data for the new job.
JobParameterName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
Status | JobStatus |
None. |
|
CompanyId | integer |
None. |
|
UserId | integer |
None. |
|
ContactId | integer |
None. |
|
JobProfile | string |
None. |
|
JobProfileAssignedOnApply | boolean |
None. |
|
CareerLevel | string |
None. |
|
OccupationType | string |
None. |
|
SalaryFrom | decimal number |
None. |
|
SalaryTo | decimal number |
None. |
|
CustomFields | Collection of CustomFieldParameter |
None. |
|
JobTexts | Collection of JobTextParameter |
None. |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "Status": 0, "CompanyId": 2, "UserId": 3, "ContactId": 4, "JobProfile": "sample string 5", "JobProfileAssignedOnApply": true, "CareerLevel": "sample string 6", "OccupationType": "sample string 7", "SalaryFrom": 1.1, "SalaryTo": 1.1, "CustomFields": [ { "Name": "sample string 1", "Value": "sample string 2", "Values": [ "sample string 1", "sample string 2" ] }, { "Name": "sample string 1", "Value": "sample string 2", "Values": [ "sample string 1", "sample string 2" ] } ], "JobTexts": [ { "Culture": "sample string 1", "TemplateId": 2, "QuestionnaireId": 1, "Title": "sample string 3", "SubTitle": "sample string 4", "Location": "sample string 5", "SocialMedia": { "Description": "sample string 1" }, "Introduction": "sample string 6", "Description": "sample string 7", "Requirements": "sample string 8", "Offer": "sample string 9", "InternalInformation": "sample string 10" }, { "Culture": "sample string 1", "TemplateId": 2, "QuestionnaireId": 1, "Title": "sample string 3", "SubTitle": "sample string 4", "Location": "sample string 5", "SocialMedia": { "Description": "sample string 1" }, "Introduction": "sample string 6", "Description": "sample string 7", "Requirements": "sample string 8", "Offer": "sample string 9", "InternalInformation": "sample string 10" } ] }
application/xml, text/xml
Sample:
<JobParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eRecruiter.Api.Parameters"> <CareerLevel>sample string 6</CareerLevel> <CompanyId>2</CompanyId> <ContactId>4</ContactId> <CustomFields> <CustomFieldParameter> <Name>sample string 1</Name> <Value>sample string 2</Value> <Values xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </Values> </CustomFieldParameter> <CustomFieldParameter> <Name>sample string 1</Name> <Value>sample string 2</Value> <Values xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </Values> </CustomFieldParameter> </CustomFields> <JobProfile>sample string 5</JobProfile> <JobProfileAssignedOnApply>true</JobProfileAssignedOnApply> <JobTexts> <JobTextParameter> <Culture>sample string 1</Culture> <Description>sample string 7</Description> <InternalInformation>sample string 10</InternalInformation> <Introduction>sample string 6</Introduction> <Location>sample string 5</Location> <Offer>sample string 9</Offer> <QuestionnaireId>1</QuestionnaireId> <Requirements>sample string 8</Requirements> <SocialMedia> <Description>sample string 1</Description> </SocialMedia> <SubTitle>sample string 4</SubTitle> <TemplateId>2</TemplateId> <Title>sample string 3</Title> </JobTextParameter> <JobTextParameter> <Culture>sample string 1</Culture> <Description>sample string 7</Description> <InternalInformation>sample string 10</InternalInformation> <Introduction>sample string 6</Introduction> <Location>sample string 5</Location> <Offer>sample string 9</Offer> <QuestionnaireId>1</QuestionnaireId> <Requirements>sample string 8</Requirements> <SocialMedia> <Description>sample string 1</Description> </SocialMedia> <SubTitle>sample string 4</SubTitle> <TemplateId>2</TemplateId> <Title>sample string 3</Title> </JobTextParameter> </JobTexts> <Name>sample string 1</Name> <OccupationType>sample string 7</OccupationType> <SalaryFrom>1.1</SalaryFrom> <SalaryTo>1.1</SalaryTo> <Status>Open</Status> <UserId>3</UserId> </JobParameter>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
The newly ID
JobCreationResponseName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1 }
application/xml, text/xml
Sample:
<JobCreationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eRecruiter.Api.Responses"> <Id>1</Id> </JobCreationResponse>