POST api/Season/CreateSeason

Request Information

URI Parameters

None.

Body Parameters

SeasonDTO
NameDescriptionTypeAdditional information
Season

Season

None.

TrainingItems

Collection of TrainingItem

None.

DeleteUploadedImage

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Season": {
    "Name": "sample string 1",
    "SeasonStatus": 0,
    "Afdeling": 0,
    "ImageUrl": "sample string 2",
    "SeasonImage": {
      "Id": 1,
      "Guid": "38693d13-2dfa-41e5-bd0b-ccd39bfd0a15",
      "RawImage": "QEA=",
      "FileType": "sample string 2",
      "FileName": "sample string 3",
      "Ratio": 4.1,
      "UploadedDate": "2019-10-15T06:15:36.7474541+02:00",
      "ImageUrl": "sample string 6",
      "Afdeling": 0,
      "Type": 0,
      "Title": "sample string 7",
      "Description": "sample string 8",
      "FrontText": "sample string 9",
      "FrontTextColor": "sample string 10",
      "FrontBackgroundColor": "sample string 11",
      "ShowOnFrontPage": true
    },
    "TrainingItems": [
      {
        "TeamName": "sample string 1",
        "TrainingTime": "sample string 2",
        "Trainer": "sample string 3",
        "TrainingDay": "sample string 4",
        "Afdeling": 0,
        "Court": "sample string 5",
        "Note": "sample string 6",
        "Year": "sample string 7",
        "ContactInfo": "sample string 8",
        "SeasonId": 1,
        "SortId": 9,
        "Id": 10,
        "Created": "2019-10-15T06:15:36.7474541+02:00",
        "CreatedBy": "sample string 11",
        "Modified": "2019-10-15T06:15:36.7474541+02:00",
        "ModifiedBy": "sample string 12"
      },
      {
        "TeamName": "sample string 1",
        "TrainingTime": "sample string 2",
        "Trainer": "sample string 3",
        "TrainingDay": "sample string 4",
        "Afdeling": 0,
        "Court": "sample string 5",
        "Note": "sample string 6",
        "Year": "sample string 7",
        "ContactInfo": "sample string 8",
        "SeasonId": 1,
        "SortId": 9,
        "Id": 10,
        "Created": "2019-10-15T06:15:36.7474541+02:00",
        "CreatedBy": "sample string 11",
        "Modified": "2019-10-15T06:15:36.7474541+02:00",
        "ModifiedBy": "sample string 12"
      }
    ],
    "Id": 3,
    "Created": "2019-10-15T06:15:36.7474541+02:00",
    "CreatedBy": "sample string 4",
    "Modified": "2019-10-15T06:15:36.7474541+02:00",
    "ModifiedBy": "sample string 5"
  },
  "TrainingItems": [
    {
      "TeamName": "sample string 1",
      "TrainingTime": "sample string 2",
      "Trainer": "sample string 3",
      "TrainingDay": "sample string 4",
      "Afdeling": 0,
      "Court": "sample string 5",
      "Note": "sample string 6",
      "Year": "sample string 7",
      "ContactInfo": "sample string 8",
      "SeasonId": 1,
      "SortId": 9,
      "Id": 10,
      "Created": "2019-10-15T06:15:36.7474541+02:00",
      "CreatedBy": "sample string 11",
      "Modified": "2019-10-15T06:15:36.7474541+02:00",
      "ModifiedBy": "sample string 12"
    },
    {
      "TeamName": "sample string 1",
      "TrainingTime": "sample string 2",
      "Trainer": "sample string 3",
      "TrainingDay": "sample string 4",
      "Afdeling": 0,
      "Court": "sample string 5",
      "Note": "sample string 6",
      "Year": "sample string 7",
      "ContactInfo": "sample string 8",
      "SeasonId": 1,
      "SortId": 9,
      "Id": 10,
      "Created": "2019-10-15T06:15:36.7474541+02:00",
      "CreatedBy": "sample string 11",
      "Modified": "2019-10-15T06:15:36.7474541+02:00",
      "ModifiedBy": "sample string 12"
    }
  ],
  "DeleteUploadedImage": true
}

application/xml, text/xml

Sample:
<SeasonDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model.DTOClasses">
  <DeleteUploadedImage>true</DeleteUploadedImage>
  <Season xmlns:d2p1="http://schemas.datacontract.org/2004/07/Model">
    <Created xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2019-10-15T06:15:36.7474541+02:00</Created>
    <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 4</CreatedBy>
    <Id xmlns="http://schemas.datacontract.org/2004/07/Model.Base">3</Id>
    <Modified xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2019-10-15T06:15:36.7474541+02:00</Modified>
    <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 5</ModifiedBy>
    <d2p1:Afdeling>Håndbold</d2p1:Afdeling>
    <d2p1:ImageUrl>sample string 2</d2p1:ImageUrl>
    <d2p1:Name>sample string 1</d2p1:Name>
    <d2p1:SeasonImage>
      <d2p1:Afdeling>Håndbold</d2p1:Afdeling>
      <d2p1:Description>sample string 8</d2p1:Description>
      <d2p1:FileName>sample string 3</d2p1:FileName>
      <d2p1:FileType>sample string 2</d2p1:FileType>
      <d2p1:FrontBackgroundColor>sample string 11</d2p1:FrontBackgroundColor>
      <d2p1:FrontText>sample string 9</d2p1:FrontText>
      <d2p1:FrontTextColor>sample string 10</d2p1:FrontTextColor>
      <d2p1:Guid>38693d13-2dfa-41e5-bd0b-ccd39bfd0a15</d2p1:Guid>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:ImageUrl>sample string 6</d2p1:ImageUrl>
      <d2p1:Ratio>4.1</d2p1:Ratio>
      <d2p1:RawImage>QEA=</d2p1:RawImage>
      <d2p1:ShowOnFrontPage>true</d2p1:ShowOnFrontPage>
      <d2p1:Title>sample string 7</d2p1:Title>
      <d2p1:Type>News</d2p1:Type>
      <d2p1:UploadedDate>2019-10-15T06:15:36.7474541+02:00</d2p1:UploadedDate>
    </d2p1:SeasonImage>
    <d2p1:SeasonStatus>Aktiv</d2p1:SeasonStatus>
    <d2p1:TrainingItems>
      <d2p1:TrainingItem>
        <Created xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2019-10-15T06:15:36.7474541+02:00</Created>
        <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 11</CreatedBy>
        <Id xmlns="http://schemas.datacontract.org/2004/07/Model.Base">10</Id>
        <Modified xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2019-10-15T06:15:36.7474541+02:00</Modified>
        <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 12</ModifiedBy>
        <d2p1:Afdeling>Håndbold</d2p1:Afdeling>
        <d2p1:ContactInfo>sample string 8</d2p1:ContactInfo>
        <d2p1:Court>sample string 5</d2p1:Court>
        <d2p1:Note>sample string 6</d2p1:Note>
        <d2p1:SeasonId>1</d2p1:SeasonId>
        <d2p1:SortId>9</d2p1:SortId>
        <d2p1:TeamName>sample string 1</d2p1:TeamName>
        <d2p1:Trainer>sample string 3</d2p1:Trainer>
        <d2p1:TrainingDay>sample string 4</d2p1:TrainingDay>
        <d2p1:TrainingTime>sample string 2</d2p1:TrainingTime>
        <d2p1:Year>sample string 7</d2p1:Year>
      </d2p1:TrainingItem>
      <d2p1:TrainingItem>
        <Created xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2019-10-15T06:15:36.7474541+02:00</Created>
        <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 11</CreatedBy>
        <Id xmlns="http://schemas.datacontract.org/2004/07/Model.Base">10</Id>
        <Modified xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2019-10-15T06:15:36.7474541+02:00</Modified>
        <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 12</ModifiedBy>
        <d2p1:Afdeling>Håndbold</d2p1:Afdeling>
        <d2p1:ContactInfo>sample string 8</d2p1:ContactInfo>
        <d2p1:Court>sample string 5</d2p1:Court>
        <d2p1:Note>sample string 6</d2p1:Note>
        <d2p1:SeasonId>1</d2p1:SeasonId>
        <d2p1:SortId>9</d2p1:SortId>
        <d2p1:TeamName>sample string 1</d2p1:TeamName>
        <d2p1:Trainer>sample string 3</d2p1:Trainer>
        <d2p1:TrainingDay>sample string 4</d2p1:TrainingDay>
        <d2p1:TrainingTime>sample string 2</d2p1:TrainingTime>
        <d2p1:Year>sample string 7</d2p1:Year>
      </d2p1:TrainingItem>
    </d2p1:TrainingItems>
  </Season>
  <TrainingItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/Model">
    <d2p1:TrainingItem>
      <Created xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2019-10-15T06:15:36.7474541+02:00</Created>
      <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 11</CreatedBy>
      <Id xmlns="http://schemas.datacontract.org/2004/07/Model.Base">10</Id>
      <Modified xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2019-10-15T06:15:36.7474541+02:00</Modified>
      <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 12</ModifiedBy>
      <d2p1:Afdeling>Håndbold</d2p1:Afdeling>
      <d2p1:ContactInfo>sample string 8</d2p1:ContactInfo>
      <d2p1:Court>sample string 5</d2p1:Court>
      <d2p1:Note>sample string 6</d2p1:Note>
      <d2p1:SeasonId>1</d2p1:SeasonId>
      <d2p1:SortId>9</d2p1:SortId>
      <d2p1:TeamName>sample string 1</d2p1:TeamName>
      <d2p1:Trainer>sample string 3</d2p1:Trainer>
      <d2p1:TrainingDay>sample string 4</d2p1:TrainingDay>
      <d2p1:TrainingTime>sample string 2</d2p1:TrainingTime>
      <d2p1:Year>sample string 7</d2p1:Year>
    </d2p1:TrainingItem>
    <d2p1:TrainingItem>
      <Created xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2019-10-15T06:15:36.7474541+02:00</Created>
      <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 11</CreatedBy>
      <Id xmlns="http://schemas.datacontract.org/2004/07/Model.Base">10</Id>
      <Modified xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2019-10-15T06:15:36.7474541+02:00</Modified>
      <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 12</ModifiedBy>
      <d2p1:Afdeling>Håndbold</d2p1:Afdeling>
      <d2p1:ContactInfo>sample string 8</d2p1:ContactInfo>
      <d2p1:Court>sample string 5</d2p1:Court>
      <d2p1:Note>sample string 6</d2p1:Note>
      <d2p1:SeasonId>1</d2p1:SeasonId>
      <d2p1:SortId>9</d2p1:SortId>
      <d2p1:TeamName>sample string 1</d2p1:TeamName>
      <d2p1:Trainer>sample string 3</d2p1:Trainer>
      <d2p1:TrainingDay>sample string 4</d2p1:TrainingDay>
      <d2p1:TrainingTime>sample string 2</d2p1:TrainingTime>
      <d2p1:Year>sample string 7</d2p1:Year>
    </d2p1:TrainingItem>
  </TrainingItems>
</SeasonDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceResultOfBoolean
NameDescriptionTypeAdditional information
Success

boolean

None.

ErrorMessage

string

None.

SuccessMessage

string

None.

Result

boolean

None.

StatusCode

HttpStatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "ErrorMessage": "sample string 2",
  "SuccessMessage": "sample string 3",
  "Result": true,
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<ServiceResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result>true</Result>
  <StatusCode>Continue</StatusCode>
  <Success>true</Success>
  <SuccessMessage>sample string 3</SuccessMessage>
</ServiceResultOfboolean>