PUT api/v1/adverts
Updates an advert, dependant upon the advert id. If any properties are left out, they will stay as they were.
Request Information
URI Parameters
None.
Body Parameters
Advert| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Id of the advert. This is only needed for updating an advert |
integer |
None. |
| ProfessionGroup |
Id of the profession group |
integer |
Required |
| Title |
Title of the advert |
string |
Required String length: inclusive between 0 and 255 |
| Number |
Internal ad number, if any |
string |
String length: inclusive between 0 and 255 |
| PublishDate |
Date for when the advert is to be public visible |
date |
None. |
| ApplyLink |
Link to internal application form |
string |
None. |
| VideoLink |
Link to video (Youtube, Vimeo, 23video or mp4) to be shown in advert |
string |
None. |
| DeadlineDate |
Date for when the applicants no longer can submit applications |
date |
Required |
| StartDate |
Date of when the advertised job starts. If left empty start is assumed to be A.S.A.P. |
date |
None. |
| DurationOfHiring |
Specify end of period if the employment is time-limited |
string |
String length: inclusive between 0 and 255 |
| Locations |
Id's of locations, must be at least one |
Collection of integer |
Required |
| Skills |
Id's of skills. If the ProfessionGroup has DisplaySkills set to true, at least one is required |
Collection of integer |
None. |
| Professions |
Id's of professions. If the ProfessionGroup has DisplayProfessions set to true, at least one is required |
Collection of integer |
None. |
| Summary |
Snippet of the advert content |
string |
String length: inclusive between 0 and 255 |
| Content |
The content of the advert, can contain HTML |
string |
Required |
| WeeklyWorkingHours |
Id of the weekly working hours. |
integer |
Required |
| JobType |
Id of the job type |
integer |
Required |
| Employer |
Information about the employer |
Employer |
Required |
| NumberOfPositions |
For intro positions, number of positions |
integer |
None. |
| EskNumbers |
For intro positions, minimum 1 ESK number |
Collection of string |
None. |
Request Formats
application/json, text/json
{
"Id": 1,
"ProfessionGroup": 2,
"Title": "sample string 3",
"Number": "sample string 4",
"PublishDate": "2025-12-17T11:56:53.9078306+00:00",
"ApplyLink": "sample string 6",
"VideoLink": "sample string 7",
"DeadlineDate": "2025-12-17T11:56:53.9078306+00:00",
"StartDate": "2025-12-17T11:56:53.9078306+00:00",
"DurationOfHiring": "sample string 9",
"Locations": [
1,
2
],
"Skills": [
1,
2
],
"Professions": [
1,
2
],
"Summary": "sample string 10",
"Content": "sample string 11",
"WeeklyWorkingHours": 12,
"JobType": 13,
"Employer": {
"Name": "sample string 1",
"CVR": "sample string 2",
"PNumber": "sample string 3",
"ContactPersonFirstName": "sample string 4",
"ContactPersonLastName": "sample string 5",
"Address": "sample string 6",
"Zip": "sample string 7",
"City": "sample string 8",
"Email": "sample string 9",
"Phone": "sample string 10",
"Website": "sample string 11"
},
"NumberOfPositions": 14,
"EskNumbers": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
<Advert xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sundhedsjob.Api.Models">
<ApplyLink>sample string 6</ApplyLink>
<Content>sample string 11</Content>
<DeadlineDate>2025-12-17T11:56:53.9078306+00:00</DeadlineDate>
<DurationOfHiring>sample string 9</DurationOfHiring>
<Employer>
<Address>sample string 6</Address>
<CVR>sample string 2</CVR>
<City>sample string 8</City>
<ContactPersonFirstName>sample string 4</ContactPersonFirstName>
<ContactPersonLastName>sample string 5</ContactPersonLastName>
<Email>sample string 9</Email>
<Name>sample string 1</Name>
<PNumber>sample string 3</PNumber>
<Phone>sample string 10</Phone>
<Website>sample string 11</Website>
<Zip>sample string 7</Zip>
</Employer>
<EskNumbers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</EskNumbers>
<Id>1</Id>
<JobType>13</JobType>
<Locations xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:long>1</d2p1:long>
<d2p1:long>2</d2p1:long>
</Locations>
<Number>sample string 4</Number>
<NumberOfPositions>14</NumberOfPositions>
<ProfessionGroup>2</ProfessionGroup>
<Professions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:long>1</d2p1:long>
<d2p1:long>2</d2p1:long>
</Professions>
<PublishDate>2025-12-17T11:56:53.9078306+00:00</PublishDate>
<Skills xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:long>1</d2p1:long>
<d2p1:long>2</d2p1:long>
</Skills>
<StartDate>2025-12-17T11:56:53.9078306+00:00</StartDate>
<Summary>sample string 10</Summary>
<Title>sample string 3</Title>
<VideoLink>sample string 7</VideoLink>
<WeeklyWorkingHours>12</WeeklyWorkingHours>
</Advert>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |