POST api/jobandnotice/updateexistingnotice

Request Information

URI Parameters

None.

Body Parameters

Notice
NameDescriptionTypeAdditional information
ID

globally unique identifier

None.

Title

string

String length: inclusive between 0 and 100

Description

string

None.

DatePosted

date

None.

ImportantNote

string

String length: inclusive between 0 and 200

Link

string

String length: inclusive between 0 and 200

ContactName

string

String length: inclusive between 0 and 50

ContactEmail

string

String length: inclusive between 0 and 100

DisciplineID

globally unique identifier

None.

CategoryID

globally unique identifier

None.

Category

Category

None.

Disciplines

Collection of Discipline

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "a1a169ac-cfcd-40e4-9a50-65654f6d3173",
  "Title": "sample string 2",
  "Description": "sample string 3",
  "DatePosted": "2024-05-03T13:15:45.6746764+02:00",
  "ImportantNote": "sample string 4",
  "Link": "sample string 5",
  "ContactName": "sample string 6",
  "ContactEmail": "sample string 7",
  "DisciplineID": "b11cd17e-0fbe-4b8f-8029-a8b5591eb249",
  "CategoryID": "be807e04-bdcf-4aee-8420-6a92589c8269",
  "Category": {
    "CategoryID": "3dc8ef30-ae23-482d-8118-616833fb2369",
    "CategoryName": "sample string 2"
  },
  "Disciplines": [
    {
      "ID": "ae122ad0-eecc-49d7-b5c6-df705ad387c5",
      "Name": "sample string 2"
    },
    {
      "ID": "ae122ad0-eecc-49d7-b5c6-df705ad387c5",
      "Name": "sample string 2"
    }
  ]
}

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.Notice, 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.Notice, API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.