POST api/SafetyPolicy/NewNotification

Request Information

URI Parameters

None.

Body Parameters

SafetyPolicyAddMdl
NameDescriptionTypeAdditional information
Id

integer

None.

SafetyPolicyTitle

string

None.

Info

string

None.

Status

boolean

None.

AttachmentFile

Collection of SafetyPolicyAttachmentMdl

None.

Description

Collection of SafetyPolicyDescriptionMdl

None.

IsOnlyPdf

boolean

None.

Group

Collection of integer

None.

AcknowledgeTimePeriodYear

integer

None.

AcknowledgeTimePeriodMonth

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "SafetyPolicyTitle": "sample string 2",
  "Info": "sample string 3",
  "Status": true,
  "AttachmentFile": [
    {
      "Id": 1,
      "safetyPolicyId": 2,
      "attachmentLocation": "sample string 3",
      "attachmentType": "sample string 4",
      "attachmentExt": "sample string 5",
      "BaseUrl": "https://staggingaccopsapi.aircar.com/"
    },
    {
      "Id": 1,
      "safetyPolicyId": 2,
      "attachmentLocation": "sample string 3",
      "attachmentType": "sample string 4",
      "attachmentExt": "sample string 5",
      "BaseUrl": "https://staggingaccopsapi.aircar.com/"
    }
  ],
  "Description": [
    {
      "Id": 1,
      "Description": "sample string 2",
      "SafetyPolicyID": 3,
      "createdDate": "2024-11-22T21:44:39.8827728-06:00",
      "IsDeleted": true
    },
    {
      "Id": 1,
      "Description": "sample string 2",
      "SafetyPolicyID": 3,
      "createdDate": "2024-11-22T21:44:39.8827728-06:00",
      "IsDeleted": true
    }
  ],
  "IsOnlyPdf": true,
  "Group": [
    1,
    2
  ],
  "AcknowledgeTimePeriodYear": 1,
  "AcknowledgeTimePeriodMonth": 1
}

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

Response Information

Resource Description

None.