POST api/jobandnotice/postnewjob

Request Information

URI Parameters

None.

Body Parameters

JobInputViewModel
NameDescriptionTypeAdditional information
ID

globally unique identifier

None.

Title

string

None.

Description

string

None.

DatePosted

date

None.

DateDisplayUntil

date

None.

Location

string

None.

Reference

string

None.

Company

string

None.

ContactName

string

None.

ContactNumber

string

None.

ContactEmail

string

None.

RateSalaryId

globally unique identifier

None.

UserID

globally unique identifier

None.

JobTypeId

globally unique identifier

None.

Disciplines

Collection of globally unique identifier

None.

IsJobFromInternalEmployer

boolean

None.

VoucherId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "b1e44adf-a78c-4e99-b4ed-721bbf5237d0",
  "Title": "sample string 2",
  "Description": "sample string 3",
  "DatePosted": "2024-05-03T12:14:00.7776169+02:00",
  "DateDisplayUntil": "2024-05-03T12:14:00.7776169+02:00",
  "Location": "sample string 6",
  "Reference": "sample string 7",
  "Company": "sample string 8",
  "ContactName": "sample string 9",
  "ContactNumber": "sample string 10",
  "ContactEmail": "sample string 11",
  "RateSalaryId": "77e0efec-1056-4f78-96ba-40ee6f37487a",
  "UserID": "a82bb46c-d5b7-49dd-a49d-60cb450e77ea",
  "JobTypeId": "05e8c629-cfa4-4dc1-9faf-7f043d8efc6f",
  "Disciplines": [
    "96c2befc-15b9-4494-8476-310b30d92df6",
    "6b93ae7f-6447-4bd8-a537-ddeef345f729"
  ],
  "IsJobFromInternalEmployer": true,
  "VoucherId": "c5610284-2577-4e22-aa5f-d8f339c7f9c7"
}

application/xml, text/xml

Sample:
<JobInputViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.ViewModels">
  <Company>sample string 8</Company>
  <ContactEmail>sample string 11</ContactEmail>
  <ContactName>sample string 9</ContactName>
  <ContactNumber>sample string 10</ContactNumber>
  <DateDisplayUntil>2024-05-03T12:14:00.7776169+02:00</DateDisplayUntil>
  <DatePosted>2024-05-03T12:14:00.7776169+02:00</DatePosted>
  <Description>sample string 3</Description>
  <Disciplines xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>96c2befc-15b9-4494-8476-310b30d92df6</d2p1:guid>
    <d2p1:guid>6b93ae7f-6447-4bd8-a537-ddeef345f729</d2p1:guid>
  </Disciplines>
  <ID>b1e44adf-a78c-4e99-b4ed-721bbf5237d0</ID>
  <IsJobFromInternalEmployer>true</IsJobFromInternalEmployer>
  <JobTypeId>05e8c629-cfa4-4dc1-9faf-7f043d8efc6f</JobTypeId>
  <Location>sample string 6</Location>
  <RateSalaryId>77e0efec-1056-4f78-96ba-40ee6f37487a</RateSalaryId>
  <Reference>sample string 7</Reference>
  <Title>sample string 2</Title>
  <UserID>a82bb46c-d5b7-49dd-a49d-60cb450e77ea</UserID>
  <VoucherId>c5610284-2577-4e22-aa5f-d8f339c7f9c7</VoucherId>
</JobInputViewModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.