POST api/RegulationAnswer/Update

Request Information

URI Parameters

None.

Body Parameters

RegulationAnswer
NameDescriptionTypeAdditional information
Id

integer

None.

RegulationQuestionId

integer

None.

Answer

string

None.

InspectionId

integer

None.

Comment

string

None.

CreatedBy

integer

None.

CreatedDate

date

None.

LastModifiedBy

integer

None.

LastModifiedDate

date

None.

DeletedBy

integer

None.

DeletedDate

date

None.

LocalId

integer

None.

InspectionLocalId

integer

None.

Sequence

integer

None.

RegulationId

integer

None.

LoginUserId

integer

None.

LoginUserRoleId

integer

None.

LoginUserCustomerType

integer

None.

InspectionByInspectorId

integer

None.

InspectionByCustomerId

integer

None.

InspectionIsCompleted

boolean

None.

RegulationQuestionIds

Collection of integer

None.

RegulationQuestion_QuestionHelp

string

None.

RegulationQuestion_YesComment

string

None.

RegulationQuestion_NoComment

string

None.

RegulationQuestion_NAComment

string

None.

RegulationQuestion_CheckComment

string

None.

RegulationQuestionPhotos

Collection of RegulationQuestionPhoto

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "RegulationQuestionId": 2,
  "Answer": "sample string 3",
  "InspectionId": 4,
  "Comment": "sample string 5",
  "CreatedBy": 6,
  "CreatedDate": "2025-08-29T20:22:19.9988646+00:00",
  "LastModifiedBy": 8,
  "LastModifiedDate": "2025-08-29T20:22:19.9988646+00:00",
  "DeletedBy": 1,
  "DeletedDate": "2025-08-29T20:22:19.9988646+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:22:19.9988646+00:00",
      "LastModifiedBy": 7,
      "LastModifiedDate": "2025-08-29T20:22:19.9988646+00:00",
      "DeletedBy": 1,
      "DeletedDate": "2025-08-29T20:22:19.9988646+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:22:19.9988646+00:00",
      "LastModifiedBy": 7,
      "LastModifiedDate": "2025-08-29T20:22:19.9988646+00:00",
      "DeletedBy": 1,
      "DeletedDate": "2025-08-29T20:22:19.9988646+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"
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<RegulationAnswer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MSCWebAPI.Domain">
  <Answer>sample string 3</Answer>
  <Comment>sample string 5</Comment>
  <CreatedBy>6</CreatedBy>
  <CreatedDate>2025-08-29T20:22:19.9988646+00:00</CreatedDate>
  <DeletedBy>1</DeletedBy>
  <DeletedDate>2025-08-29T20:22:19.9988646+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:22:19.9988646+00:00</LastModifiedDate>
  <LocalId>10</LocalId>
  <LoginUserCustomerType>1</LoginUserCustomerType>
  <LoginUserId>14</LoginUserId>
  <LoginUserRoleId>15</LoginUserRoleId>
  <RegulationId>13</RegulationId>
  <RegulationQuestionId>2</RegulationQuestionId>
  <RegulationQuestionIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </RegulationQuestionIds>
  <RegulationQuestionPhotos>
    <RegulationQuestionPhoto>
      <CreatedBy>5</CreatedBy>
      <CreatedDate>2025-08-29T20:22:19.9988646+00:00</CreatedDate>
      <DeletedBy>1</DeletedBy>
      <DeletedDate>2025-08-29T20:22:19.9988646+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:22:19.9988646+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:22:19.9988646+00:00</CreatedDate>
      <DeletedBy>1</DeletedBy>
      <DeletedDate>2025-08-29T20:22:19.9988646+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:22:19.9988646+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>

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.