Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/81/Categories/All


Request Body : {"SiteIds":[],"PageNumber":1,"PageLimit":10,"UserId":267}


Request URL : https://api-sandbox.oqsha.com/Organisations/262/PreStartupSafetyReviews


Request Body : {
    "SiteId": 705,
    "Location": "Boiler Section - Unit 15",
    "DepartmentId": 76,
    "CategoryId": 7,
    "MocId": 377,
    "StartState": "Draft",
    "Checks": {
        "Sections": [
            {
                "SectionId": 1,
                "SectionName": "Pre-Startup Checklist",
                "SectionType": "checks",
                "Checks": [
                    {
                        "CheckId": 101,
                        "Label": "Equipment Installed as per Design",
                        "Type": "checkbox",
                        "Value": true
                    },
                    {
                        "CheckId": 102,
                        "Label": "Piping Pressure Tested",
                        "Type": "checkbox",
                        "Value": true
                    }
                ]
            },
            {
                "SectionId": 2,
                "SectionName": "Observations",
                "SectionType": "checks",
                "Checks": [
                    {
                        "CheckId": 201,
                        "Label": "Comments",
                        "Type": "comment",
                        "Value": "All checks completed successfully"
                    }
                ]
            },
            {
                "SectionId": 3,
                "SectionName": "Attachments",
                "SectionType": "comment",
                "SectionFiles": [
                    {
                        "FileName": "final_inspection.jpg",
                        "FileUrl": "https://example.com/uploads/final_inspection.jpg"
                    }
                ]
            }
        ]
    }
}


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/81/Workflows/States/Types


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/81/Categories/23


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Departments


Request URL : https://api-sandbox.oqsha.com/Organisation/262/AccessControl/Roles


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/83/Workflows/States/Types


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Company/All?&IsActive=1


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Action-Trackers/45


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/83/Categories/All


Request Body : {"SiteIds":[841],"PageNumber":1,"PageLimit":1000,"UserId":267}


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/83/Categories/70


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/83/Workflows/Transitions/Available


Request URL : https://api-sandbox.oqsha.com/Organisation/262/Users/DropDown?ModuleName=Action Trackers&isActive=true


Request Body : {"CurrentEntityState":"Open","ActorContext":{},"EntityId":45}


Request URL : https://api-sandbox.oqsha.com/Transition-History?orgId=262&ModuleId=83&EntityId=45


Request URL : https://api-sandbox.oqsha.com/Organisation/262/Users/DropDown?ModuleName=Action Trackers&siteId=841


Request URL : https://api-sandbox.oqsha.com/Organisations/262/PreStartupSafetyReviews


Request Body :

{
    "SiteId": 841,
    "CategoryId": 94,
    "Checks": {
        "Sections": [
            {
                "SectionId": 1,
                "SectionName": "",
                "SectionType": "module-association",
                "MandatoryChecksCount": 0,
                "OrganisationId": null,
                "Status": 1,
                "Rank": 1,
                "AllowAttachments": false,
                "SectionFiles": [],
                "FileUploadControl": {
                    "IsCameraAllowed": false,
                    "IsImageUploadAllowed": false,
                    "IsVideoUploadAllowed": false,
                    "IsAudioUploadAllowed": false,
                    "IsFileUploadAllowed": false
                },
                "Checks": [
                    {
                        "Id": "1_1",
                        "Check": "Associated Investigation",
                        "Type": "module-association",
                        "IsMandatory": 0,
                        "CheckConfiguration": {
                            "Validations": {
                                "Required": false,
                                "RequiredMessage": "This field is required",
                                "MinLength": null,
                                "MinLengthMessage": null,
                                "MaxLength": null,
                                "MaxLengthMessage": null,
                                "Min": null,
                                "MinMessage": null,
                                "Max": null,
                                "MaxMessage": null,
                                "Pattern": null,
                                "PatternMessage": null
                            },
                            "Placeholder": "An Investigation record will show up here as soon as created for a record.",
                            "DisplayOrientation": "vertical",
                            "ConditionalRules": [],
                            "VisibilityRules": [
                                {
                                    "id": "v2h8fydlu",
                                    "roles": [
                                        {
                                            "id": 489,
                                            "name": "Admin"
                                        },
                                        {
                                            "id": 507,
                                            "name": "Rig Manager"
                                        },
                                        {
                                            "id": 514,
                                            "name": "Safety Officer"
                                        },
                                        {
                                            "id": 506,
                                            "name": "ToolPusher"
                                        }
                                    ],
                                    "statuses": [
                                        {
                                            "id": 17,
                                            "name": "Open"
                                        },
                                        {
                                            "id": 18,
                                            "name": "Assigned"
                                        },
                                        {
                                            "id": 19,
                                            "name": "Resolved"
                                        },
                                        {
                                            "id": 20,
                                            "name": "Re-opened"
                                        },
                                        {
                                            "id": 21,
                                            "name": "Closed"
                                        }
                                    ],
                                    "combinator": "AND"
                                }
                            ],
                            "AccessControlRules": [],
                            "DynamicLabels": [],
                            "Multiselect": false,
                            "ShouldReset": false,
                            "FloatingLabel": false,
                            "DisplayAsColumn": false,
                            "DisplayAsFilter": false,
                            "ReadOnly": true,
                            "ModuleAssociationConfiguration": {
                                "targetModule": "Investigations",
                                "targetModuleId": 81,
                                "selectionMode": "single",
                                "filters": [],
                                "isActorContextIdentifier": false,
                                "actorKey": ""
                            }
                        },
                        "LayoutMetadata": {
                            "RowNumber": 0,
                            "ColumnOrder": 0,
                            "WidthPercentage": 100
                        }
                    }
                ],
                "IsMainSection": false,
                "AllowTaskAssociation": false,
                "IsMandatoryAttachment": false,
                "IsSectionTable": false,
                "ConditionalRules": [
                    {
                        "sourceFieldId": "1_3",
                        "condition": "equals",
                        "value": 3,
                        "actions": "show"
                    }
                ],
                "VisibilityRules": [
                    {
                        "id": "1zh9am80e",
                        "roles": [
                            {
                                "id": 489,
                                "name": "Admin"
                            },
                            {
                                "id": 517,
                                "name": "HSE Officer"
                            },
                            {
                                "id": 507,
                                "name": "Rig Manager"
                            },
                            {
                                "id": 514,
                                "name": "Safety Officer"
                            },
                            {
                                "id": 506,
                                "name": "ToolPusher"
                            }
                        ],
                        "statuses": [
                            {
                                "id": 17,
                                "name": "Open"
                            },
                            {
                                "id": 18,
                                "name": "Assigned"
                            },
                            {
                                "id": 19,
                                "name": "Resolved"
                            },
                            {
                                "id": 20,
                                "name": "Re-opened"
                            },
                            {
                                "id": 21,
                                "name": "Closed"
                            }
                        ],
                        "combinator": "AND"
                    }
                ],
                "AccessControlRules": []
            },
            {
                "SectionId": 2,
                "SectionName": "",
                "SectionType": "module-association",
                "MandatoryChecksCount": 0,
                "OrganisationId": null,
                "Status": 1,
                "Rank": 2,
                "AllowAttachments": false,
                "SectionFiles": [],
                "FileUploadControl": {
                    "IsCameraAllowed": false,
                    "IsImageUploadAllowed": false,
                    "IsVideoUploadAllowed": false,
                    "IsAudioUploadAllowed": false,
                    "IsFileUploadAllowed": false
                },
                "Checks": [
                    {
                        "Id": "2_1",
                        "Check": "Assigned to",
                        "Type": "module-association",
                        "Value": 267,
                        "IsMandatory": 0,
                        "CheckConfiguration": {
                            "Validations": {
                                "Required": false,
                                "RequiredMessage": "This field is required",
                                "MinLength": null,
                                "MinLengthMessage": null,
                                "MaxLength": null,
                                "MaxLengthMessage": null,
                                "Min": null,
                                "MinMessage": null,
                                "Max": null,
                                "MaxMessage": null,
                                "Pattern": null,
                                "PatternMessage": null
                            },
                            "Placeholder": "",
                            "DisplayOrientation": "vertical",
                            "ConditionalRules": [],
                            "VisibilityRules": [],
                            "AccessControlRules": [],
                            "DynamicLabels": [],
                            "Multiselect": false,
                            "ShouldReset": false,
                            "FloatingLabel": false,
                            "DisplayAsColumn": false,
                            "DisplayAsFilter": false,
                            "ReadOnly": false,
                            "ModuleAssociationConfiguration": {
                                "targetModule": "Users",
                                "targetModuleId": 6,
                                "selectionMode": "single",
                                "filters": [],
                                "isActorContextIdentifier": true,
                                "actorKey": "AssignedUser"
                            }
                        },
                        "LayoutMetadata": {
                            "RowNumber": 0,
                            "ColumnOrder": 0,
                            "WidthPercentage": 33.33
                        }
                    },
                    {
                        "Id": "2_2",
                        "Check": "Near miss Description",
                        "Type": "text",
                        "Value": "hiwheihweiwe",
                        "IsMandatory": 0,
                        "CheckConfiguration": {
                            "Validations": {
                                "Required": false,
                                "RequiredMessage": "This field is required",
                                "MinLength": null,
                                "MinLengthMessage": null,
                                "MaxLength": null,
                                "MaxLengthMessage": null,
                                "Min": null,
                                "MinMessage": null,
                                "Max": null,
                                "MaxMessage": null,
                                "Pattern": null,
                                "PatternMessage": null
                            },
                            "Placeholder": "",
                            "DisplayOrientation": "vertical",
                            "ConditionalRules": [],
                            "VisibilityRules": [],
                            "AccessControlRules": [],
                            "DynamicLabels": [],
                            "Multiselect": false,
                            "ShouldReset": false,
                            "FloatingLabel": false,
                            "DisplayAsColumn": false,
                            "DisplayAsFilter": false,
                            "ReadOnly": false
                        },
                        "LayoutMetadata": {
                            "RowNumber": 0,
                            "ColumnOrder": 1,
                            "WidthPercentage": 33.33
                        }
                    },
                    {
                        "Id": "2_3",
                        "Check": "Severity",
                        "Type": "radio",
                        "Value": "3",
                        "IsMandatory": 0,
                        "CheckOptions": [
                            {
                                "OptionId": 1,
                                "OptionText": "Low"
                            },
                            {
                                "OptionId": 2,
                                "OptionText": "Moderate"
                            },
                            {
                                "OptionId": 3,
                                "OptionText": "Critical"
                            }
                        ],
                        "CheckConfiguration": {
                            "Validations": {
                                "Required": false,
                                "RequiredMessage": "This field is required",
                                "MinLength": null,
                                "MinLengthMessage": null,
                                "MaxLength": null,
                                "MaxLengthMessage": null,
                                "Min": null,
                                "MinMessage": null,
                                "Max": null,
                                "MaxMessage": null,
                                "Pattern": null,
                                "PatternMessage": null
                            },
                            "Placeholder": "",
                            "DisplayOrientation": "horizontal",
                            "ConditionalRules": [],
                            "VisibilityRules": [],
                            "AccessControlRules": [],
                            "DynamicLabels": [],
                            "Multiselect": false,
                            "ShouldReset": false,
                            "FloatingLabel": false,
                            "DisplayAsColumn": false,
                            "DisplayAsFilter": false,
                            "ReadOnly": false
                        },
                        "LayoutMetadata": {
                            "RowNumber": 0,
                            "ColumnOrder": 2,
                            "WidthPercentage": 33.33
                        }
                    }
                ],
                "IsMainSection": false,
                "AllowTaskAssociation": false,
                "IsMandatoryAttachment": false,
                "IsSectionTable": false,
                "ConditionalRules": [],
                "VisibilityRules": [],
                "AccessControlRules": []
            },
            {
                "SectionId": 3,
                "SectionName": "Remarks / Comments",
                "SectionType": "comment",
                "MandatoryChecksCount": 0,
                "OrganisationId": null,
                "Status": 1,
                "Rank": 3,
                "AllowAttachments": true,
                "SectionFiles": [],
                "FileUploadControl": {
                    "IsCameraAllowed": true,
                    "IsImageUploadAllowed": true,
                    "IsVideoUploadAllowed": true,
                    "IsAudioUploadAllowed": true,
                    "IsFileUploadAllowed": true
                },
                "Checks": [
                    {
                        "Id": "3_1",
                        "Check": "Comments",
                        "Type": "comment",
                        "IsMandatory": 0,
                        "CheckConfiguration": {
                            "Validations": {
                                "Required": false,
                                "RequiredMessage": "This field is required",
                                "MinLength": null,
                                "MinLengthMessage": null,
                                "MaxLength": null,
                                "MaxLengthMessage": null,
                                "Min": null,
                                "MinMessage": null,
                                "Max": null,
                                "MaxMessage": null,
                                "Pattern": null,
                                "PatternMessage": null
                            },
                            "Placeholder": "",
                            "DisplayOrientation": "vertical",
                            "ConditionalRules": [],
                            "VisibilityRules": [],
                            "AccessControlRules": [],
                            "DynamicLabels": [],
                            "Multiselect": false,
                            "ShouldReset": false,
                            "FloatingLabel": false,
                            "DisplayAsColumn": false,
                            "DisplayAsFilter": false,
                            "ReadOnly": false
                        },
                        "LayoutMetadata": {
                            "RowNumber": 0,
                            "ColumnOrder": 0,
                            "WidthPercentage": 100
                        }
                    }
                ],
                "IsMainSection": false,
                "AllowTaskAssociation": false,
                "IsMandatoryAttachment": false,
                "IsSectionTable": false,
                "ConditionalRules": [],
                "VisibilityRules": [],
                "AccessControlRules": []
            },
            {
                "SectionId": 4,
                "SectionName": "",
                "SectionType": "module-create-action",
                "MandatoryChecksCount": 0,
                "OrganisationId": null,
                "Status": 1,
                "Rank": 4,
                "AllowAttachments": false,
                "SectionFiles": [],
                "FileUploadControl": {
                    "IsCameraAllowed": false,
                    "IsImageUploadAllowed": false,
                    "IsVideoUploadAllowed": false,
                    "IsAudioUploadAllowed": false,
                    "IsFileUploadAllowed": false
                },
                "Checks": [
                    {
                        "Id": "4_1",
                        "Check": "Create Investigation",
                        "Type": "module-create-action",
                        "Value": 0,
                        "IsMandatory": 0,
                        "CheckConfiguration": {
                            "Validations": {
                                "Required": false,
                                "RequiredMessage": "This field is required",
                                "MinLength": null,
                                "MinLengthMessage": null,
                                "MaxLength": null,
                                "MaxLengthMessage": null,
                                "Min": null,
                                "MinMessage": null,
                                "Max": null,
                                "MaxMessage": null,
                                "Pattern": null,
                                "PatternMessage": null
                            },
                            "Placeholder": "",
                            "DisplayOrientation": "vertical",
                            "ConditionalRules": [],
                            "VisibilityRules": [
                                {
                                    "id": "kw6iblctb",
                                    "roles": [
                                        {
                                            "id": 489,
                                            "name": "Admin"
                                        },
                                        {
                                            "id": 517,
                                            "name": "HSE Officer"
                                        },
                                        {
                                            "id": 507,
                                            "name": "Rig Manager"
                                        },
                                        {
                                            "id": 514,
                                            "name": "Safety Officer"
                                        },
                                        {
                                            "id": 506,
                                            "name": "ToolPusher"
                                        }
                                    ],
                                    "statuses": [
                                        {
                                            "id": 17,
                                            "name": "Open"
                                        },
                                        {
                                            "id": 18,
                                            "name": "Assigned"
                                        },
                                        {
                                            "id": 19,
                                            "name": "Resolved"
                                        },
                                        {
                                            "id": 20,
                                            "name": "Re-opened"
                                        },
                                        {
                                            "id": 21,
                                            "name": "Closed"
                                        }
                                    ],
                                    "combinator": "AND"
                                }
                            ],
                            "AccessControlRules": [],
                            "DynamicLabels": [],
                            "Multiselect": false,
                            "ShouldReset": false,
                            "FloatingLabel": false,
                            "DisplayAsColumn": false,
                            "DisplayAsFilter": false,
                            "ReadOnly": false,
                            "ModuleCreateActionConfiguration": {
                                "targetModule": "investigation-v2",
                                "targetModuleId": 81,
                                "targetModuleKey": "investigation-v2",
                                "targetTypeId": 10,
                                "targetTypeName": "NEARMISS NOTIFICATION & INVESTIGATION REPORT",
                                "actionKey": "",
                                "postActionValue": ""
                            }
                        },
                        "LayoutMetadata": {
                            "RowNumber": 0,
                            "ColumnOrder": 0,
                            "WidthPercentage": 100
                        }
                    }
                ],
                "IsMainSection": false,
                "AllowTaskAssociation": false,
                "IsMandatoryAttachment": false,
                "IsSectionTable": false,
                "ConditionalRules": [
                    {
                        "sourceFieldId": "1_3",
                        "condition": "equals",
                        "value": 3,
                        "actions": "show"
                    }
                ],
                "VisibilityRules": [
                    {
                        "id": "uln7iyese",
                        "roles": [
                            {
                                "id": 489,
                                "name": "Admin"
                            },
                            {
                                "id": 507,
                                "name": "Rig Manager"
                            },
                            {
                                "id": 514,
                                "name": "Safety Officer"
                            },
                            {
                                "id": 506,
                                "name": "ToolPusher"
                            }
                        ],
                        "statuses": [
                            {
                                "id": 17,
                                "name": "Open"
                            },
                            {
                                "id": 18,
                                "name": "Assigned"
                            },
                            {
                                "id": 19,
                                "name": "Resolved"
                            },
                            {
                                "id": 20,
                                "name": "Re-opened"
                            }
                        ],
                        "combinator": "AND"
                    }
                ],
                "AccessControlRules": []
            }
        ]
    }
}


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/81/Workflows/States/Types


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/81/Categories/23


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Departments


Request URL : https://api-sandbox.oqsha.com/Organisation/262/AccessControl/Roles