POST api/Auditor/Save

Request Information

URI Parameters

None.

Body Parameters

CustomAuditor
NameDescriptionTypeAdditional information
Auditor

MSTAuditor

None.

Criteria

Collection of MSTAuditor_Criteria

None.

Training

Collection of MSTAuditor_Training

None.

saveResult

boolean

None.

AuditorList

Collection of ViewAuditor

None.

userPrincipalName

string

None.

connectionString

string

None.

SecretId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Auditor": {
    "AuditorID": 1,
    "EmployeeId": 2,
    "RegistrationDate": "2025-06-17T21:50:34.4800729+07:00",
    "IsActive": true,
    "CreatedDate": "2025-06-17T21:50:34.4800729+07:00",
    "CreatedBy": "sample string 4",
    "ModifiedDate": "2025-06-17T21:50:34.4800729+07:00",
    "ModifiedBy": "sample string 5"
  },
  "Criteria": [
    {
      "CriteriaID": 1,
      "AuditorID": 2,
      "CriteriaStandard": "sample string 3",
      "IsDelete": true,
      "CreatedDate": "2025-06-17T21:50:34.4800729+07:00",
      "CreatedBy": "sample string 5",
      "ModifiedDate": "2025-06-17T21:50:34.4800729+07:00",
      "ModifiedBy": "sample string 6"
    },
    {
      "CriteriaID": 1,
      "AuditorID": 2,
      "CriteriaStandard": "sample string 3",
      "IsDelete": true,
      "CreatedDate": "2025-06-17T21:50:34.4800729+07:00",
      "CreatedBy": "sample string 5",
      "ModifiedDate": "2025-06-17T21:50:34.4800729+07:00",
      "ModifiedBy": "sample string 6"
    }
  ],
  "Training": [
    {
      "TrainingID": 1,
      "AuditorID": 2,
      "TrainingStandard": "sample string 3",
      "TrainingYear": "sample string 4",
      "TrainingDate": "2025-06-17T21:50:34.4800729+07:00",
      "IsDelete": true,
      "CreatedDate": "2025-06-17T21:50:34.4800729+07:00",
      "CreatedBy": "sample string 6",
      "ModifiedDate": "2025-06-17T21:50:34.4800729+07:00",
      "ModifiedBy": "sample string 7"
    },
    {
      "TrainingID": 1,
      "AuditorID": 2,
      "TrainingStandard": "sample string 3",
      "TrainingYear": "sample string 4",
      "TrainingDate": "2025-06-17T21:50:34.4800729+07:00",
      "IsDelete": true,
      "CreatedDate": "2025-06-17T21:50:34.4800729+07:00",
      "CreatedBy": "sample string 6",
      "ModifiedDate": "2025-06-17T21:50:34.4800729+07:00",
      "ModifiedBy": "sample string 7"
    }
  ],
  "saveResult": true,
  "AuditorList": [
    {
      "AuditorID": 1,
      "EmployeeId": 2,
      "NameTh": "sample string 3",
      "NameEn": "sample string 4",
      "RegistrationDate": "2025-06-17T21:50:34.4800729+07:00",
      "CriteriaStandard": "sample string 5",
      "IsActive": true,
      "ModifiedByNameTh": "sample string 7",
      "ModifiedByNameEn": "sample string 8",
      "ModifiedDate": "2025-06-17T21:50:34.4800729+07:00"
    },
    {
      "AuditorID": 1,
      "EmployeeId": 2,
      "NameTh": "sample string 3",
      "NameEn": "sample string 4",
      "RegistrationDate": "2025-06-17T21:50:34.4800729+07:00",
      "CriteriaStandard": "sample string 5",
      "IsActive": true,
      "ModifiedByNameTh": "sample string 7",
      "ModifiedByNameEn": "sample string 8",
      "ModifiedDate": "2025-06-17T21:50:34.4800729+07:00"
    }
  ],
  "userPrincipalName": "sample string 1",
  "connectionString": "sample string 2",
  "SecretId": null
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'System.Security.Cryptography.CryptoStream' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'System.Security.Cryptography.CryptoStream' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.