POST api/jobandnotice/CreateJobPostingVoucher

Request Information

URI Parameters

None.

Body Parameters

ExternalEmployerJobVoucherInputDTO
NameDescriptionTypeAdditional information
ExternalEmployerId

globally unique identifier

None.

RemainingPosts

integer

None.

IsPostValidUrl

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ExternalEmployerId": "695ac6fc-ba16-49fa-95e5-d4d581998a65",
  "RemainingPosts": 2,
  "IsPostValidUrl": true
}

application/xml, text/xml

Sample:
<ExternalEmployerJobVoucherInputDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.ViewModels">
  <ExternalEmployerId>695ac6fc-ba16-49fa-95e5-d4d581998a65</ExternalEmployerId>
  <IsPostValidUrl>true</IsPostValidUrl>
  <RemainingPosts>2</RemainingPosts>
</ExternalEmployerJobVoucherInputDTO>

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

Response Information

Resource Description

JobPostingVoucher
NameDescriptionTypeAdditional information
ID

globally unique identifier

None.

DateCreated

date

None.

PosterName

string

Required

String length: inclusive between 0 and 200

FirstPostDate

date

None.

LastPostDate

date

None.

RemainingPost

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": "da90fd55-abac-43b5-8535-c3b39f6a3bf3",
  "DateCreated": "2024-05-03T16:35:01.9288229+02:00",
  "PosterName": "sample string 3",
  "FirstPostDate": "2024-05-03T16:35:01.9288229+02:00",
  "LastPostDate": "2024-05-03T16:35:01.9288229+02:00",
  "RemainingPost": 4
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[API.Models.Discipline, API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[API.Models.Discipline, API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.