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": "ab8054bf-5d0f-4ac9-b6cc-c179ce37cc7a",
  "Title": "sample string 2",
  "Description": "sample string 3",
  "DatePosted": "2024-05-14T01:27:17.9802129+02:00",
  "ImportantNote": "sample string 4",
  "Link": "sample string 5",
  "ContactName": "sample string 6",
  "ContactEmail": "sample string 7",
  "DisciplineID": "06f7cbc0-b33b-4307-a05e-6e07899f67a7",
  "CategoryID": "1205170c-25a5-4027-9600-15acd53fdd7f",
  "Category": {
    "CategoryID": "ade47e58-dbf0-445a-9dae-04b524c514a0",
    "CategoryName": "sample string 2"
  },
  "Disciplines": [
    {
      "ID": "09b9fa1e-ed8d-4b5f-8742-f23ec20f6524",
      "Name": "sample string 2"
    },
    {
      "ID": "09b9fa1e-ed8d-4b5f-8742-f23ec20f6524",
      "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.