POST api/PracticeSessionDetails

Request Information

URI Parameters

None.

Body Parameters

PracticeSessionDetails
NameDescriptionTypeAdditional information
RecordNo

integer

None.

OrganizationMemberFK

integer

None.

OrganizationMember

OrganizationMember

None.

PracticeSessionFK

integer

None.

PracticeSession

PracticeSession

None.

CreatedOn

date

None.

UpdatedOn

date

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "RecordNo": 1,
  "OrganizationMemberFK": 2,
  "OrganizationMember": {
    "RecordNo": 1,
    "AspNetUserFK": 1,
    "OrganizationMemberTypeFK": 2,
    "OrganizationMemberType": {
      "RecordNo": 1,
      "OrganizationMemberTypeName": "sample string 2",
      "CreatedOn": "2024-12-22T04:50:39.3021506+00:00",
      "UpdatedOn": "2024-12-22T04:50:39.3021506+00:00",
      "IsDeleted": true
    },
    "OrganizationFK": 3,
    "Organization": {
      "RecordNo": 1,
      "OrganizationName": "sample string 2",
      "ProjectFK": 1,
      "Projects": {
        "RecordNo": 1,
        "ProjectName": "sample string 2",
        "UpdatedOn": "2024-12-22T04:50:39.3021506+00:00",
        "IsDeleted": true,
        "TestTypes": [
          {
            "RecordNo": 1,
            "TestTypeName": "sample string 2",
            "SortOrder": 3,
            "IsStudent": true,
            "ProjectFK": 1,
            "UpdatedOn": "2024-12-22T04:50:39.3021506+00:00",
            "IsDeleted": true
          },
          {
            "RecordNo": 1,
            "TestTypeName": "sample string 2",
            "SortOrder": 3,
            "IsStudent": true,
            "ProjectFK": 1,
            "UpdatedOn": "2024-12-22T04:50:39.3021506+00:00",
            "IsDeleted": true
          }
        ]
      },
      "CreatedOn": "2024-12-22T04:50:39.3021506+00:00",
      "UpdatedOn": "2024-12-22T04:50:39.3021506+00:00",
      "IsDeleted": true,
      "organizationPlans": [
        {
          "RecordNo": 1,
          "OrganizationFK": 2,
          "OrganizationPlanTypeFK": 3,
          "OrganizationPlanType": {
            "RecordNo": 1,
            "OrganizationPlanName": "sample string 2",
            "MaxCountStudent": 3,
            "MinCountStudent": 4,
            "Cost": 5.0,
            "ExpireDays": 6,
            "CreatedOn": "2024-12-22T04:50:39.3021506+00:00",
            "UpdatedOn": "2024-12-22T04:50:39.3021506+00:00",
            "IsDeleted": true
          },
          "CreatedBy": 4,
          "CancelledBy": 1,
          "CancellationReasonFK": 1,
          "CancellationReason": {
            "RecordNo": 1,
            "CancellationReasonName": "sample string 2",
            "IsOrgnizationPlan": true,
            "IsUserPlan": true,
            "CreatedOn": "2024-12-22T04:50:39.3021506+00:00",
            "UpdatedOn": "2024-12-22T04:50:39.3021506+00:00",
            "IsDeleted": true
          },
          "CancellationReasonNote": "sample string 5",
          "CancellationDate": "2024-12-22T04:50:39.3021506+00:00",
          "Amount": 6.0,
          "StartDate": "2024-12-22T04:50:39.3021506+00:00",
          "EndDate": "2024-12-22T04:50:39.3021506+00:00",
          "CreatedOn": "2024-12-22T04:50:39.3021506+00:00",
          "UpdatedOn": "2024-12-22T04:50:39.3021506+00:00",
          "IsDeleted": true
        },
        {
          "RecordNo": 1,
          "OrganizationFK": 2,
          "OrganizationPlanTypeFK": 3,
          "OrganizationPlanType": {
            "RecordNo": 1,
            "OrganizationPlanName": "sample string 2",
            "MaxCountStudent": 3,
            "MinCountStudent": 4,
            "Cost": 5.0,
            "ExpireDays": 6,
            "CreatedOn": "2024-12-22T04:50:39.3021506+00:00",
            "UpdatedOn": "2024-12-22T04:50:39.3021506+00:00",
            "IsDeleted": true
          },
          "CreatedBy": 4,
          "CancelledBy": 1,
          "CancellationReasonFK": 1,
          "CancellationReason": {
            "RecordNo": 1,
            "CancellationReasonName": "sample string 2",
            "IsOrgnizationPlan": true,
            "IsUserPlan": true,
            "CreatedOn": "2024-12-22T04:50:39.3021506+00:00",
            "UpdatedOn": "2024-12-22T04:50:39.3021506+00:00",
            "IsDeleted": true
          },
          "CancellationReasonNote": "sample string 5",
          "CancellationDate": "2024-12-22T04:50:39.3021506+00:00",
          "Amount": 6.0,
          "StartDate": "2024-12-22T04:50:39.3021506+00:00",
          "EndDate": "2024-12-22T04:50:39.3021506+00:00",
          "CreatedOn": "2024-12-22T04:50:39.3021506+00:00",
          "UpdatedOn": "2024-12-22T04:50:39.3021506+00:00",
          "IsDeleted": true
        }
      ]
    },
    "RegisterBy": 4,
    "EmailHash": "sample string 5",
    "FirstName": "sample string 6",
    "LastName": "sample string 7",
    "EmailAddress": "sample string 8",
    "PhoneNumber": "sample string 9",
    "StartDate": "2024-12-22T04:50:39.3021506+00:00",
    "EndDate": "2024-12-22T04:50:39.3021506+00:00",
    "CreatedOn": "2024-12-22T04:50:39.3021506+00:00",
    "UpdatedOn": "2024-12-22T04:50:39.3021506+00:00",
    "IsDeleted": true,
    "OrganizationMemberPermissions": [
      {
        "RecordNo": 1,
        "OrganizationMemberFK": 2,
        "OrganizationRoleFK": 3,
        "CreatedOn": "2024-12-22T04:50:39.3021506+00:00",
        "UpdatedOn": "2024-12-22T04:50:39.3021506+00:00",
        "IsDeleted": true
      },
      {
        "RecordNo": 1,
        "OrganizationMemberFK": 2,
        "OrganizationRoleFK": 3,
        "CreatedOn": "2024-12-22T04:50:39.3021506+00:00",
        "UpdatedOn": "2024-12-22T04:50:39.3021506+00:00",
        "IsDeleted": true
      }
    ]
  },
  "PracticeSessionFK": 3,
  "PracticeSession": {
    "RecordNo": 1,
    "OrganizationFK": 2,
    "MockTestFK": 3,
    "CreatedBy": 4,
    "PracticeDate": "2024-12-22T04:50:39.3021506+00:00",
    "PracticeTime": "00:00:00.1234567",
    "CreatedOn": "2024-12-22T04:50:39.3021506+00:00",
    "UpdatedOn": "2024-12-22T04:50:39.3021506+00:00",
    "IsDeleted": true,
    "PracticeSessionDetails": []
  },
  "CreatedOn": "2024-12-22T04:50:39.3021506+00:00",
  "UpdatedOn": "2024-12-22T04:50:39.3021506+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.TestType' 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.TestType' 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 'PracticeSessionDetails'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.