Retrieve all validation hooks configured for the current environment. Only the current version of each hook is returned.
List of validation hooks.
Unauthorized
{- "hooks": [
- {
- "id": 10050,
- "name": "Dept-Tag-Validator",
- "type": "import_post_validation_hook",
- "fileObject": {
- "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "createdDate": "2024-03-15T10:30:00.000Z",
- "createdBy": {
- "id": "500",
- "userName": "jdoe",
- "firstName": "John",
- "lastName": "Doe"
}, - "modifiedDate": "2024-03-20T14:15:00.000Z",
- "modifiedBy": {
- "id": "501",
- "userName": "asmith",
- "firstName": "Alice",
- "lastName": "Smith"
}, - "version": {
- "id": 2,
- "current": true
}, - "file": {
- "name": "check_dept_tags_v2.js",
- "content": "dmFyIGl0ZW0gPSBjb250ZXh0Lml0ZW07",
}
}
}, - {
- "id": 10051,
- "name": "Filename-Sanitizer",
- "type": "import_pre_validation_hook",
- "fileObject": {
- "id": "9b2c3d4e-5717-4562-b3fc-2c963f66afa6",
- "createdDate": "2024-03-10T09:00:00.000Z",
- "createdBy": {
- "id": "500",
- "userName": "jdoe",
- "firstName": "John",
- "lastName": "Doe"
}, - "modifiedDate": "2024-03-10T09:00:00.000Z",
- "modifiedBy": {
- "id": "500",
- "userName": "jdoe",
- "firstName": "John",
- "lastName": "Doe"
}, - "version": {
- "id": 1,
- "current": true
}, - "file": {
- "name": "clean_filenames.js",
- "content": "ZnVuY3Rpb24gdmFsaWRhdGUuLi4=",
}
}
}
]
}