POST api/Job/PostJob

Request Information

URI Parameters

None.

Body Parameters

PostJobViewModel
NameDescriptionTypeAdditional information
JobId

integer

None.

JobTitle

string

Required

JobTypeId

integer

Required

TimeUnitId

integer

Required

WorkerTypeId

integer

Required

ExperienceLevelId

integer

Required

JobCategoryId

integer

Required

JobSubCategoryId

integer

Required

SkillRequiredForJobIds

string

Required

EstimateDuratoion

decimal number

Required

JobStartDate

date

Data type: Date

JobEndDate

date

None.

Description

string

None.

JobAttachmentsXML

string

None.

ClientId

string

None.

IsActive

boolean

None.

IsHiringClosed

boolean

None.

Min_PRF_Rate

decimal number

Required

Max_PRF_Rate

decimal number

Required

FixedRate

decimal number

Required

Locality_PRF

string

Required

InsertUpdateAttachmentsViewModel

InsertUpdateAttachmentsViewModel

None.

JobTypeList

Collection of SelectListItem

None.

JobCategoryList

Collection of SelectListItem

None.

JobSubCategoryList

Collection of SelectListItem

None.

AllJobSubCategoryList

Collection of JobSubCategoryViewModel

None.

JobAttachmentsList

Collection of JobAttachmentsViewModel

None.

SkillList

Collection of SkillViewModel

None.

WorkerTypeList

Collection of SelectListItem

None.

ExperienceLevelList

Collection of SelectListItem

None.

TimeUnits

Collection of SelectListItem

None.

CountriesList

Collection of SelectListItem

None.

attachments

Collection of HttpPostedFileBase

None.

Request Formats

application/json, text/json

Sample:
{
  "JobId": 1,
  "JobTitle": "sample string 1",
  "JobTypeId": 1,
  "TimeUnitId": 1,
  "WorkerTypeId": 1,
  "ExperienceLevelId": 1,
  "JobCategoryId": 1,
  "JobSubCategoryId": 1,
  "SkillRequiredForJobIds": "sample string 2",
  "EstimateDuratoion": 1.0,
  "JobStartDate": "2026-10-15T03:20:22.9088775-07:00",
  "JobEndDate": "2026-10-15T03:20:22.9088775-07:00",
  "Description": "sample string 3",
  "JobAttachmentsXML": "sample string 4",
  "ClientId": "sample string 5",
  "IsActive": true,
  "IsHiringClosed": true,
  "Min_PRF_Rate": 1.0,
  "Max_PRF_Rate": 1.0,
  "FixedRate": 1.0,
  "Locality_PRF": "sample string 8",
  "InsertUpdateAttachmentsViewModel": {
    "DeleteAttachmentIdsList": [
      1,
      2
    ],
    "InsertAttachmentsList": [
      {
        "JobAttachmentId": 1,
        "AttachmentName": "sample string 1",
        "AttachmentOriginalName": "sample string 2",
        "JobId": 1,
        "IsDeleted": true
      },
      {
        "JobAttachmentId": 1,
        "AttachmentName": "sample string 1",
        "AttachmentOriginalName": "sample string 2",
        "JobId": 1,
        "IsDeleted": true
      }
    ]
  },
  "JobTypeList": [
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    },
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    }
  ],
  "JobCategoryList": [
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    },
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    }
  ],
  "JobSubCategoryList": [
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    },
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    }
  ],
  "AllJobSubCategoryList": [
    {
      "JobSubCategoryId": 1,
      "JobCategoryId": 1,
      "SubCategoryName": "sample string 2",
      "IsSelected": true
    },
    {
      "JobSubCategoryId": 1,
      "JobCategoryId": 1,
      "SubCategoryName": "sample string 2",
      "IsSelected": true
    }
  ],
  "JobAttachmentsList": [
    {
      "JobAttachmentId": 1,
      "AttachmentName": "sample string 1",
      "AttachmentOriginalName": "sample string 2",
      "JobId": 1,
      "IsDeleted": true
    },
    {
      "JobAttachmentId": 1,
      "AttachmentName": "sample string 1",
      "AttachmentOriginalName": "sample string 2",
      "JobId": 1,
      "IsDeleted": true
    }
  ],
  "SkillList": [
    {
      "SkillId": 1,
      "SkillName": "sample string 2",
      "IsSelected": true
    },
    {
      "SkillId": 1,
      "SkillName": "sample string 2",
      "IsSelected": true
    }
  ],
  "WorkerTypeList": [
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    },
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    }
  ],
  "ExperienceLevelList": [
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    },
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    }
  ],
  "TimeUnits": [
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    },
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    }
  ],
  "CountriesList": [
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    },
    {
      "Disabled": true,
      "Group": {
        "Disabled": true,
        "Name": "sample string 2"
      },
      "Selected": true,
      "Text": "sample string 3",
      "Value": "sample string 4"
    }
  ],
  "attachments": null
}

application/xml, text/xml

Sample:
<PostJobViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PS.HireRocks.Model">
  <AllJobSubCategoryList>
    <JobSubCategoryViewModel>
      <IsSelected>true</IsSelected>
      <JobCategoryId>1</JobCategoryId>
      <JobSubCategoryId>1</JobSubCategoryId>
      <SubCategoryName>sample string 2</SubCategoryName>
    </JobSubCategoryViewModel>
    <JobSubCategoryViewModel>
      <IsSelected>true</IsSelected>
      <JobCategoryId>1</JobCategoryId>
      <JobSubCategoryId>1</JobSubCategoryId>
      <SubCategoryName>sample string 2</SubCategoryName>
    </JobSubCategoryViewModel>
  </AllJobSubCategoryList>
  <ClientId>sample string 5</ClientId>
  <CountriesList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
  </CountriesList>
  <Description>sample string 3</Description>
  <EstimateDuratoion>1</EstimateDuratoion>
  <ExperienceLevelId>1</ExperienceLevelId>
  <ExperienceLevelList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
  </ExperienceLevelList>
  <FixedRate>1</FixedRate>
  <InsertUpdateAttachmentsViewModel>
    <DeleteAttachmentIdsList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
    </DeleteAttachmentIdsList>
    <InsertAttachmentsList>
      <JobAttachmentsViewModel>
        <AttachmentName>sample string 1</AttachmentName>
        <AttachmentOriginalName>sample string 2</AttachmentOriginalName>
        <IsDeleted>true</IsDeleted>
        <JobAttachmentId>1</JobAttachmentId>
        <JobId>1</JobId>
      </JobAttachmentsViewModel>
      <JobAttachmentsViewModel>
        <AttachmentName>sample string 1</AttachmentName>
        <AttachmentOriginalName>sample string 2</AttachmentOriginalName>
        <IsDeleted>true</IsDeleted>
        <JobAttachmentId>1</JobAttachmentId>
        <JobId>1</JobId>
      </JobAttachmentsViewModel>
    </InsertAttachmentsList>
  </InsertUpdateAttachmentsViewModel>
  <IsActive>true</IsActive>
  <IsHiringClosed>true</IsHiringClosed>
  <JobAttachmentsList>
    <JobAttachmentsViewModel>
      <AttachmentName>sample string 1</AttachmentName>
      <AttachmentOriginalName>sample string 2</AttachmentOriginalName>
      <IsDeleted>true</IsDeleted>
      <JobAttachmentId>1</JobAttachmentId>
      <JobId>1</JobId>
    </JobAttachmentsViewModel>
    <JobAttachmentsViewModel>
      <AttachmentName>sample string 1</AttachmentName>
      <AttachmentOriginalName>sample string 2</AttachmentOriginalName>
      <IsDeleted>true</IsDeleted>
      <JobAttachmentId>1</JobAttachmentId>
      <JobId>1</JobId>
    </JobAttachmentsViewModel>
  </JobAttachmentsList>
  <JobAttachmentsXML>sample string 4</JobAttachmentsXML>
  <JobCategoryId>1</JobCategoryId>
  <JobCategoryList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
  </JobCategoryList>
  <JobEndDate>2026-10-15T03:20:22.9088775-07:00</JobEndDate>
  <JobId>1</JobId>
  <JobStartDate>2026-10-15T03:20:22.9088775-07:00</JobStartDate>
  <JobSubCategoryId>1</JobSubCategoryId>
  <JobSubCategoryList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
  </JobSubCategoryList>
  <JobTitle>sample string 1</JobTitle>
  <JobTypeId>1</JobTypeId>
  <JobTypeList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
  </JobTypeList>
  <Locality_PRF>sample string 8</Locality_PRF>
  <Max_PRF_Rate>1</Max_PRF_Rate>
  <Min_PRF_Rate>1</Min_PRF_Rate>
  <SkillList>
    <SkillViewModel>
      <IsSelected>true</IsSelected>
      <SkillId>1</SkillId>
      <SkillName>sample string 2</SkillName>
    </SkillViewModel>
    <SkillViewModel>
      <IsSelected>true</IsSelected>
      <SkillId>1</SkillId>
      <SkillName>sample string 2</SkillName>
    </SkillViewModel>
  </SkillList>
  <SkillRequiredForJobIds>sample string 2</SkillRequiredForJobIds>
  <TimeUnitId>1</TimeUnitId>
  <TimeUnits xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
  </TimeUnits>
  <WorkerTypeId>1</WorkerTypeId>
  <WorkerTypeList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
  </WorkerTypeList>
  <attachments xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" />
</PostJobViewModel>

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

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />