POST api/RegulationQuestion

Request Information

URI Parameters

None.

Body Parameters

RegulationQuestion
NameDescriptionTypeAdditional information
Id

integer

None.

QuestionNumber

string

None.

Question

string

None.

Sequence

integer

None.

RegulationId

integer

None.

IsHide

boolean

None.

CreatedBy

integer

None.

CreatedDate

date

None.

LastModifiedBy

integer

None.

LastModifiedDate

date

None.

DeletedBy

integer

None.

DeletedDate

date

None.

QuestionHelp

string

None.

YesComment

string

None.

NoComment

string

None.

NAComment

string

None.

CheckComment

string

None.

IsAnswered

boolean

None.

RegulationSequence

integer

None.

InspectionTypeId

integer

None.

InspectionTypeCreatedBy

integer

None.

RegulationAnswer

RegulationAnswer

None.

RegulationQuestionPhotos

Collection of RegulationQuestionPhoto

None.

Inspection_InternalNo

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "QuestionNumber": "sample string 2",
  "Question": "sample string 3",
  "Sequence": 4,
  "RegulationId": 5,
  "IsHide": true,
  "CreatedBy": 7,
  "CreatedDate": "2025-08-29T20:29:36.0328379+00:00",
  "LastModifiedBy": 9,
  "LastModifiedDate": "2025-08-29T20:29:36.0328379+00:00",
  "DeletedBy": 1,
  "DeletedDate": "2025-08-29T20:29:36.0328379+00:00",
  "QuestionHelp": "sample string 11",
  "YesComment": "sample string 12",
  "NoComment": "sample string 13",
  "NAComment": "sample string 14",
  "CheckComment": "sample string 15",
  "IsAnswered": true,
  "RegulationSequence": 17,
  "InspectionTypeId": 18,
  "InspectionTypeCreatedBy": 19,
  "RegulationAnswer": {
    "Id": 1,
    "RegulationQuestionId": 2,
    "Answer": "sample string 3",
    "InspectionId": 4,
    "Comment": "sample string 5",
    "CreatedBy": 6,
    "CreatedDate": "2025-08-29T20:29:36.0328379+00:00",
    "LastModifiedBy": 8,
    "LastModifiedDate": "2025-08-29T20:29:36.0328379+00:00",
    "DeletedBy": 1,
    "DeletedDate": "2025-08-29T20:29:36.0328379+00:00",
    "LocalId": 10,
    "InspectionLocalId": 11,
    "Sequence": 12,
    "RegulationId": 13,
    "LoginUserId": 14,
    "LoginUserRoleId": 15,
    "LoginUserCustomerType": 1,
    "InspectionByInspectorId": 16,
    "InspectionByCustomerId": 17,
    "InspectionIsCompleted": true,
    "RegulationQuestionIds": [
      1,
      2
    ],
    "RegulationQuestion_QuestionHelp": "sample string 18",
    "RegulationQuestion_YesComment": "sample string 19",
    "RegulationQuestion_NoComment": "sample string 20",
    "RegulationQuestion_NAComment": "sample string 21",
    "RegulationQuestion_CheckComment": "sample string 22",
    "RegulationQuestionPhotos": [
      {
        "Id": 1,
        "InspectionId": 2,
        "RegulationQuestionId": 3,
        "ImagePath": "sample string 4",
        "CreatedBy": 5,
        "CreatedDate": "2025-08-29T20:29:36.0328379+00:00",
        "LastModifiedBy": 7,
        "LastModifiedDate": "2025-08-29T20:29:36.0328379+00:00",
        "DeletedBy": 1,
        "DeletedDate": "2025-08-29T20:29:36.0328379+00:00",
        "ImageBase64": "sample string 9",
        "Images": [
          "sample string 1",
          "sample string 2"
        ],
        "LocalId": 10,
        "InspectionLocalId": 11,
        "TempRegulationQuestionPhotos": [
          {
            "TempId": 1,
            "TempImagePath": "sample string 2",
            "TempImagePathStr": "sample string 3"
          },
          {
            "TempId": 1,
            "TempImagePath": "sample string 2",
            "TempImagePathStr": "sample string 3"
          }
        ]
      },
      {
        "Id": 1,
        "InspectionId": 2,
        "RegulationQuestionId": 3,
        "ImagePath": "sample string 4",
        "CreatedBy": 5,
        "CreatedDate": "2025-08-29T20:29:36.0328379+00:00",
        "LastModifiedBy": 7,
        "LastModifiedDate": "2025-08-29T20:29:36.0328379+00:00",
        "DeletedBy": 1,
        "DeletedDate": "2025-08-29T20:29:36.0328379+00:00",
        "ImageBase64": "sample string 9",
        "Images": [
          "sample string 1",
          "sample string 2"
        ],
        "LocalId": 10,
        "InspectionLocalId": 11,
        "TempRegulationQuestionPhotos": [
          {
            "TempId": 1,
            "TempImagePath": "sample string 2",
            "TempImagePathStr": "sample string 3"
          },
          {
            "TempId": 1,
            "TempImagePath": "sample string 2",
            "TempImagePathStr": "sample string 3"
          }
        ]
      }
    ]
  },
  "RegulationQuestionPhotos": [
    {
      "Id": 1,
      "InspectionId": 2,
      "RegulationQuestionId": 3,
      "ImagePath": "sample string 4",
      "CreatedBy": 5,
      "CreatedDate": "2025-08-29T20:29:36.0328379+00:00",
      "LastModifiedBy": 7,
      "LastModifiedDate": "2025-08-29T20:29:36.0328379+00:00",
      "DeletedBy": 1,
      "DeletedDate": "2025-08-29T20:29:36.0328379+00:00",
      "ImageBase64": "sample string 9",
      "Images": [
        "sample string 1",
        "sample string 2"
      ],
      "LocalId": 10,
      "InspectionLocalId": 11,
      "TempRegulationQuestionPhotos": [
        {
          "TempId": 1,
          "TempImagePath": "sample string 2",
          "TempImagePathStr": "sample string 3"
        },
        {
          "TempId": 1,
          "TempImagePath": "sample string 2",
          "TempImagePathStr": "sample string 3"
        }
      ]
    },
    {
      "Id": 1,
      "InspectionId": 2,
      "RegulationQuestionId": 3,
      "ImagePath": "sample string 4",
      "CreatedBy": 5,
      "CreatedDate": "2025-08-29T20:29:36.0328379+00:00",
      "LastModifiedBy": 7,
      "LastModifiedDate": "2025-08-29T20:29:36.0328379+00:00",
      "DeletedBy": 1,
      "DeletedDate": "2025-08-29T20:29:36.0328379+00:00",
      "ImageBase64": "sample string 9",
      "Images": [
        "sample string 1",
        "sample string 2"
      ],
      "LocalId": 10,
      "InspectionLocalId": 11,
      "TempRegulationQuestionPhotos": [
        {
          "TempId": 1,
          "TempImagePath": "sample string 2",
          "TempImagePathStr": "sample string 3"
        },
        {
          "TempId": 1,
          "TempImagePath": "sample string 2",
          "TempImagePathStr": "sample string 3"
        }
      ]
    }
  ],
  "Inspection_InternalNo": 20
}

application/xml, text/xml

Sample:
<RegulationQuestion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MSCWebAPI.Domain">
  <CheckComment>sample string 15</CheckComment>
  <CreatedBy>7</CreatedBy>
  <CreatedDate>2025-08-29T20:29:36.0328379+00:00</CreatedDate>
  <DeletedBy>1</DeletedBy>
  <DeletedDate>2025-08-29T20:29:36.0328379+00:00</DeletedDate>
  <Id>1</Id>
  <InspectionTypeCreatedBy>19</InspectionTypeCreatedBy>
  <InspectionTypeId>18</InspectionTypeId>
  <Inspection_InternalNo>20</Inspection_InternalNo>
  <IsAnswered>true</IsAnswered>
  <IsHide>true</IsHide>
  <LastModifiedBy>9</LastModifiedBy>
  <LastModifiedDate>2025-08-29T20:29:36.0328379+00:00</LastModifiedDate>
  <NAComment>sample string 14</NAComment>
  <NoComment>sample string 13</NoComment>
  <Question>sample string 3</Question>
  <QuestionHelp>sample string 11</QuestionHelp>
  <QuestionNumber>sample string 2</QuestionNumber>
  <RegulationAnswer>
    <Answer>sample string 3</Answer>
    <Comment>sample string 5</Comment>
    <CreatedBy>6</CreatedBy>
    <CreatedDate>2025-08-29T20:29:36.0328379+00:00</CreatedDate>
    <DeletedBy>1</DeletedBy>
    <DeletedDate>2025-08-29T20:29:36.0328379+00:00</DeletedDate>
    <Id>1</Id>
    <InspectionByCustomerId>17</InspectionByCustomerId>
    <InspectionByInspectorId>16</InspectionByInspectorId>
    <InspectionId>4</InspectionId>
    <InspectionIsCompleted>true</InspectionIsCompleted>
    <InspectionLocalId>11</InspectionLocalId>
    <LastModifiedBy>8</LastModifiedBy>
    <LastModifiedDate>2025-08-29T20:29:36.0328379+00:00</LastModifiedDate>
    <LocalId>10</LocalId>
    <LoginUserCustomerType>1</LoginUserCustomerType>
    <LoginUserId>14</LoginUserId>
    <LoginUserRoleId>15</LoginUserRoleId>
    <RegulationId>13</RegulationId>
    <RegulationQuestionId>2</RegulationQuestionId>
    <RegulationQuestionIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </RegulationQuestionIds>
    <RegulationQuestionPhotos>
      <RegulationQuestionPhoto>
        <CreatedBy>5</CreatedBy>
        <CreatedDate>2025-08-29T20:29:36.0328379+00:00</CreatedDate>
        <DeletedBy>1</DeletedBy>
        <DeletedDate>2025-08-29T20:29:36.0328379+00:00</DeletedDate>
        <Id>1</Id>
        <ImageBase64>sample string 9</ImageBase64>
        <ImagePath>sample string 4</ImagePath>
        <Images xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </Images>
        <InspectionId>2</InspectionId>
        <InspectionLocalId>11</InspectionLocalId>
        <LastModifiedBy>7</LastModifiedBy>
        <LastModifiedDate>2025-08-29T20:29:36.0328379+00:00</LastModifiedDate>
        <LocalId>10</LocalId>
        <RegulationQuestionId>3</RegulationQuestionId>
        <TempRegulationQuestionPhotos>
          <TempRegulationQuestionPhoto>
            <TempId>1</TempId>
            <TempImagePath>sample string 2</TempImagePath>
            <TempImagePathStr>sample string 3</TempImagePathStr>
          </TempRegulationQuestionPhoto>
          <TempRegulationQuestionPhoto>
            <TempId>1</TempId>
            <TempImagePath>sample string 2</TempImagePath>
            <TempImagePathStr>sample string 3</TempImagePathStr>
          </TempRegulationQuestionPhoto>
        </TempRegulationQuestionPhotos>
      </RegulationQuestionPhoto>
      <RegulationQuestionPhoto>
        <CreatedBy>5</CreatedBy>
        <CreatedDate>2025-08-29T20:29:36.0328379+00:00</CreatedDate>
        <DeletedBy>1</DeletedBy>
        <DeletedDate>2025-08-29T20:29:36.0328379+00:00</DeletedDate>
        <Id>1</Id>
        <ImageBase64>sample string 9</ImageBase64>
        <ImagePath>sample string 4</ImagePath>
        <Images xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </Images>
        <InspectionId>2</InspectionId>
        <InspectionLocalId>11</InspectionLocalId>
        <LastModifiedBy>7</LastModifiedBy>
        <LastModifiedDate>2025-08-29T20:29:36.0328379+00:00</LastModifiedDate>
        <LocalId>10</LocalId>
        <RegulationQuestionId>3</RegulationQuestionId>
        <TempRegulationQuestionPhotos>
          <TempRegulationQuestionPhoto>
            <TempId>1</TempId>
            <TempImagePath>sample string 2</TempImagePath>
            <TempImagePathStr>sample string 3</TempImagePathStr>
          </TempRegulationQuestionPhoto>
          <TempRegulationQuestionPhoto>
            <TempId>1</TempId>
            <TempImagePath>sample string 2</TempImagePath>
            <TempImagePathStr>sample string 3</TempImagePathStr>
          </TempRegulationQuestionPhoto>
        </TempRegulationQuestionPhotos>
      </RegulationQuestionPhoto>
    </RegulationQuestionPhotos>
    <RegulationQuestion_CheckComment>sample string 22</RegulationQuestion_CheckComment>
    <RegulationQuestion_NAComment>sample string 21</RegulationQuestion_NAComment>
    <RegulationQuestion_NoComment>sample string 20</RegulationQuestion_NoComment>
    <RegulationQuestion_QuestionHelp>sample string 18</RegulationQuestion_QuestionHelp>
    <RegulationQuestion_YesComment>sample string 19</RegulationQuestion_YesComment>
    <Sequence>12</Sequence>
  </RegulationAnswer>
  <RegulationId>5</RegulationId>
  <RegulationQuestionPhotos>
    <RegulationQuestionPhoto>
      <CreatedBy>5</CreatedBy>
      <CreatedDate>2025-08-29T20:29:36.0328379+00:00</CreatedDate>
      <DeletedBy>1</DeletedBy>
      <DeletedDate>2025-08-29T20:29:36.0328379+00:00</DeletedDate>
      <Id>1</Id>
      <ImageBase64>sample string 9</ImageBase64>
      <ImagePath>sample string 4</ImagePath>
      <Images xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </Images>
      <InspectionId>2</InspectionId>
      <InspectionLocalId>11</InspectionLocalId>
      <LastModifiedBy>7</LastModifiedBy>
      <LastModifiedDate>2025-08-29T20:29:36.0328379+00:00</LastModifiedDate>
      <LocalId>10</LocalId>
      <RegulationQuestionId>3</RegulationQuestionId>
      <TempRegulationQuestionPhotos>
        <TempRegulationQuestionPhoto>
          <TempId>1</TempId>
          <TempImagePath>sample string 2</TempImagePath>
          <TempImagePathStr>sample string 3</TempImagePathStr>
        </TempRegulationQuestionPhoto>
        <TempRegulationQuestionPhoto>
          <TempId>1</TempId>
          <TempImagePath>sample string 2</TempImagePath>
          <TempImagePathStr>sample string 3</TempImagePathStr>
        </TempRegulationQuestionPhoto>
      </TempRegulationQuestionPhotos>
    </RegulationQuestionPhoto>
    <RegulationQuestionPhoto>
      <CreatedBy>5</CreatedBy>
      <CreatedDate>2025-08-29T20:29:36.0328379+00:00</CreatedDate>
      <DeletedBy>1</DeletedBy>
      <DeletedDate>2025-08-29T20:29:36.0328379+00:00</DeletedDate>
      <Id>1</Id>
      <ImageBase64>sample string 9</ImageBase64>
      <ImagePath>sample string 4</ImagePath>
      <Images xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </Images>
      <InspectionId>2</InspectionId>
      <InspectionLocalId>11</InspectionLocalId>
      <LastModifiedBy>7</LastModifiedBy>
      <LastModifiedDate>2025-08-29T20:29:36.0328379+00:00</LastModifiedDate>
      <LocalId>10</LocalId>
      <RegulationQuestionId>3</RegulationQuestionId>
      <TempRegulationQuestionPhotos>
        <TempRegulationQuestionPhoto>
          <TempId>1</TempId>
          <TempImagePath>sample string 2</TempImagePath>
          <TempImagePathStr>sample string 3</TempImagePathStr>
        </TempRegulationQuestionPhoto>
        <TempRegulationQuestionPhoto>
          <TempId>1</TempId>
          <TempImagePath>sample string 2</TempImagePath>
          <TempImagePathStr>sample string 3</TempImagePathStr>
        </TempRegulationQuestionPhoto>
      </TempRegulationQuestionPhotos>
    </RegulationQuestionPhoto>
  </RegulationQuestionPhotos>
  <RegulationSequence>17</RegulationSequence>
  <Sequence>4</Sequence>
  <YesComment>sample string 12</YesComment>
</RegulationQuestion>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.