POST api/OrganizationPlan

Request Information

URI Parameters

None.

Body Parameters

OrganizationPlan
NameDescriptionTypeAdditional information
RecordNo

integer

None.

OrganizationFK

integer

None.

Organization

Organization

None.

OrganizationPlanTypeFK

integer

None.

OrganizationPlanType

OrganizationPlanType

None.

CreatedBy

integer

None.

CancelledBy

integer

None.

CancellationReasonFK

integer

None.

CancellationReason

CancellationReason

None.

CancellationReasonNote

string

None.

CancellationDate

date

None.

Amount

decimal number

None.

StartDate

date

None.

EndDate

date

None.

CreatedOn

date

None.

UpdatedOn

date

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "RecordNo": 1,
  "OrganizationFK": 2,
  "Organization": {
    "RecordNo": 1,
    "OrganizationName": "sample string 2",
    "ProjectFK": 1,
    "Projects": {
      "RecordNo": 1,
      "ProjectName": "sample string 2",
      "UpdatedOn": "2024-04-19T20:12:17.1814604+00:00",
      "IsDeleted": true,
      "TestTypes": [
        {
          "RecordNo": 1,
          "TestTypeName": "sample string 2",
          "SortOrder": 3,
          "IsStudent": true,
          "ProjectFK": 1,
          "UpdatedOn": "2024-04-19T20:12:17.1814604+00:00",
          "IsDeleted": true
        },
        {
          "RecordNo": 1,
          "TestTypeName": "sample string 2",
          "SortOrder": 3,
          "IsStudent": true,
          "ProjectFK": 1,
          "UpdatedOn": "2024-04-19T20:12:17.1814604+00:00",
          "IsDeleted": true
        }
      ]
    },
    "CreatedOn": "2024-04-19T20:12:17.1814604+00:00",
    "UpdatedOn": "2024-04-19T20:12:17.1814604+00:00",
    "IsDeleted": true,
    "organizationPlans": []
  },
  "OrganizationPlanTypeFK": 3,
  "OrganizationPlanType": {
    "RecordNo": 1,
    "OrganizationPlanName": "sample string 2",
    "MaxCountStudent": 3,
    "MinCountStudent": 4,
    "Cost": 5.0,
    "ExpireDays": 6,
    "CreatedOn": "2024-04-19T20:12:17.1814604+00:00",
    "UpdatedOn": "2024-04-19T20:12:17.1814604+00:00",
    "IsDeleted": true
  },
  "CreatedBy": 4,
  "CancelledBy": 1,
  "CancellationReasonFK": 1,
  "CancellationReason": {
    "RecordNo": 1,
    "CancellationReasonName": "sample string 2",
    "IsOrgnizationPlan": true,
    "IsUserPlan": true,
    "CreatedOn": "2024-04-19T20:12:17.1814604+00:00",
    "UpdatedOn": "2024-04-19T20:12:17.1814604+00:00",
    "IsDeleted": true
  },
  "CancellationReasonNote": "sample string 5",
  "CancellationDate": "2024-04-19T20:12:17.1814604+00:00",
  "Amount": 6.0,
  "StartDate": "2024-04-19T20:12:17.1814604+00:00",
  "EndDate": "2024-04-19T20:12:17.1814604+00:00",
  "CreatedOn": "2024-04-19T20:12:17.1814604+00:00",
  "UpdatedOn": "2024-04-19T20:12:17.1814604+00:00",
  "IsDeleted": true
}

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 'TrishAcademy.Models.Projects' 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 'TrishAcademy.Models.Projects' 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 'OrganizationPlan'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.