POST api/SafetyPolicy/SaveSafetyPolicy
Request Information
URI Parameters
None.
Body Parameters
SafetyPolicyAddMdlName | Description | Type | Additional 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://accopsapi.aircar.com/" }, { "Id": 1, "safetyPolicyId": 2, "attachmentLocation": "sample string 3", "attachmentType": "sample string 4", "attachmentExt": "sample string 5", "BaseUrl": "https://accopsapi.aircar.com/" } ], "Description": [ { "Id": 1, "Description": "sample string 2", "SafetyPolicyID": 3, "createdDate": "2024-11-22T21:30:16.8653724-06:00", "IsDeleted": true }, { "Id": 1, "Description": "sample string 2", "SafetyPolicyID": 3, "createdDate": "2024-11-22T21:30:16.8653724-06:00", "IsDeleted": true } ], "IsOnlyPdf": true, "Group": [ 1, 2 ], "AcknowledgeTimePeriodYear": 1, "AcknowledgeTimePeriodMonth": 1 }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseMdlName | Description | Type | Additional information |
---|---|---|---|
Status | boolean |
None. |
|
Data | Object |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Status": true, "Data": {}, "Message": "sample string 3" }