POST api/Program

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
viewModel
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "ProgramTypes": {
    "$id": "2",
    "$values": [
      {
        "$id": "3",
        "Id": 1,
        "CodeDesc": "sample string 2",
        "AlternativeDesc": "sample string 3",
        "SystemCode": "sample string 4",
        "SequenceNo": 1
      },
      {
        "$ref": "3"
      },
      {
        "$ref": "3"
      }
    ]
  },
  "Teams": {
    "$id": "4",
    "$values": [
      {
        "$id": "5",
        "Id": "sample string 1",
        "Text": "sample string 2",
        "OtherText": "sample string 3",
        "OtherData": {
          "$id": "6"
        }
      },
      {
        "$ref": "5"
      },
      {
        "$ref": "5"
      }
    ]
  },
  "SitecoreContents": {
    "$id": "7",
    "$values": [
      {
        "$id": "8",
        "RowId": 1,
        "SitecoreContentId": 2,
        "ItemId": "5fa39356-36d8-4364-8092-3435e2e7be4a",
        "ItemTypeLovId": 4,
        "ItemType": "sample string 5",
        "ItemCode": "sample string 6",
        "Content": "sample string 7",
        "StageLovId": 1,
        "Stage": "sample string 8",
        "StepConfigId": 1,
        "Step": "sample string 9",
        "FieldName": "sample string 10",
        "ContentData": "QEBA",
        "PK": "sample string 7"
      },
      {
        "$ref": "8"
      },
      {
        "$ref": "8"
      }
    ]
  },
  "ProjectRequest": {
    "$id": "9",
    "Filters": {
      "$id": "10",
      "$values": [
        {
          "$id": "11",
          "<Field>k__BackingField": "sample string 1",
          "<Operator>k__BackingField": "sample string 2",
          "<Value>k__BackingField": {
            "$id": "12"
          },
          "<Logic>k__BackingField": "sample string 4",
          "<Filters>k__BackingField": {
            "$id": "13",
            "$values": [
              {
                "$ref": "11"
              },
              {
                "$ref": "11"
              },
              {
                "$ref": "11"
              }
            ]
          }
        },
        {
          "$ref": "11"
        },
        {
          "$ref": "11"
        }
      ]
    },
    "Page": 1,
    "PageSize": 2,
    "Sort": {
      "$id": "14",
      "Field": "sample string 1",
      "Dir": "sample string 2",
      "SecondaryField": "sample string 3",
      "SecondaryDir": "sample string 4",
      "ThirdField": "sample string 5",
      "ThirdDir": "sample string 6"
    },
    "PreviousPageSize": 3
  },
  "ApplicationRequest": {
    "$ref": "9"
  },
  "StakeholdersRequest": {
    "$ref": "9"
  },
  "CommunicationHistoryRequest": {
    "$ref": "9"
  },
  "CommunicationRequest": {
    "$ref": "9"
  },
  "NoteRequest": {
    "$ref": "9"
  },
  "SavedProjectIds": {
    "$id": "15",
    "$values": [
      1,
      2,
      3
    ]
  },
  "TotalCostOfWorks": 1,
  "Entity": {
    "$id": "16",
    "PK": 1,
    "StartDateNullable": "2024-11-29T01:42:20.4486814+11:00",
    "SavedEndDate": "2024-11-29T01:42:20.4486814+11:00"
  },
  "Validation": {
    "$id": "17",
    "SuccessOutput": {
      "$id": "18"
    },
    "Success": true,
    "ErrorMessages": null,
    "WarningMessages": {
      "$id": "19",
      "$values": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ]
    },
    "InfoMessages": {
      "$id": "20",
      "$values": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ]
    },
    "DatabaseErrorMessage": "sample string 3",
    "SuccessMessage": "sample string 4",
    "RelatedKeyId": "sample string 5"
  },
  "PageAccess": {
    "$id": "21",
    "PageCode": "sample string 1",
    "StepAccesses": {
      "$id": "22",
      "$values": [
        {
          "$id": "23",
          "StageCode": "sample string 1",
          "StepCode": "sample string 2"
        },
        {
          "$ref": "23"
        },
        {
          "$ref": "23"
        }
      ]
    },
    "Positions": {
      "$id": "24",
      "$values": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ]
    }
  },
  "UserRole": 0
}

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

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Validation": {
    "$id": "2",
    "SuccessOutput": {
      "$id": "3"
    },
    "Success": true,
    "ErrorMessages": null,
    "WarningMessages": {
      "$id": "4",
      "$values": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ]
    },
    "InfoMessages": {
      "$id": "5",
      "$values": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ]
    },
    "DatabaseErrorMessage": "sample string 3",
    "SuccessMessage": "sample string 4",
    "RelatedKeyId": "sample string 5"
  },
  "PageAccess": {
    "$id": "6",
    "PageCode": "sample string 1",
    "StepAccesses": {
      "$id": "7",
      "$values": [
        {
          "$id": "8",
          "StageCode": "sample string 1",
          "StepCode": "sample string 2"
        },
        {
          "$ref": "8"
        },
        {
          "$ref": "8"
        }
      ]
    },
    "Positions": {
      "$id": "9",
      "$values": [
        "sample string 1",
        "sample string 2",
        "sample string 3"
      ]
    }
  },
  "UserRole": 0
}