Introduction
The Falcon Management ERP System is a fully integrated platform designed specifically for businesses that manage falcon feeding, medical care, training operations, and cost management. The system centralizes all operational data, automates workflows, and provides a unified dashboard that enables managers, veterinarians, trainers, and finance teams to collaborate seamlessly.
Built to support precision, traceability, and efficiency, the ERP ensures every falcon receives optimal care while giving management full visibility across all departments.
The Falcon Management ERP System empowers organizations to professionally manage every stage of falcon care—from feeding and health treatment to training and financial analysis. It improves efficiency, reduces operational errors, supports cost control, and ensures that each falcon receives the best possible care in a structured, measurable way.
The Falcon ERP API provides unified access to all operations related to feeding, medical care, training, and costing.
It allows external systems to manage falcon profiles, record daily activities, track medical treatments, schedule training sessions, and calculate operational costs.
This API ensures consistent data flow across all departments and supports smooth integration with mobile apps, dashboards, and third-party services.
Access Requirements
Before using this API, you must obtain your App Key, Secret Key, and the implementation details for X-SIGNATURE from the system administrator.
All API requests must include these credentials; any request without them will be rejected.
https://falcon-erp-backend-dev.dafagate.com/api/v1
Common Errors
A guide to consistent error response formats used across all endpoints.
Error 401 – Unauthorized
The request requires authentication. The user is either not logged in or does not have a valid access token.
{
"message": "Unauthorized",
"success": false
}
Error 403 – Forbidden
The request was understood, but the server refuses to authorize it. The user does not have permission to perform this action.
{
"message": "You are not allowed to perform this action",
"success": false
}
Error 404 – Not Found
The requested resource could not be found on the server. It may have been moved or deleted.
{
"message": "Resource not found",
"success": false
}
Error 405 – Method Not Allowed
The HTTP method used is not supported for this endpoint. Check the allowed request methods.
{
"message": "Method not allowed",
"success": false
}
Error 419 – Page Expired
The session or CSRF token has expired. Please refresh the page and try again.
{
"message": "Page Expired",
"success": false
}
Error 422 – Unprocessable Entity
The server understood the request, but the submitted data was invalid. Please review and correct the errors.(Errors may be return array or string)
{
"errors": [],
"message": "Validation Error",
"success": false
}
Error 500 – Internal Server Error
An unexpected error occurred on the server. Please try again later or contact support.
{
"message": "Server Error",
"success": false
}
Admin Login
Authentication
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| step | integer | 1 |
| string | admin@base.com | |
| password | string | P@ssw0rd |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| step | required, integer, allowed: 1, 2 |
| required, valid email | |
| password | required if step = 1 |
| otp | required if step = 2, 6 digits |
{
"success": true,
"message": "Welcome Admin",
"data": {
"id": 1,
"name": "Admin",
"email": "admin@base.com",
"phone": "000000000000",
"created_at": "2026-07-06",
"is_active": true,
"avatar": null,
"roles": [
{
"id": 1,
"name": "Default Role"
},
{
"id": 2,
"name": "Super Admin Role "
}
],
"token": "2|uzULC5uQ8r07NRIsPu5FMngQT2wOM52h9iWa4GvPd94ea9f1",
"token_type": "Bearer",
"expires_in": null
}
}
Admin Logout
Authentication
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Good by.",
"data": []
}
Forget Password Request
Authentication
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| string | admin@base.com |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| required, valid email, exists admins,email |
{
"success": true,
"message": "Please check your email",
"data": {
"token": "SJXwJKTiW6hxnFSn7i7IyScUUYpIQSCM9o5L4qmZBgcHlaNBzQKpe05QPKNrbPIw"
}
}
Verify OTP
Authentication
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| string | admin@base.com | |
| otp | string | 123456 |
| token | string | token Key |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| required, valid email, exists admins,email | |
| otp | required, 6 digits |
| token | required, exists admins,change_password_token |
{
"success": true,
"message": "Your Otp Verified successfully.",
"data": []
}
Reset Password
Authentication
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| string | admin@base.com | |
| otp | string | 123456 |
| token | string | token Key |
| password | string | P@ssw0rd |
| password_confirm | string | P@ssw0rd |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| required, valid email, exists admins,email | |
| password | required, StrongPassword |
| password_confirm | required, same |
| otp | required, 6 digits |
| token | required, exists admins,change_password_token |
{
"success": true,
"message": "Password reset successfully.",
"data": []
}
Get My Permissions
Get permissions of the authenticated admin.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Permissions retrieved successfully.",
"data": [
"dashboard-fetch",
"roles-fetch",
"roles-create",
"roles-read",
"roles-update",
"roles-delete",
"admins-fetch",
"admins-create",
"admins-read",
"admins-update",
"admins-delete",
"falcon-fetch",
"falcon-create",
"falcon-read",
"falcon-update",
"falcon-delete",
"eggs-fetch",
"eggs-create",
"eggs-read",
"eggs-update",
"eggs-delete",
"eggs-attachments-fetch",
"eggs-attachments-create",
"eggs-attachments-read",
"eggs-attachments-update",
"eggs-attachments-delete",
"eggs-media-fetch",
"eggs-media-create",
"eggs-media-read",
"eggs-media-update",
"eggs-media-delete",
"eggs-overview-fetch",
"eggs-overview-create",
"eggs-overview-read",
"eggs-overview-update",
"eggs-overview-delete",
"eggs-locations-fetch",
"eggs-locations-create",
"eggs-locations-read",
"eggs-locations-update",
"eggs-locations-delete",
"eggs-movements-fetch",
"eggs-movements-create",
"eggs-movements-read",
"eggs-movements-update",
"eggs-movements-delete",
"eggs-medical-fetch",
"eggs-medical-create",
"eggs-medical-read",
"eggs-medical-update",
"eggs-medical-delete",
"eggs-incubator-fetch",
"eggs-incubator-create",
"eggs-incubator-read",
"eggs-incubator-update",
"eggs-incubator-delete",
"eggs-events-fetch",
"eggs-events-create",
"eggs-events-read",
"eggs-events-update",
"eggs-events-delete",
"eggs-clutches-fetch",
"eggs-clutches-create",
"eggs-clutches-read",
"eggs-clutches-update",
"eggs-clutches-delete",
"eggs-costing-fetch",
"eggs-costing-create",
"eggs-costing-read",
"eggs-costing-update",
"eggs-costing-delete",
"locations-facilities-fetch",
"locations-facilities-create",
"locations-facilities-read",
"locations-facilities-update",
"locations-facilities-delete",
"locations-buildings-fetch",
"locations-buildings-create",
"locations-buildings-read",
"locations-buildings-update",
"locations-buildings-delete",
"locations-rooms-fetch",
"locations-rooms-create",
"locations-rooms-read",
"locations-rooms-update",
"locations-rooms-delete",
"locations-subunits-fetch",
"locations-subunits-create",
"locations-subunits-read",
"locations-subunits-update",
"locations-subunits-delete",
"locations-externals-fetch",
"locations-externals-create",
"locations-externals-read",
"locations-externals-update",
"locations-externals-delete",
"inventory-feeding-fetch",
"inventory-feeding-create",
"inventory-feeding-read",
"inventory-feeding-update",
"inventory-feeding-delete",
"inventory-medication-fetch",
"inventory-medication-create",
"inventory-medication-read",
"inventory-medication-update",
"inventory-medication-delete",
"inventory-equipment-fetch",
"inventory-equipment-create",
"inventory-equipment-read",
"inventory-equipment-update",
"inventory-equipment-delete",
"inventory-suppliers-fetch",
"inventory-suppliers-create",
"inventory-suppliers-read",
"inventory-suppliers-update",
"inventory-suppliers-delete",
"inventory-purchased-fetch",
"inventory-purchased-create",
"inventory-purchased-read",
"inventory-purchased-update",
"inventory-batches-fetch",
"inventory-batches-read",
"inventory-scraps-fetch",
"inventory-scraps-create",
"inventory-scraps-read",
"inventory-logs-fetch",
"inventory-logs-read",
"inventory-alerts-fetch",
"inventory-alerts-read",
"locations-settings-country-fetch",
"locations-settings-country-create",
"locations-settings-country-read",
"locations-settings-country-update",
"locations-settings-country-delete",
"locations-settings-city-fetch",
"locations-settings-city-create",
"locations-settings-city-read",
"locations-settings-city-update",
"locations-settings-city-delete",
"locations-settings-type-fetch",
"locations-settings-type-create",
"locations-settings-type-read",
"locations-settings-type-update",
"locations-settings-type-delete",
"locations-settings-subunit-type-fetch",
"locations-settings-subunit-type-create",
"locations-settings-subunit-type-read",
"locations-settings-subunit-type-update",
"locations-settings-subunit-type-delete",
"locations-settings-subunit-sub-type-fetch",
"locations-settings-subunit-sub-type-create",
"locations-settings-subunit-sub-type-read",
"locations-settings-subunit-sub-type-update",
"locations-settings-subunit-sub-type-delete",
"feeding-settings-category-fetch",
"feeding-settings-category-create",
"feeding-settings-category-read",
"feeding-settings-category-update",
"feeding-settings-category-delete",
"feeding-settings-unit-fetch",
"feeding-settings-unit-create",
"feeding-settings-unit-read",
"feeding-settings-unit-update",
"feeding-settings-unit-delete",
"feeding-settings-meals-type-fetch",
"feeding-settings-meals-type-create",
"feeding-settings-meals-type-read",
"feeding-settings-meals-type-update",
"feeding-settings-meals-type-delete",
"medical-settings-category-fetch",
"medical-settings-category-create",
"medical-settings-category-read",
"medical-settings-category-update",
"medical-settings-category-delete",
"medical-settings-unit-fetch",
"medical-settings-unit-create",
"medical-settings-unit-read",
"medical-settings-unit-update",
"medical-settings-unit-delete",
"medical-settings-medicine-category-fetch",
"medical-settings-medicine-category-create",
"medical-settings-medicine-category-read",
"medical-settings-medicine-category-update",
"medical-settings-medicine-category-delete",
"medical-settings-medicine-form-fetch",
"medical-settings-medicine-form-create",
"medical-settings-medicine-form-read",
"medical-settings-medicine-form-update",
"medical-settings-medicine-form-delete",
"animals-settings-species-fetch",
"animals-settings-species-create",
"animals-settings-species-read",
"animals-settings-species-update",
"animals-settings-species-delete",
"animals-settings-seller-type-fetch",
"animals-settings-seller-type-create",
"animals-settings-seller-type-read",
"animals-settings-seller-type-update",
"animals-settings-seller-type-delete",
"animals-settings-gift-type-fetch",
"animals-settings-gift-type-create",
"animals-settings-gift-type-read",
"animals-settings-gift-type-update",
"animals-settings-gift-type-delete",
"animals-settings-color-fetch",
"animals-settings-color-create",
"animals-settings-color-read",
"animals-settings-color-update",
"animals-settings-color-delete",
"falcon-settings-gender-fetch",
"falcon-settings-gender-create",
"falcon-settings-gender-read",
"falcon-settings-gender-update",
"falcon-settings-gender-delete",
"falcon-settings-age-fetch",
"falcon-settings-age-create",
"falcon-settings-age-read",
"falcon-settings-age-update",
"falcon-settings-age-delete",
"falcon-settings-status-fetch",
"falcon-settings-status-create",
"falcon-settings-status-read",
"falcon-settings-status-update",
"falcon-settings-status-delete",
"falcon-settings-id-fetch",
"falcon-settings-id-create",
"falcon-settings-id-read",
"falcon-settings-id-update",
"falcon-settings-id-delete",
"falcon-settings-behavior-fetch",
"falcon-settings-behavior-create",
"falcon-settings-behavior-read",
"falcon-settings-behavior-update",
"falcon-settings-behavior-delete",
"falcon-settings-exit-type-fetch",
"falcon-settings-exit-type-create",
"falcon-settings-exit-type-read",
"falcon-settings-exit-type-update",
"falcon-settings-exit-type-delete",
"falcon-settings-reason-fetch",
"falcon-settings-reason-create",
"falcon-settings-reason-read",
"falcon-settings-reason-update",
"falcon-settings-reason-delete",
"eggs-settings-health-status-fetch",
"eggs-settings-health-status-create",
"eggs-settings-health-status-read",
"eggs-settings-health-status-update",
"eggs-settings-health-status-delete",
"eggs-settings-reason-fetch",
"eggs-settings-reason-create",
"eggs-settings-reason-read",
"eggs-settings-reason-update",
"eggs-settings-reason-delete",
"medical-settings-severity-fetch",
"medical-settings-severity-create",
"medical-settings-severity-read",
"medical-settings-severity-update",
"medical-settings-severity-delete",
"training-settings-category-fetch",
"training-settings-category-create",
"training-settings-category-read",
"training-settings-category-update",
"training-settings-category-delete",
"training-settings-rate-fetch",
"training-settings-rate-create",
"training-settings-rate-read",
"training-settings-rate-update",
"training-settings-rate-delete",
"inventory-settings-category-fetch",
"inventory-settings-category-create",
"inventory-settings-category-read",
"inventory-settings-category-update",
"inventory-settings-category-delete",
"settings-system-setup-general-fetch",
"settings-system-setup-localization-fetch",
"settings-system-setup-id-rule-fetch",
"settings-system-setup-automation-fetch",
"settings-system-setup-security-fetch",
"settings-system-setup-integrations-fetch",
"settings-system-setup-notifications-fetch"
]
}
Create Admin
Create a new Admin.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | string | Admin 2 |
| string | admin2@gmail.com | |
| phone | string | 01112226666 |
| password | string | P@ss0rd |
| roles | array | [ { "role_id": 1 }, { "role_id": 2 } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | required, string, max 255 |
| required, string, max 255, valid email, unique admins,email | |
| phone | required, string, min 7, max 15, regex, unique admins,phone |
| password | required, StrongPassword |
| avatar | optional, image, types: jpeg,png,jpg, max 2048 |
| is_active | optional, true/false |
| roles | required, array, min 1 |
| roles[].role_id | required, integer, exists roles,id |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 2,
"name": "Admin 2",
"email": "admin2@gmail.com",
"phone": "01112226666",
"created_at": "2026-07-06",
"is_active": false
}
}
Get Admin List
Retrieve a list of Admin.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 2,
"name": "Admin 2",
"email": "admin2@gmail.com",
"phone": "01112226666",
"created_at": "2026-07-06",
"is_active": true,
"avatar": null,
"roles": [
{
"id": 1,
"name": "Default Role"
},
{
"id": 2,
"name": "Super Admin Role "
}
]
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Get Admin Details
Retrieve Admin details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 2,
"name": "Admin 2",
"email": "admin2@gmail.com",
"phone": "01112226666",
"created_at": "2026-07-06",
"is_active": true,
"avatar": null,
"roles": [
{
"id": 1,
"name": "Default Role"
},
{
"id": 2,
"name": "Super Admin Role "
}
]
}
}
Update Admin
Update an existing Admin.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | string | Admin 2 |
| string | admin2@gmail.com | |
| phone | string | 01112226666 |
| password | string | P@ss0rd |
| roles | array | [ { "role_id": 1 }, { "role_id": 2 } ] |
| id | integer | 2 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists admins,id |
| name | required, string, max 255 |
| required, string, max 255, valid email, Unique | |
| phone | required, string, min 7, max 15, regex, Unique |
| password | optional, StrongPassword |
| avatar | optional, image, types: jpeg,png,jpg,gif, max 2048 |
| is_active | optional, true/false |
| roles | required, array, min 1 |
| roles[].role_id | required, integer, exists roles,id |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "Admin 2",
"email": "admin2@gmail.com",
"phone": "01112226666",
"created_at": "2026-07-06",
"is_active": true
}
}
Toggle Admin Status
Switch the Admin status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "Admin 2",
"email": "admin2@gmail.com",
"phone": "01112226666",
"created_at": "2026-07-06",
"is_active": false
}
}
Delete Admin
Delete a Admin.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": null
}
Get Deleted Admin
List deleted Admin.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 2,
"name": "Admin 2",
"email": "admin2@gmail.com",
"phone": "01112226666",
"created_at": "2026-07-06",
"is_active": false,
"avatar": null,
"roles": [
{
"id": 1,
"name": "Default Role"
},
{
"id": 2,
"name": "Super Admin Role "
}
],
"delete_reason": null
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Restore Admin
Restore deleted Admin.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "Admin 2",
"email": "admin2@gmail.com",
"phone": "01112226666",
"created_at": "2026-07-06",
"is_active": false
}
}
Permanently Delete Admin
Force delete Admin.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Role
Create a new Role.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "ar": "أختبار", "en": "Test Role" } |
| permissions | array | [ { "permission_id": 1, "model_id": 1 } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | required |
| name.ar | required, ArabicRoleName, UniqueTranslationName |
| name.en | required, EnglishRoleName, UniqueTranslationName |
| permissions | required, array, min 1, DoesNotContainAllPermissions |
| permissions[].permission_id | required, integer, exists permissions,id |
| permissions[].model_id | required, integer, CheckPermissionInModule |
| permissions[].name | optional, string |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"updated_at": "2026-07-06T10:59:44.000000Z",
"created_at": "2026-07-06T10:59:44.000000Z",
"id": 3
}
}
Get Role List
Retrieve a list of Role.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 2,
"name": "Super Admin Role ",
"admins": [
{
"id": 1,
"name": "Admin",
"email": "admin@base.com",
"phone": "000000000000",
"created_at": "2026-07-06",
"is_active": true
},
{
"id": 2,
"name": "Admin 2",
"email": "admin2@gmail.com",
"phone": "01112226666",
"created_at": "2026-07-06",
"is_active": true
}
],
"admins_count": 2,
"is_active": true,
"created_at": "2026-07-06T10:59:40.000000Z"
},
{
"id": 3,
"name": "Test Role",
"admins": [],
"admins_count": 0,
"is_active": true,
"created_at": "2026-07-06T10:59:44.000000Z"
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 2,
"last_page": 1
}
}
Get Role Details
Retrieve Role details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 3,
"name": "Test Role",
"permissions": [
{
"id": 563,
"name": "dashboard-fetch"
}
],
"name_translate": {
"ar": "أختبار",
"en": "Test Role"
},
"admins": [],
"admins_count": 0,
"is_active": true,
"created_at": "2026-07-06T10:59:44.000000Z"
}
}
Update Role
Update an existing Role.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| id | integer | 3 |
| name | array | { "ar": "أختبار", "en": "Test Role" } |
| permissions | array | [ { "permission_id": 1, "model_id": 1 } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, exists roles,id |
| name | required |
| name.ar | required, ArabicRoleName, UniqueTranslationName |
| name.en | required, EnglishRoleName, UniqueTranslationName |
| permissions | required, array, min 1, DoesNotContainAllPermissions |
| permissions[].permission_id | required, integer, exists permissions,id |
| permissions[].model_id | required, integer, CheckPermissionInModule |
| permissions[].name | optional, string |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 3,
"is_active": 1,
"deleted_at": null,
"delete_reason": null,
"created_at": "2026-07-06T10:59:44.000000Z",
"updated_at": "2026-07-06T10:59:44.000000Z"
}
}
Toggle Role Status
Switch the Role status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 3,
"is_active": false,
"deleted_at": null,
"delete_reason": null,
"created_at": "2026-07-06T10:59:44.000000Z",
"updated_at": "2026-07-06T11:00:17.000000Z",
"admins": []
}
}
Delete Role
Delete a Role.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Get Deleted Role
List deleted Role.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 3,
"name": "Test Role",
"is_active": false,
"created_at": "2026-07-06T10:59:44.000000Z",
"delete_reason": null
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Restore Role
Restore deleted Role.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 3,
"is_active": 0,
"deleted_at": null,
"delete_reason": null,
"created_at": "2026-07-06T10:59:44.000000Z",
"updated_at": "2026-07-06T11:01:04.000000Z"
}
}
Permanently Delete Role
Force delete Role.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Get Model List
Retrieve a list of Model.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"dashboard": [
{
"id": 1,
"key": "dashboard",
"title": "Dashboard",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "dashboard-fetch"
}
]
}
],
"roles": [
{
"id": 2,
"key": "roles",
"title": "Roles",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "roles-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "roles-create"
},
{
"id": 3,
"title": "Read Data",
"name": "roles-read"
},
{
"id": 4,
"title": "Update Data",
"name": "roles-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "roles-delete"
}
]
}
],
"admins": [
{
"id": 3,
"key": "admins",
"title": "Admins",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "admins-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "admins-create"
},
{
"id": 3,
"title": "Read Data",
"name": "admins-read"
},
{
"id": 4,
"title": "Update Data",
"name": "admins-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "admins-delete"
}
]
}
],
"falcon": [
{
"id": 4,
"key": "falcon",
"title": "Falcons",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "falcon-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "falcon-create"
},
{
"id": 3,
"title": "Read Data",
"name": "falcon-read"
},
{
"id": 4,
"title": "Update Data",
"name": "falcon-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "falcon-delete"
}
]
},
{
"id": 46,
"key": "falcon-settings-gender",
"title": "Gender",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "falcon-settings-gender-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "falcon-settings-gender-create"
},
{
"id": 3,
"title": "Read Data",
"name": "falcon-settings-gender-read"
},
{
"id": 4,
"title": "Update Data",
"name": "falcon-settings-gender-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "falcon-settings-gender-delete"
}
]
},
{
"id": 47,
"key": "falcon-settings-age",
"title": "Age",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "falcon-settings-age-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "falcon-settings-age-create"
},
{
"id": 3,
"title": "Read Data",
"name": "falcon-settings-age-read"
},
{
"id": 4,
"title": "Update Data",
"name": "falcon-settings-age-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "falcon-settings-age-delete"
}
]
},
{
"id": 48,
"key": "falcon-settings-status",
"title": "Status",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "falcon-settings-status-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "falcon-settings-status-create"
},
{
"id": 3,
"title": "Read Data",
"name": "falcon-settings-status-read"
},
{
"id": 4,
"title": "Update Data",
"name": "falcon-settings-status-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "falcon-settings-status-delete"
}
]
},
{
"id": 49,
"key": "falcon-settings-id",
"title": "ID Type",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "falcon-settings-id-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "falcon-settings-id-create"
},
{
"id": 3,
"title": "Read Data",
"name": "falcon-settings-id-read"
},
{
"id": 4,
"title": "Update Data",
"name": "falcon-settings-id-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "falcon-settings-id-delete"
}
]
},
{
"id": 50,
"key": "falcon-settings-behavior",
"title": "Behavior",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "falcon-settings-behavior-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "falcon-settings-behavior-create"
},
{
"id": 3,
"title": "Read Data",
"name": "falcon-settings-behavior-read"
},
{
"id": 4,
"title": "Update Data",
"name": "falcon-settings-behavior-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "falcon-settings-behavior-delete"
}
]
},
{
"id": 51,
"key": "falcon-settings-exit-type",
"title": "Exit Type",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "falcon-settings-exit-type-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "falcon-settings-exit-type-create"
},
{
"id": 3,
"title": "Read Data",
"name": "falcon-settings-exit-type-read"
},
{
"id": 4,
"title": "Update Data",
"name": "falcon-settings-exit-type-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "falcon-settings-exit-type-delete"
}
]
},
{
"id": 52,
"key": "falcon-settings-reason",
"title": "Reason",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "falcon-settings-reason-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "falcon-settings-reason-create"
},
{
"id": 3,
"title": "Read Data",
"name": "falcon-settings-reason-read"
},
{
"id": 4,
"title": "Update Data",
"name": "falcon-settings-reason-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "falcon-settings-reason-delete"
}
]
}
],
"eggs": [
{
"id": 5,
"key": "eggs",
"title": "Eggs",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "eggs-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "eggs-create"
},
{
"id": 3,
"title": "Read Data",
"name": "eggs-read"
},
{
"id": 4,
"title": "Update Data",
"name": "eggs-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "eggs-delete"
}
]
},
{
"id": 6,
"key": "eggs-attachments",
"title": "Eggs Attachments",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "eggs-attachments-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "eggs-attachments-create"
},
{
"id": 3,
"title": "Read Data",
"name": "eggs-attachments-read"
},
{
"id": 4,
"title": "Update Data",
"name": "eggs-attachments-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "eggs-attachments-delete"
}
]
},
{
"id": 7,
"key": "eggs-media",
"title": "Eggs Media",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "eggs-media-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "eggs-media-create"
},
{
"id": 3,
"title": "Read Data",
"name": "eggs-media-read"
},
{
"id": 4,
"title": "Update Data",
"name": "eggs-media-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "eggs-media-delete"
}
]
},
{
"id": 8,
"key": "eggs-overview",
"title": "Eggs Overview",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "eggs-overview-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "eggs-overview-create"
},
{
"id": 3,
"title": "Read Data",
"name": "eggs-overview-read"
},
{
"id": 4,
"title": "Update Data",
"name": "eggs-overview-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "eggs-overview-delete"
}
]
},
{
"id": 9,
"key": "eggs-locations",
"title": "Eggs Locations",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "eggs-locations-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "eggs-locations-create"
},
{
"id": 3,
"title": "Read Data",
"name": "eggs-locations-read"
},
{
"id": 4,
"title": "Update Data",
"name": "eggs-locations-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "eggs-locations-delete"
}
]
},
{
"id": 10,
"key": "eggs-movements",
"title": "Eggs Movements",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "eggs-movements-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "eggs-movements-create"
},
{
"id": 3,
"title": "Read Data",
"name": "eggs-movements-read"
},
{
"id": 4,
"title": "Update Data",
"name": "eggs-movements-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "eggs-movements-delete"
}
]
},
{
"id": 11,
"key": "eggs-medical",
"title": "Eggs Medical",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "eggs-medical-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "eggs-medical-create"
},
{
"id": 3,
"title": "Read Data",
"name": "eggs-medical-read"
},
{
"id": 4,
"title": "Update Data",
"name": "eggs-medical-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "eggs-medical-delete"
}
]
},
{
"id": 12,
"key": "eggs-incubator",
"title": "Eggs Incubator",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "eggs-incubator-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "eggs-incubator-create"
},
{
"id": 3,
"title": "Read Data",
"name": "eggs-incubator-read"
},
{
"id": 4,
"title": "Update Data",
"name": "eggs-incubator-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "eggs-incubator-delete"
}
]
},
{
"id": 13,
"key": "eggs-events",
"title": "Eggs Events",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "eggs-events-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "eggs-events-create"
},
{
"id": 3,
"title": "Read Data",
"name": "eggs-events-read"
},
{
"id": 4,
"title": "Update Data",
"name": "eggs-events-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "eggs-events-delete"
}
]
},
{
"id": 14,
"key": "eggs-clutches",
"title": "Eggs Clutches",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "eggs-clutches-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "eggs-clutches-create"
},
{
"id": 3,
"title": "Read Data",
"name": "eggs-clutches-read"
},
{
"id": 4,
"title": "Update Data",
"name": "eggs-clutches-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "eggs-clutches-delete"
}
]
},
{
"id": 15,
"key": "eggs-costing",
"title": "Eggs Costing",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "eggs-costing-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "eggs-costing-create"
},
{
"id": 3,
"title": "Read Data",
"name": "eggs-costing-read"
},
{
"id": 4,
"title": "Update Data",
"name": "eggs-costing-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "eggs-costing-delete"
}
]
},
{
"id": 53,
"key": "eggs-settings-health-status",
"title": "Health Status",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "eggs-settings-health-status-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "eggs-settings-health-status-create"
},
{
"id": 3,
"title": "Read Data",
"name": "eggs-settings-health-status-read"
},
{
"id": 4,
"title": "Update Data",
"name": "eggs-settings-health-status-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "eggs-settings-health-status-delete"
}
]
},
{
"id": 54,
"key": "eggs-settings-reason",
"title": "Reason",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "eggs-settings-reason-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "eggs-settings-reason-create"
},
{
"id": 3,
"title": "Read Data",
"name": "eggs-settings-reason-read"
},
{
"id": 4,
"title": "Update Data",
"name": "eggs-settings-reason-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "eggs-settings-reason-delete"
}
]
}
],
"locations": [
{
"id": 16,
"key": "locations-facilities",
"title": "Facilities",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "locations-facilities-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "locations-facilities-create"
},
{
"id": 3,
"title": "Read Data",
"name": "locations-facilities-read"
},
{
"id": 4,
"title": "Update Data",
"name": "locations-facilities-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "locations-facilities-delete"
}
]
},
{
"id": 17,
"key": "locations-buildings",
"title": "Buildings",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "locations-buildings-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "locations-buildings-create"
},
{
"id": 3,
"title": "Read Data",
"name": "locations-buildings-read"
},
{
"id": 4,
"title": "Update Data",
"name": "locations-buildings-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "locations-buildings-delete"
}
]
},
{
"id": 18,
"key": "locations-rooms",
"title": "Rooms",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "locations-rooms-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "locations-rooms-create"
},
{
"id": 3,
"title": "Read Data",
"name": "locations-rooms-read"
},
{
"id": 4,
"title": "Update Data",
"name": "locations-rooms-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "locations-rooms-delete"
}
]
},
{
"id": 19,
"key": "locations-subunits",
"title": "Subunits",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "locations-subunits-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "locations-subunits-create"
},
{
"id": 3,
"title": "Read Data",
"name": "locations-subunits-read"
},
{
"id": 4,
"title": "Update Data",
"name": "locations-subunits-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "locations-subunits-delete"
}
]
},
{
"id": 20,
"key": "locations-externals",
"title": "Externals",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "locations-externals-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "locations-externals-create"
},
{
"id": 3,
"title": "Read Data",
"name": "locations-externals-read"
},
{
"id": 4,
"title": "Update Data",
"name": "locations-externals-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "locations-externals-delete"
}
]
},
{
"id": 30,
"key": "locations-settings-country",
"title": "Country",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "locations-settings-country-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "locations-settings-country-create"
},
{
"id": 3,
"title": "Read Data",
"name": "locations-settings-country-read"
},
{
"id": 4,
"title": "Update Data",
"name": "locations-settings-country-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "locations-settings-country-delete"
}
]
},
{
"id": 31,
"key": "locations-settings-city",
"title": "City",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "locations-settings-city-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "locations-settings-city-create"
},
{
"id": 3,
"title": "Read Data",
"name": "locations-settings-city-read"
},
{
"id": 4,
"title": "Update Data",
"name": "locations-settings-city-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "locations-settings-city-delete"
}
]
},
{
"id": 32,
"key": "locations-settings-type",
"title": "Type",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "locations-settings-type-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "locations-settings-type-create"
},
{
"id": 3,
"title": "Read Data",
"name": "locations-settings-type-read"
},
{
"id": 4,
"title": "Update Data",
"name": "locations-settings-type-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "locations-settings-type-delete"
}
]
},
{
"id": 33,
"key": "locations-settings-subunit-type",
"title": "Subunit Type",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "locations-settings-subunit-type-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "locations-settings-subunit-type-create"
},
{
"id": 3,
"title": "Read Data",
"name": "locations-settings-subunit-type-read"
},
{
"id": 4,
"title": "Update Data",
"name": "locations-settings-subunit-type-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "locations-settings-subunit-type-delete"
}
]
},
{
"id": 34,
"key": "locations-settings-subunit-sub-type",
"title": "Subunit Sub Type",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "locations-settings-subunit-sub-type-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "locations-settings-subunit-sub-type-create"
},
{
"id": 3,
"title": "Read Data",
"name": "locations-settings-subunit-sub-type-read"
},
{
"id": 4,
"title": "Update Data",
"name": "locations-settings-subunit-sub-type-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "locations-settings-subunit-sub-type-delete"
}
]
}
],
"inventory": [
{
"id": 21,
"key": "inventory-feeding",
"title": "Feeding Inventory",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "inventory-feeding-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "inventory-feeding-create"
},
{
"id": 3,
"title": "Read Data",
"name": "inventory-feeding-read"
},
{
"id": 4,
"title": "Update Data",
"name": "inventory-feeding-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "inventory-feeding-delete"
}
]
},
{
"id": 22,
"key": "inventory-medication",
"title": "Medication Inventory",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "inventory-medication-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "inventory-medication-create"
},
{
"id": 3,
"title": "Read Data",
"name": "inventory-medication-read"
},
{
"id": 4,
"title": "Update Data",
"name": "inventory-medication-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "inventory-medication-delete"
}
]
},
{
"id": 23,
"key": "inventory-equipment",
"title": "Equipment Inventory",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "inventory-equipment-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "inventory-equipment-create"
},
{
"id": 3,
"title": "Read Data",
"name": "inventory-equipment-read"
},
{
"id": 4,
"title": "Update Data",
"name": "inventory-equipment-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "inventory-equipment-delete"
}
]
},
{
"id": 24,
"key": "inventory-suppliers",
"title": "Suppliers",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "inventory-suppliers-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "inventory-suppliers-create"
},
{
"id": 3,
"title": "Read Data",
"name": "inventory-suppliers-read"
},
{
"id": 4,
"title": "Update Data",
"name": "inventory-suppliers-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "inventory-suppliers-delete"
}
]
},
{
"id": 25,
"key": "inventory-purchased",
"title": "Purchases",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "inventory-purchased-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "inventory-purchased-create"
},
{
"id": 3,
"title": "Read Data",
"name": "inventory-purchased-read"
},
{
"id": 4,
"title": "Update Data",
"name": "inventory-purchased-update"
}
]
},
{
"id": 26,
"key": "inventory-batches",
"title": "Batches",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "inventory-batches-fetch"
},
{
"id": 3,
"title": "Read Data",
"name": "inventory-batches-read"
}
]
},
{
"id": 27,
"key": "inventory-scraps",
"title": "Scrap",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "inventory-scraps-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "inventory-scraps-create"
},
{
"id": 3,
"title": "Read Data",
"name": "inventory-scraps-read"
}
]
},
{
"id": 28,
"key": "inventory-logs",
"title": "Logs",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "inventory-logs-fetch"
},
{
"id": 3,
"title": "Read Data",
"name": "inventory-logs-read"
}
]
},
{
"id": 29,
"key": "inventory-alerts",
"title": "Alerts",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "inventory-alerts-fetch"
},
{
"id": 3,
"title": "Read Data",
"name": "inventory-alerts-read"
}
]
},
{
"id": 58,
"key": "inventory-settings-category",
"title": "Category",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "inventory-settings-category-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "inventory-settings-category-create"
},
{
"id": 3,
"title": "Read Data",
"name": "inventory-settings-category-read"
},
{
"id": 4,
"title": "Update Data",
"name": "inventory-settings-category-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "inventory-settings-category-delete"
}
]
}
],
"feeding": [
{
"id": 35,
"key": "feeding-settings-category",
"title": "Category",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "feeding-settings-category-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "feeding-settings-category-create"
},
{
"id": 3,
"title": "Read Data",
"name": "feeding-settings-category-read"
},
{
"id": 4,
"title": "Update Data",
"name": "feeding-settings-category-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "feeding-settings-category-delete"
}
]
},
{
"id": 36,
"key": "feeding-settings-unit",
"title": "Unit",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "feeding-settings-unit-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "feeding-settings-unit-create"
},
{
"id": 3,
"title": "Read Data",
"name": "feeding-settings-unit-read"
},
{
"id": 4,
"title": "Update Data",
"name": "feeding-settings-unit-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "feeding-settings-unit-delete"
}
]
},
{
"id": 37,
"key": "feeding-settings-meals-type",
"title": "Meals Type",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "feeding-settings-meals-type-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "feeding-settings-meals-type-create"
},
{
"id": 3,
"title": "Read Data",
"name": "feeding-settings-meals-type-read"
},
{
"id": 4,
"title": "Update Data",
"name": "feeding-settings-meals-type-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "feeding-settings-meals-type-delete"
}
]
}
],
"medical": [
{
"id": 38,
"key": "medical-settings-category",
"title": "Category",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "medical-settings-category-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "medical-settings-category-create"
},
{
"id": 3,
"title": "Read Data",
"name": "medical-settings-category-read"
},
{
"id": 4,
"title": "Update Data",
"name": "medical-settings-category-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "medical-settings-category-delete"
}
]
},
{
"id": 39,
"key": "medical-settings-unit",
"title": "Unit",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "medical-settings-unit-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "medical-settings-unit-create"
},
{
"id": 3,
"title": "Read Data",
"name": "medical-settings-unit-read"
},
{
"id": 4,
"title": "Update Data",
"name": "medical-settings-unit-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "medical-settings-unit-delete"
}
]
},
{
"id": 40,
"key": "medical-settings-medicine-category",
"title": "Medicine Category",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "medical-settings-medicine-category-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "medical-settings-medicine-category-create"
},
{
"id": 3,
"title": "Read Data",
"name": "medical-settings-medicine-category-read"
},
{
"id": 4,
"title": "Update Data",
"name": "medical-settings-medicine-category-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "medical-settings-medicine-category-delete"
}
]
},
{
"id": 41,
"key": "medical-settings-medicine-form",
"title": "Medicine Form",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "medical-settings-medicine-form-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "medical-settings-medicine-form-create"
},
{
"id": 3,
"title": "Read Data",
"name": "medical-settings-medicine-form-read"
},
{
"id": 4,
"title": "Update Data",
"name": "medical-settings-medicine-form-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "medical-settings-medicine-form-delete"
}
]
},
{
"id": 55,
"key": "medical-settings-severity",
"title": "Severity",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "medical-settings-severity-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "medical-settings-severity-create"
},
{
"id": 3,
"title": "Read Data",
"name": "medical-settings-severity-read"
},
{
"id": 4,
"title": "Update Data",
"name": "medical-settings-severity-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "medical-settings-severity-delete"
}
]
}
],
"animals": [
{
"id": 42,
"key": "animals-settings-species",
"title": "Species",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "animals-settings-species-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "animals-settings-species-create"
},
{
"id": 3,
"title": "Read Data",
"name": "animals-settings-species-read"
},
{
"id": 4,
"title": "Update Data",
"name": "animals-settings-species-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "animals-settings-species-delete"
}
]
},
{
"id": 43,
"key": "animals-settings-seller-type",
"title": "Seller Type",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "animals-settings-seller-type-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "animals-settings-seller-type-create"
},
{
"id": 3,
"title": "Read Data",
"name": "animals-settings-seller-type-read"
},
{
"id": 4,
"title": "Update Data",
"name": "animals-settings-seller-type-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "animals-settings-seller-type-delete"
}
]
},
{
"id": 44,
"key": "animals-settings-gift-type",
"title": "Gift Type",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "animals-settings-gift-type-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "animals-settings-gift-type-create"
},
{
"id": 3,
"title": "Read Data",
"name": "animals-settings-gift-type-read"
},
{
"id": 4,
"title": "Update Data",
"name": "animals-settings-gift-type-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "animals-settings-gift-type-delete"
}
]
},
{
"id": 45,
"key": "animals-settings-color",
"title": "Color",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "animals-settings-color-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "animals-settings-color-create"
},
{
"id": 3,
"title": "Read Data",
"name": "animals-settings-color-read"
},
{
"id": 4,
"title": "Update Data",
"name": "animals-settings-color-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "animals-settings-color-delete"
}
]
}
],
"training": [
{
"id": 56,
"key": "training-settings-category",
"title": "Category",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "training-settings-category-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "training-settings-category-create"
},
{
"id": 3,
"title": "Read Data",
"name": "training-settings-category-read"
},
{
"id": 4,
"title": "Update Data",
"name": "training-settings-category-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "training-settings-category-delete"
}
]
},
{
"id": 57,
"key": "training-settings-rate",
"title": "Rate",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "training-settings-rate-fetch"
},
{
"id": 2,
"title": "Create Data",
"name": "training-settings-rate-create"
},
{
"id": 3,
"title": "Read Data",
"name": "training-settings-rate-read"
},
{
"id": 4,
"title": "Update Data",
"name": "training-settings-rate-update"
},
{
"id": 5,
"title": "Delete Data",
"name": "training-settings-rate-delete"
}
]
}
],
"settings": [
{
"id": 59,
"key": "settings-system-setup-general",
"title": "System Setup - General",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "settings-system-setup-general-fetch"
}
]
},
{
"id": 60,
"key": "settings-system-setup-localization",
"title": "System Setup - Localization",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "settings-system-setup-localization-fetch"
}
]
},
{
"id": 61,
"key": "settings-system-setup-id-rule",
"title": "System Setup - ID Rule",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "settings-system-setup-id-rule-fetch"
}
]
},
{
"id": 62,
"key": "settings-system-setup-automation",
"title": "System Setup - Automation",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "settings-system-setup-automation-fetch"
}
]
},
{
"id": 63,
"key": "settings-system-setup-security",
"title": "System Setup - Security",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "settings-system-setup-security-fetch"
}
]
},
{
"id": 64,
"key": "settings-system-setup-integrations",
"title": "System Setup - Integrations",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "settings-system-setup-integrations-fetch"
}
]
},
{
"id": 65,
"key": "settings-system-setup-notifications",
"title": "System Setup - Notifications",
"permissions": [
{
"id": 1,
"title": "Fetch Data",
"name": "settings-system-setup-notifications-fetch"
}
]
}
]
}
}
Get Model Details
Retrieve Model details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": []
}
Add System Setup — GENERAL
System setup — GENERAL (POST)
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| system_name | string | Falcon ERP |
| system_version | string | 1.0.0 |
| date_format | string | Y-m-d |
| time_format | string | H:i |
| default_timezone | string | Africa/Cairo |
| default_language | string | en |
| default_currency | string | EGP |
| maintenance_mode | boolean |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| system_name | required, string, max 255 |
| system_version | optional, string, max 100 |
| date_format | required, string, In |
| time_format | required, string, In |
| default_timezone | required, string, timezone |
| default_language | required, string, In |
| default_currency | required, string, In |
| maintenance_mode | required, true/false |
| system_logo | optional, image, types: jpg,jpeg,png,webp,svg, max 2048 |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"date_format": "Y-m-d",
"default_currency": "EGP",
"default_language": "en",
"default_timezone": "Africa\/Cairo",
"maintenance_mode": false,
"system_name": "Falcon ERP",
"system_version": "1.0.0",
"time_format": "H:i"
}
}
Add System Setup — LOCALIZATION
System setup — LOCALIZATION (POST)
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| number_format | string | #,##0.00 |
| currency_position | string | before |
| language_toggle | boolean | 1 |
| default_language | string | ar |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| number_format | required, string, max 50 |
| currency_position | required, string, In |
| language_toggle | required, true/false |
| default_language | required, string, In |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"currency_position": "before",
"default_language": "ar",
"language_toggle": true,
"number_format": "#,##0.00"
}
}
Add System Setup — ID_RULE
System setup — ID_RULE (POST)
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| rules | array | [ { "entity_type": "falcon", "prefix": "FAL", "sequence_start": 10000, "auto_increment": true }, { "entity_type": "egg", "prefix": "EGG", "sequence_start": 10001, "auto_increment": true }, { "entity_type": "clutch", "prefix": "CLU", "sequence_start": 10002, "auto_increment": true } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| rules | required, array, size |
| rules[].entity_type | required, string, In, distinct |
| rules[].prefix | required, string, min 2, max 20, regex |
| rules[].sequence_start | required, integer, digits_between |
| rules[].auto_increment | required, true/false |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"clutch": {
"prefix": "CLU",
"sequence_start": 10002,
"auto_increment": true
},
"egg": {
"prefix": "EGG",
"sequence_start": 10001,
"auto_increment": true
},
"falcon": {
"prefix": "FAL",
"sequence_start": 10000,
"auto_increment": true
}
}
}
Add System Setup — AUTOMATION
System setup — AUTOMATION (POST)
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| jobs | array | [ { "key": "data_backup", "name": "Nightly backup", "frequency": "daily", "status": "idle", "email": "automation@example.com", "is_active": true } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| jobs | required, array, min 1 |
| jobs[].key | required, string, In, distinct |
| jobs[].name | required, string, max 255 |
| jobs[].frequency | required, string, max 100 |
| jobs[].status | optional, string, max 50 |
| jobs[].email | required, valid email, max 255 |
| jobs[].is_active | required, true/false |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"jobs": [
{
"key": "data_backup",
"name": "Nightly backup",
"frequency": "daily",
"status": "idle",
"email": "automation@example.com",
"is_active": true
}
]
}
}
Add System Setup — SECURITY
System setup — SECURITY (POST)
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| min_password_length | integer | 8 |
| session_timeout | integer | 60 |
| login_attempt_limit | integer | 5 |
| account_lock_duration | integer | 30 |
| require_numbers | boolean | 1 |
| require_uppercase | boolean | 1 |
| require_special_chars | boolean |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| min_password_length | required, integer, min 6, max 128 |
| session_timeout | required, integer, min 1, max 1440 |
| login_attempt_limit | required, integer, min 1, max 10 |
| account_lock_duration | required, integer, min 1, max 1440 |
| require_numbers | required, true/false |
| require_uppercase | required, true/false |
| require_special_chars | required, true/false |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"account_lock_duration": 30,
"login_attempt_limit": 5,
"min_password_length": 8,
"require_numbers": true,
"require_special_chars": false,
"require_uppercase": true,
"session_timeout": 60
}
}
Add System Setup — INTEGRATIONS
System setup — INTEGRATIONS (POST)
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| services | array | [ { "key": "blockchain_rox", "endpoint_url": "https:\/\/api.example.com\/hook", "api_key": "sample-api-key" } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| services | required, array, min 1 |
| services[].key | required, string, In, distinct |
| services[].endpoint_url | required, url, max 1000 |
| services[].api_key | required, string, max 500 |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"services": [
{
"key": "blockchain_rox",
"endpoint_url": "https:\/\/api.example.com\/hook",
"api_key": "sample-api-key"
}
]
}
}
Add System Setup — NOTIFICATIONS
System setup — NOTIFICATIONS (POST)
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| alerts | array | [ { "alert_type": "health_alert", "email": true, "sms": false, "in_app": true } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| alerts | required, array, min 1 |
| alerts[].alert_type | required, string, In |
| alerts[].email | required, true/false |
| alerts[].sms | required, true/false |
| alerts[].in_app | required, true/false |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"alerts": [
{
"alert_type": "health_alert",
"email": true,
"sms": false,
"in_app": true
}
]
}
}
Get System Setup — GENERAL
System setup — GENERAL (GET)
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"system_name": "Falcon ERP",
"system_version": "1.0.0",
"date_format": "Y-m-d",
"time_format": "H:i",
"default_timezone": "Africa\/Cairo",
"default_language": "en",
"default_currency": "EGP",
"maintenance_mode": false
}
}
Get System Setup — LOCALIZATION
System setup — LOCALIZATION (GET)
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"currency_position": "before",
"default_language": "ar",
"language_toggle": true,
"number_format": "#,##0.00"
}
}
Get System Setup — ID_RULE
System setup — ID_RULE (GET)
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"clutch": {
"prefix": "CLU",
"sequence_start": 10002,
"auto_increment": true
},
"egg": {
"prefix": "EGG",
"sequence_start": 10001,
"auto_increment": true
},
"falcon": {
"prefix": "FAL",
"sequence_start": 10000,
"auto_increment": true
}
}
}
Get System Setup — AUTOMATION
System setup — AUTOMATION (GET)
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"jobs": [
{
"key": "data_backup",
"name": "Nightly backup",
"frequency": "daily",
"status": "idle",
"email": "automation@example.com",
"is_active": true
}
]
}
}
Get System Setup — SECURITY
System setup — SECURITY (GET)
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"account_lock_duration": 30,
"login_attempt_limit": 5,
"min_password_length": 8,
"require_numbers": true,
"require_special_chars": false,
"require_uppercase": true,
"session_timeout": 60
}
}
Get System Setup — INTEGRATIONS
System setup — INTEGRATIONS (GET)
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"services": [
{
"key": "blockchain_rox",
"endpoint_url": "https:\/\/api.example.com\/hook",
"api_key": "sample-api-key"
}
]
}
}
Get System Setup — NOTIFICATIONS
System setup — NOTIFICATIONS (GET)
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"alerts": [
{
"alert_type": "health_alert",
"email": true,
"sms": false,
"in_app": true
}
]
}
}
Create animals seller type
Create animals seller type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | anim-877 |
| name_ar | string | أختبار للاعدادات572 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 3,
"name": "anim-877"
}
}
Get animals seller type List
Get animals seller type List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 3,
"name": "anim-877",
"name_translate": {
"ar": "أختبار للاعدادات572",
"en": "anim-877"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single animals seller type
Show Single animals seller type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 3,
"name": "anim-877",
"name_translate": {
"ar": "أختبار للاعدادات572",
"en": "anim-877"
},
"is_active": true
}
}
Update animals seller type
Update animals seller type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | anim-849 |
| name_ar | string | أختبار للاعدادات496 |
| id | integer | 3 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,animals-seller-type |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 3,
"name": "anim-849"
}
}
Active Or InActive animals seller type
Update animals seller type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 3,
"name": "anim-849"
}
}
Delete animals seller type
Delete animals seller type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create animals gift type
Create animals gift type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | anim-777 |
| name_ar | string | أختبار للاعدادات860 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 4,
"name": "anim-777"
}
}
Get animals gift type List
Get animals gift type List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 4,
"name": "anim-777",
"name_translate": {
"ar": "أختبار للاعدادات860",
"en": "anim-777"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single animals gift type
Show Single animals gift type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 4,
"name": "anim-777",
"name_translate": {
"ar": "أختبار للاعدادات860",
"en": "anim-777"
},
"is_active": true
}
}
Update animals gift type
Update animals gift type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | anim-159 |
| name_ar | string | أختبار للاعدادات982 |
| id | integer | 4 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,animals-gift-type |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 4,
"name": "anim-159"
}
}
Active Or InActive animals gift type
Update animals gift type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 4,
"name": "anim-159"
}
}
Delete animals gift type
Delete animals gift type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create animals species
Create animals species
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | anim-373 |
| name_ar | string | أختبار للاعدادات935 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 6,
"name": "anim-373"
}
}
Get animals species List
Get animals species List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 6,
"name": "anim-373",
"name_translate": {
"ar": "أختبار للاعدادات935",
"en": "anim-373"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single animals species
Show Single animals species
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 6,
"name": "anim-373",
"name_translate": {
"ar": "أختبار للاعدادات935",
"en": "anim-373"
},
"is_active": true
}
}
Update animals species
Update animals species
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | anim-334 |
| name_ar | string | أختبار للاعدادات394 |
| id | integer | 6 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,animals-species |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 6,
"name": "anim-334"
}
}
Active Or InActive animals species
Update animals species
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 6,
"name": "anim-334"
}
}
Delete animals species
Delete animals species
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create animals color
Create animals color
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | anim-859 |
| name_ar | string | أختبار للاعدادات297 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 5,
"name": "anim-859"
}
}
Get animals color List
Get animals color List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 5,
"name": "anim-859",
"name_translate": {
"ar": "أختبار للاعدادات297",
"en": "anim-859"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single animals color
Show Single animals color
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 5,
"name": "anim-859",
"name_translate": {
"ar": "أختبار للاعدادات297",
"en": "anim-859"
},
"is_active": true
}
}
Update animals color
Update animals color
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | anim-584 |
| name_ar | string | أختبار للاعدادات311 |
| id | integer | 5 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,animals-color |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 5,
"name": "anim-584"
}
}
Active Or InActive animals color
Update animals color
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 5,
"name": "anim-584"
}
}
Delete animals color
Delete animals color
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create eggs health status
Create eggs health status
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | eggs-682 |
| name_ar | string | أختبار للاعدادات978 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 1,
"name": "eggs-682"
}
}
Get eggs health status List
Get eggs health status List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"name": "eggs-682",
"name_translate": {
"ar": "أختبار للاعدادات978",
"en": "eggs-682"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single eggs health status
Show Single eggs health status
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 1,
"name": "eggs-682",
"name_translate": {
"ar": "أختبار للاعدادات978",
"en": "eggs-682"
},
"is_active": true
}
}
Update eggs health status
Update eggs health status
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | eggs-519 |
| name_ar | string | أختبار للاعدادات344 |
| id | integer | 1 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,eggs-health-status |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "eggs-519"
}
}
Active Or InActive eggs health status
Update eggs health status
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "eggs-519"
}
}
Delete eggs health status
Delete eggs health status
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create eggs reason
Create eggs reason
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | eggs-449 |
| name_ar | string | أختبار للاعدادات313 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 2,
"name": "eggs-449"
}
}
Get eggs reason List
Get eggs reason List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 2,
"name": "eggs-449",
"name_translate": {
"ar": "أختبار للاعدادات313",
"en": "eggs-449"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single eggs reason
Show Single eggs reason
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 2,
"name": "eggs-449",
"name_translate": {
"ar": "أختبار للاعدادات313",
"en": "eggs-449"
},
"is_active": true
}
}
Update eggs reason
Update eggs reason
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | eggs-226 |
| name_ar | string | أختبار للاعدادات241 |
| id | integer | 2 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,eggs-reason |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "eggs-226"
}
}
Active Or InActive eggs reason
Update eggs reason
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "eggs-226"
}
}
Delete eggs reason
Delete eggs reason
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Egg (Existing)
Create a new Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| code | string | 5731238471 |
| type | string | eggs |
| origin_type | string | exist |
| image | string | photo1.jpg |
| father_id | integer | 1 |
| mother_id | integer | 1 |
| name | string | Egg Test |
| health_status_id | integer | 1 |
| reason_id | integer | 2 |
| color_id | integer | 5 |
| weight | integer | 2 |
| lay_date | string | 2024-03-01 |
| expected_hatch_date | string | 2024-04-01 |
| species_id | integer | 6 |
| facility_id | integer | 1 |
| building_id | integer | 2 |
| room_id | integer | 3 |
| sub_unit_id | integer | 4 |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 5,
"name": "Egg Test",
"code": "#EGG-10001",
"father": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"mother": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": false,
"code_id": "#EGG-10001",
"origin_type": {
"key": "exist",
"value": "Existing"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": 2,
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:02",
"note": null,
"health_status": {
"id": 1,
"name": "eggs-682"
},
"reason": {
"id": 2,
"name": "eggs-449"
},
"lay_date": "2024-03-01",
"expected_hatch_date": "2024-04-01"
}
}
Create Egg (Gift)
Create a new Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| code | string | 4941819790 |
| type | string | eggs |
| origin_type | string | gift |
| image | string | photo1.jpg |
| father_id | integer | 1 |
| mother_id | integer | 1 |
| name | string | Egg Gift Test |
| health_status_id | integer | 1 |
| reason_id | integer | 2 |
| color_id | integer | 5 |
| weight | integer | 2 |
| lay_date | string | 2024-03-01 |
| expected_hatch_date | string | 2024-04-01 |
| species_id | integer | 6 |
| facility_id | integer | 1 |
| building_id | integer | 2 |
| room_id | integer | 3 |
| sub_unit_id | integer | 4 |
| gift_type_id | integer | 4 |
| date | string | 2024-05-25 |
| price | integer | 100 |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 6,
"name": "Egg Gift Test",
"code": "#EGG-10002",
"father": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"mother": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": false,
"code_id": "#EGG-10002",
"origin_type": {
"key": "gift",
"value": "Gift"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": 2,
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:02",
"note": null,
"health_status": {
"id": 1,
"name": "eggs-682"
},
"reason": {
"id": 2,
"name": "eggs-449"
},
"lay_date": "2024-03-01",
"expected_hatch_date": "2024-04-01",
"gift_type": {
"id": 4,
"name": "anim-777"
},
"gift_date": "2024-05-25",
"gift_price": "100.00"
}
}
Create Egg (Purchased)
Create a new Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| code | string | 6799305694 |
| type | string | eggs |
| origin_type | string | purchased |
| image | string | photo1.jpg |
| father_id | integer | 1 |
| mother_id | integer | 1 |
| name | string | Egg Purchased Test |
| health_status_id | integer | 1 |
| reason_id | integer | 2 |
| color_id | integer | 5 |
| weight | integer | 2 |
| lay_date | string | 2024-03-01 |
| expected_hatch_date | string | 2024-04-01 |
| species_id | integer | 6 |
| facility_id | integer | 1 |
| building_id | integer | 2 |
| room_id | integer | 3 |
| sub_unit_id | integer | 4 |
| seller_name | string | Egg Seller |
| seller_type_id | integer | 3 |
| date | string | 2024-05-25 |
| price | integer | 250 |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 7,
"name": "Egg Purchased Test",
"code": "#EGG-10003",
"father": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"mother": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": false,
"code_id": "#EGG-10003",
"origin_type": {
"key": "purchased",
"value": "Purchased"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": 2,
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:02",
"note": null,
"health_status": {
"id": 1,
"name": "eggs-682"
},
"reason": {
"id": 2,
"name": "eggs-449"
},
"lay_date": "2024-03-01",
"expected_hatch_date": "2024-04-01",
"seller_name": "Egg Seller",
"seller_type": {
"id": 3,
"name": "anim-877"
},
"purchase_date": "2024-05-25",
"purchase_price": "250.00"
}
}
Create Egg (Clutch)
Create a new Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| origin_type | string | exist |
| father_id | integer | 1 |
| mother_id | integer | 1 |
| species_id | integer | 6 |
| lay_date | string | 2024-03-01 |
| expected_hatch_date | string | 2024-04-01 |
| clutch_name | string | Clutch Test |
| number_of_eggs | integer | 3 |
| breeding_room_id | integer | 3 |
| eggs | array | [ { "name": "Clutch Egg A", "weight": 2.1, "color_id": 5, "health_status_id": 1, "reason_id": 2, "facility_id": 1, "building_id": 2, "room_id": 3, "sub_unit_id": 4 }, { "name": "Clutch Egg B", "weight": 2.2, "color_id": 5, "health_status_id": 1, "reason_id": 2, "facility_id": 1, "building_id": 2, "room_id": 3, "sub_unit_id": 4 }, { "name": "Clutch Egg C", "weight": 2.3, "color_id": 5, "health_status_id": 1, "reason_id": 2, "facility_id": 1, "building_id": 2, "room_id": 3, "sub_unit_id": 4 } ] |
{
"success": true,
"message": "Clutch created successfully.",
"data": {
"id": 1,
"clutch_name": "Clutch Test",
"clutch_code": "CLU-10002",
"parents": {
"father": {
"id": 1,
"name": "Documentation Falcon",
"code": "#9873027247",
"age": null,
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": true
},
"mother": {
"id": 1,
"name": "Documentation Falcon",
"code": "#9873027247",
"age": null,
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": true
}
},
"species": {
"id": 6,
"name": "anim-373"
},
"breeding_room": {
"id": 3,
"name": "QA Room",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 30,
"total": 30,
"consumed": 0
},
"capacity_eggs": {
"available": 60,
"total": 60,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"lay_date": "2024-03-01",
"expected_hatch_date": "2024-04-01",
"number_of_eggs": 3,
"eggs": [
{
"id": 8,
"name": "Clutch Egg A",
"code": "#EGG-10004",
"father": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"mother": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": true
},
{
"id": 9,
"name": "Clutch Egg B",
"code": "#EGG-10005",
"father": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"mother": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": true
},
{
"id": 10,
"name": "Clutch Egg C",
"code": "#EGG-10006",
"father": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"mother": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": true
}
]
}
}
Get Animal List
Retrieve a list of Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 5,
"name": "Egg Test",
"code": "#EGG-10001",
"father": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"mother": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": true,
"code_id": "#EGG-10001",
"origin_type": {
"key": "exist",
"value": "Existing"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": "2.00",
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:02",
"note": null,
"health_status": {
"id": 1,
"name": "eggs-682"
},
"reason": {
"id": 2,
"name": "eggs-449"
},
"lay_date": "2024-03-01",
"expected_hatch_date": "2024-04-01"
},
{
"id": 6,
"name": "Egg Gift Test",
"code": "#EGG-10002",
"father": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"mother": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": true,
"code_id": "#EGG-10002",
"origin_type": {
"key": "gift",
"value": "Gift"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": "2.00",
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:02",
"note": null,
"health_status": {
"id": 1,
"name": "eggs-682"
},
"reason": {
"id": 2,
"name": "eggs-449"
},
"lay_date": "2024-03-01",
"expected_hatch_date": "2024-04-01",
"gift_type": {
"id": 4,
"name": "anim-777"
},
"gift_date": "2024-05-25",
"gift_price": "100.00"
},
{
"id": 7,
"name": "Egg Purchased Test",
"code": "#EGG-10003",
"father": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"mother": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": true,
"code_id": "#EGG-10003",
"origin_type": {
"key": "purchased",
"value": "Purchased"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": "2.00",
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:02",
"note": null,
"health_status": {
"id": 1,
"name": "eggs-682"
},
"reason": {
"id": 2,
"name": "eggs-449"
},
"lay_date": "2024-03-01",
"expected_hatch_date": "2024-04-01",
"seller_name": "Egg Seller",
"seller_type": {
"id": 3,
"name": "anim-877"
},
"purchase_date": "2024-05-25",
"purchase_price": "250.00"
},
{
"id": 8,
"name": "Clutch Egg A",
"code": "#EGG-10004",
"father": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"mother": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": true,
"code_id": "#EGG-10004",
"origin_type": {
"key": "exist",
"value": "Existing"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": "2.10",
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:03",
"note": null,
"health_status": {
"id": 1,
"name": "eggs-682"
},
"reason": {
"id": 2,
"name": "eggs-449"
},
"lay_date": "2024-03-01",
"expected_hatch_date": "2024-04-01"
},
{
"id": 9,
"name": "Clutch Egg B",
"code": "#EGG-10005",
"father": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"mother": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": true,
"code_id": "#EGG-10005",
"origin_type": {
"key": "exist",
"value": "Existing"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": "2.20",
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:03",
"note": null,
"health_status": {
"id": 1,
"name": "eggs-682"
},
"reason": {
"id": 2,
"name": "eggs-449"
},
"lay_date": "2024-03-01",
"expected_hatch_date": "2024-04-01"
},
{
"id": 10,
"name": "Clutch Egg C",
"code": "#EGG-10006",
"father": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"mother": {
"id": 1,
"name": "Documentation Falcon",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": true,
"code_id": "#EGG-10006",
"origin_type": {
"key": "exist",
"value": "Existing"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": "2.30",
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:03",
"note": null,
"health_status": {
"id": 1,
"name": "eggs-682"
},
"reason": {
"id": 2,
"name": "eggs-449"
},
"lay_date": "2024-03-01",
"expected_hatch_date": "2024-04-01"
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 6,
"last_page": 1
},
"stats": {
"total": 6,
"active": 6,
"inactive": 0,
"origins": {
"exist": 4,
"gift": 1,
"purchased": 1
},
"types": {
"falcon": 4,
"eggs": 6
}
}
}
Get Animal Details
Retrieve Animal details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 5,
"overview": {
"code_id": "#EGG-10001",
"name": "Egg Test",
"image": null,
"species": {
"id": 6,
"name": "anim-373"
}
},
"parent": [],
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"origin_type": {
"origin_type": {
"key": "exist",
"value": "Existing"
}
},
"medical_report": {
"weight": "2.00",
"health_status": {
"id": 1,
"name": "eggs-682"
},
"reason": {
"id": 2,
"name": "eggs-449"
},
"lay_date": "2024-03-01",
"expected_hatch_date": "2024-04-01",
"hatch_date": null,
"hatching": {
"total_days": 31,
"remaining_days": 0,
"percentage": "0.00%"
},
"temperature": "22.00",
"humidity": "50.00%"
},
"cost": {
"avg_cost": 0,
"equipment_cost": 0,
"medical_cost": 0,
"incubator_cost": 0
},
"note": null,
"is_active": true,
"created_at": "2026-07-06 11:00:02"
}
}
Update Animal
Update an existing Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| code | string | 3382952247 |
| type | string | eggs |
| origin_type | string | exist |
| image | string | photo1.jpg |
| father_id | integer | 2 |
| mother_id | integer | 2 |
| name | string | Egg Updated |
| health_status_id | integer | 1 |
| reason_id | integer | 2 |
| color_id | integer | 5 |
| weight | integer | 2 |
| lay_date | string | 2024-03-01 |
| expected_hatch_date | string | 2024-04-05 |
| species_id | integer | 6 |
| facility_id | integer | 1 |
| building_id | integer | 2 |
| room_id | integer | 3 |
| sub_unit_id | integer | 4 |
| id | integer | 5 |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 5,
"name": "Egg Updated",
"code": "#EGG-10001",
"father": {
"id": 2,
"name": "Falcon Test",
"code_id": "#FAL-10000",
"species": {
"id": 6,
"name": "anim-373"
}
},
"mother": {
"id": 2,
"name": "Falcon Test",
"code_id": "#FAL-10000",
"species": {
"id": 6,
"name": "anim-373"
}
},
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": true,
"code_id": "#EGG-10001",
"origin_type": {
"key": "exist",
"value": "Existing"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": 2,
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:02",
"note": null,
"health_status": {
"id": 1,
"name": "eggs-682"
},
"reason": {
"id": 2,
"name": "eggs-449"
},
"lay_date": "2024-03-01",
"expected_hatch_date": "2024-04-05"
}
}
Toggle Animal Status
Switch the Animal status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 5,
"name": "Egg Updated",
"code": "#EGG-10001",
"father": {
"id": 2,
"name": "Falcon Test",
"code_id": "#FAL-10000",
"species": {
"id": 6,
"name": "anim-373"
}
},
"mother": {
"id": 2,
"name": "Falcon Test",
"code_id": "#FAL-10000",
"species": {
"id": 6,
"name": "anim-373"
}
},
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": false,
"code_id": "#EGG-10001",
"origin_type": {
"key": "exist",
"value": "Existing"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": "2.00",
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:02",
"note": null,
"health_status": {
"id": 1,
"name": "eggs-682"
},
"reason": {
"id": 2,
"name": "eggs-449"
},
"lay_date": "2024-03-01",
"expected_hatch_date": "2024-04-05"
}
}
Delete Animal
Delete a Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Get Deleted Animal
List deleted Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 8,
"name": "Clutch Egg A",
"code": "#EGG-10004",
"father": null,
"mother": null,
"species": {
"id": 6,
"name": "anim-334"
},
"is_active": true,
"code_id": "#EGG-10004",
"origin_type": {
"key": "exist",
"value": "Existing"
},
"image": null,
"color": {
"id": 5,
"name": "anim-584"
},
"weight": "2.10",
"locations": {
"facility": null,
"building": null,
"room": null,
"sub_unit": null
},
"created_at": "2026-07-06 11:00:03",
"note": null,
"health_status": {
"id": 1,
"name": "eggs-519"
},
"reason": {
"id": 2,
"name": "eggs-226"
},
"lay_date": "2024-03-01",
"expected_hatch_date": "2024-04-01",
"delete_reason": null
},
{
"id": 9,
"name": "Clutch Egg B",
"code": "#EGG-10005",
"father": null,
"mother": null,
"species": {
"id": 6,
"name": "anim-334"
},
"is_active": true,
"code_id": "#EGG-10005",
"origin_type": {
"key": "exist",
"value": "Existing"
},
"image": null,
"color": {
"id": 5,
"name": "anim-584"
},
"weight": "2.20",
"locations": {
"facility": null,
"building": null,
"room": null,
"sub_unit": null
},
"created_at": "2026-07-06 11:00:03",
"note": null,
"health_status": {
"id": 1,
"name": "eggs-519"
},
"reason": {
"id": 2,
"name": "eggs-226"
},
"lay_date": "2024-03-01",
"expected_hatch_date": "2024-04-01",
"delete_reason": null
},
{
"id": 10,
"name": "Clutch Egg C",
"code": "#EGG-10006",
"father": null,
"mother": null,
"species": {
"id": 6,
"name": "anim-334"
},
"is_active": true,
"code_id": "#EGG-10006",
"origin_type": {
"key": "exist",
"value": "Existing"
},
"image": null,
"color": {
"id": 5,
"name": "anim-584"
},
"weight": "2.30",
"locations": {
"facility": null,
"building": null,
"room": null,
"sub_unit": null
},
"created_at": "2026-07-06 11:00:03",
"note": null,
"health_status": {
"id": 1,
"name": "eggs-519"
},
"reason": {
"id": 2,
"name": "eggs-226"
},
"lay_date": "2024-03-01",
"expected_hatch_date": "2024-04-01",
"delete_reason": null
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 3,
"last_page": 1
}
}
Restore Animal
Restore deleted Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 6,
"name": "Egg Gift Test",
"code": "#EGG-10002",
"father": null,
"mother": null,
"species": {
"id": 6,
"name": "anim-334"
},
"is_active": true,
"code_id": "#EGG-10002",
"origin_type": {
"key": "gift",
"value": "Gift"
},
"image": null,
"color": {
"id": 5,
"name": "anim-584"
},
"weight": "2.00",
"locations": {
"facility": null,
"building": null,
"room": null,
"sub_unit": null
},
"created_at": "2026-07-06 11:00:02",
"note": null,
"health_status": {
"id": 1,
"name": "eggs-519"
},
"reason": {
"id": 2,
"name": "eggs-226"
},
"lay_date": "2024-03-01",
"expected_hatch_date": "2024-04-01",
"gift_type": null,
"gift_date": "2024-05-25",
"gift_price": "100.00"
}
}
Permanently Delete Animal
Force delete Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Eggs_attachment
Create a new Eggs_attachment.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | string | Certificates |
| category | string | general |
| file | string | input_file |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 4,
"folder_name": "Certificates",
"category": "general",
"type": "attachment",
"created_at": "2026-07-06 11:00:07",
"files": [
{
"id": 4,
"url": "http:\/\/localhost:8000\/storage\/uploads\/Certificates\/1783335607_1.pdf",
"original_name": "cert.pdf",
"size": 45,
"mime_type": "application\/pdf",
"created_at": "2026-07-06 11:00:07"
}
]
}
}
Get Eggs_attachment List
Retrieve a list of Eggs_attachment.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 4,
"folder_name": "Certificates",
"category": "general",
"type": "attachment",
"created_at": "2026-07-06 11:00:07",
"files": [
{
"id": 4,
"url": "http:\/\/localhost:8000\/storage\/uploads\/Certificates\/1783335607_1.pdf",
"original_name": "cert.pdf",
"size": 45,
"mime_type": "application\/pdf",
"created_at": "2026-07-06 11:00:07"
}
]
}
],
"pagination": {
"total": 1,
"per_page": 15,
"last_page": 1,
"current_page": 1
},
"stats": {
"folders_count": 1,
"files_count": 1,
"total_size": 45,
"latest_file_at": "2026-07-06 11:00:07",
"by_category": {
"general": 1
},
"by_extension": {
"pdf": 1
}
}
}
Create Eggs_timeline
Create a new Eggs_timeline.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| event_type | string | feeding |
| description | string | Regular feeding event. |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 3,
"animal_id": 10,
"admin_id": 1,
"admin_name": "Admin",
"event_type": "feeding",
"description": "Regular feeding event.",
"created_at": "2026-07-06 11:00:07",
"transactions": []
}
}
Get Eggs_timeline List
Retrieve a list of Eggs_timeline.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 3,
"animal_id": 10,
"admin_id": 1,
"admin_name": "Admin",
"event_type": "feeding",
"description": "Regular feeding event.",
"created_at": "2026-07-06 11:00:07",
"transactions": []
}
],
"pagination": {
"per_page": 15,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Create Location
Create location
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| location_type | string | secondary |
| facility_id | integer | 1 |
| building_id | integer | 2 |
| room_id | integer | 3 |
| sub_unit_id | integer | 4 |
| end_date | string | 2025-01-01 |
{
"success": true,
"message": "Location saved successfully.",
"data": {
"id": 11,
"animal_id": 10,
"location_type": "secondary",
"facility": {
"id": 1,
"name": "QA Facility",
"is_active": true,
"supported_assets": null,
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
}
},
"building": {
"id": 2,
"name": "QA Building",
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"room": {
"id": 3,
"name": "QA Room",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 30,
"total": 30,
"consumed": 0
},
"capacity_eggs": {
"available": 60,
"total": 60,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"sub_unit": {
"id": 4,
"name": "QA Subunit",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 2,
"total": 2,
"consumed": 0
},
"capacity_eggs": {
"available": 4,
"total": 4,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"end_date": "2025-01-01",
"created_at": "2026-07-06 11:00:08"
}
}
Get Locations
Get locations list
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"primary": {
"id": 9,
"animal_id": 10,
"location_type": "primary",
"facility": {
"id": 1,
"name": "QA Facility",
"is_active": true,
"supported_assets": null,
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
}
},
"building": {
"id": 2,
"name": "QA Building",
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"room": {
"id": 3,
"name": "QA Room",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 30,
"total": 30,
"consumed": 0
},
"capacity_eggs": {
"available": 60,
"total": 60,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"sub_unit": {
"id": 4,
"name": "QA Subunit",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 2,
"total": 2,
"consumed": 0
},
"capacity_eggs": {
"available": 4,
"total": 4,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"end_date": null,
"created_at": "2026-07-06 11:00:03"
},
"secondary": {
"id": 11,
"animal_id": 10,
"location_type": "secondary",
"facility": {
"id": 1,
"name": "QA Facility",
"is_active": true,
"supported_assets": null,
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
}
},
"building": {
"id": 2,
"name": "QA Building",
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"room": {
"id": 3,
"name": "QA Room",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 30,
"total": 30,
"consumed": 0
},
"capacity_eggs": {
"available": 60,
"total": 60,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"sub_unit": {
"id": 4,
"name": "QA Subunit",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 2,
"total": 2,
"consumed": 0
},
"capacity_eggs": {
"available": 4,
"total": 4,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"end_date": "2025-01-01",
"created_at": "2026-07-06 11:00:08"
},
"history": [
{
"id": 4,
"animal_id": 10,
"admin_id": 1,
"admin_name": "Admin",
"event_type": "location_change",
"description": "Secondary location added",
"created_at": "2026-07-06 11:00:08",
"updated_at": "2026-07-06 11:00:08"
}
]
}
}
Update Location
Update location
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| facility_id | integer | 1 |
| building_id | integer | 2 |
| room_id | integer | 3 |
| sub_unit_id | integer | 4 |
{
"success": true,
"message": "Location updated successfully.",
"data": {
"id": 6,
"animal_id": 7,
"location_type": "primary",
"facility": {
"id": 1,
"name": "QA Facility",
"is_active": true,
"supported_assets": null,
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
}
},
"building": {
"id": 2,
"name": "QA Building",
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"room": {
"id": 3,
"name": "QA Room",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 30,
"total": 30,
"consumed": 0
},
"capacity_eggs": {
"available": 60,
"total": 60,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"sub_unit": {
"id": 4,
"name": "QA Subunit",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 2,
"total": 2,
"consumed": 0
},
"capacity_eggs": {
"available": 4,
"total": 4,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"end_date": null,
"created_at": "2026-07-06 11:00:02"
}
}
Delete Location
Delete location
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Location deleted successfully.",
"data": []
}
Get Eggs & Clutch ID Rules
Get eggs & clutch ID rules
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"egg": {
"entity_type": "egg",
"prefix": "EGG",
"mode": "auto",
"next_id": "EGG-10007"
},
"clutch": {
"entity_type": "clutch",
"prefix": "CLU",
"mode": "auto",
"next_id": "CLU-10003"
}
}
}
Create falcon gender
Create falcon gender
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | falc-827 |
| name_ar | string | أختبار للاعدادات332 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 7,
"name": "falc-827"
}
}
Get falcon gender List
Get falcon gender List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 7,
"name": "falc-827",
"name_translate": {
"ar": "أختبار للاعدادات332",
"en": "falc-827"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single falcon gender
Show Single falcon gender
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 7,
"name": "falc-827",
"name_translate": {
"ar": "أختبار للاعدادات332",
"en": "falc-827"
},
"is_active": true
}
}
Update falcon gender
Update falcon gender
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | falc-512 |
| name_ar | string | أختبار للاعدادات157 |
| id | integer | 7 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,falcon-gender |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 7,
"name": "falc-512"
}
}
Active Or InActive falcon gender
Update falcon gender
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 7,
"name": "falc-512"
}
}
Delete falcon gender
Delete falcon gender
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create falcon age
Create falcon age
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | falc-236 |
| name_ar | string | أختبار للاعدادات762 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 8,
"name": "falc-236"
}
}
Get falcon age List
Get falcon age List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 8,
"name": "falc-236",
"name_translate": {
"ar": "أختبار للاعدادات762",
"en": "falc-236"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single falcon age
Show Single falcon age
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 8,
"name": "falc-236",
"name_translate": {
"ar": "أختبار للاعدادات762",
"en": "falc-236"
},
"is_active": true
}
}
Update falcon age
Update falcon age
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | falc-262 |
| name_ar | string | أختبار للاعدادات655 |
| id | integer | 8 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,falcon-age |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 8,
"name": "falc-262"
}
}
Active Or InActive falcon age
Update falcon age
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 8,
"name": "falc-262"
}
}
Delete falcon age
Delete falcon age
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create falcon id
Create falcon id
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | falc-981 |
| name_ar | string | أختبار للاعدادات354 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 10,
"name": "falc-981"
}
}
Get falcon id List
Get falcon id List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 10,
"name": "falc-981",
"name_translate": {
"ar": "أختبار للاعدادات354",
"en": "falc-981"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single falcon id
Show Single falcon id
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 10,
"name": "falc-981",
"name_translate": {
"ar": "أختبار للاعدادات354",
"en": "falc-981"
},
"is_active": true
}
}
Update falcon id
Update falcon id
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | falc-398 |
| name_ar | string | أختبار للاعدادات183 |
| id | integer | 10 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,falcon-id |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 10,
"name": "falc-398"
}
}
Active Or InActive falcon id
Update falcon id
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 10,
"name": "falc-398"
}
}
Delete falcon id
Delete falcon id
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create falcon behavior
Create falcon behavior
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | falc-179 |
| name_ar | string | أختبار للاعدادات180 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 11,
"name": "falc-179"
}
}
Get falcon behavior List
Get falcon behavior List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 11,
"name": "falc-179",
"name_translate": {
"ar": "أختبار للاعدادات180",
"en": "falc-179"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single falcon behavior
Show Single falcon behavior
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 11,
"name": "falc-179",
"name_translate": {
"ar": "أختبار للاعدادات180",
"en": "falc-179"
},
"is_active": true
}
}
Update falcon behavior
Update falcon behavior
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | falc-254 |
| name_ar | string | أختبار للاعدادات559 |
| id | integer | 11 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,falcon-behavior |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 11,
"name": "falc-254"
}
}
Active Or InActive falcon behavior
Update falcon behavior
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 11,
"name": "falc-254"
}
}
Delete falcon behavior
Delete falcon behavior
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create falcon reason
Create falcon reason
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | falc-665 |
| name_ar | string | أختبار للاعدادات628 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 13,
"name": "falc-665"
}
}
Get falcon reason List
Get falcon reason List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 13,
"name": "falc-665",
"name_translate": {
"ar": "أختبار للاعدادات628",
"en": "falc-665"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single falcon reason
Show Single falcon reason
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 13,
"name": "falc-665",
"name_translate": {
"ar": "أختبار للاعدادات628",
"en": "falc-665"
},
"is_active": true
}
}
Update falcon reason
Update falcon reason
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | falc-884 |
| name_ar | string | أختبار للاعدادات194 |
| id | integer | 13 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,falcon-reason |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 13,
"name": "falc-884"
}
}
Active Or InActive falcon reason
Update falcon reason
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 13,
"name": "falc-884"
}
}
Delete falcon reason
Delete falcon reason
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Falcon (Existing)
Create a new Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| code | string | 9732242427 |
| type | string | falcon |
| origin_type | string | exist |
| image | string | photo1.jpg |
| father_id | NULL | |
| mother_id | NULL | |
| name | string | Falcon Test |
| gender_id | integer | 7 |
| behavior_id | integer | 11 |
| age_category_id | integer | 8 |
| age | integer | 2 |
| hatch_date | string | 2022-01-01 |
| species_id | integer | 6 |
| color_id | integer | 5 |
| ids | array | [ { "type_id": 10, "code": "3805734755" } ] |
| weight | integer | 2 |
| facility_id | integer | 1 |
| building_id | integer | 2 |
| room_id | integer | 3 |
| sub_unit_id | integer | 4 |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 2,
"name": "Falcon Test",
"code": "#FAL-10000",
"father": null,
"mother": null,
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": false,
"code_id": "#FAL-10000",
"origin_type": {
"key": "exist",
"value": "Existing"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": 2,
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:01",
"note": null,
"gender": {
"id": 7,
"name": "falc-827"
},
"behavior": {
"id": 11,
"name": "falc-179"
},
"age_category": {
"id": 8,
"name": "falc-236"
},
"age": "2.00",
"hatch_date": "2022-01-01"
}
}
Create Falcon (Gift)
Create a new Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| code | string | 2296796917 |
| type | string | falcon |
| origin_type | string | gift |
| image | string | photo1.jpg |
| father_id | NULL | |
| mother_id | NULL | |
| name | string | Falcon Gift Test |
| gender_id | integer | 7 |
| behavior_id | integer | 11 |
| age_category_id | integer | 8 |
| age | integer | 2 |
| hatch_date | string | 2022-01-01 |
| species_id | integer | 6 |
| color_id | integer | 5 |
| ids | array | [ { "type_id": 10, "code": "2182943889" } ] |
| weight | integer | 2 |
| facility_id | integer | 1 |
| building_id | integer | 2 |
| room_id | integer | 3 |
| sub_unit_id | integer | 4 |
| gift_type_id | integer | 4 |
| date | string | 2024-05-25 |
| price | integer | 500 |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 3,
"name": "Falcon Gift Test",
"code": "#FAL-10001",
"father": null,
"mother": null,
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": false,
"code_id": "#FAL-10001",
"origin_type": {
"key": "gift",
"value": "Gift"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": 2,
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:01",
"note": null,
"gender": {
"id": 7,
"name": "falc-827"
},
"behavior": {
"id": 11,
"name": "falc-179"
},
"age_category": {
"id": 8,
"name": "falc-236"
},
"age": "2.00",
"hatch_date": "2022-01-01",
"gift_type": {
"id": 4,
"name": "anim-777"
},
"gift_date": "2024-05-25",
"gift_price": "500.00"
}
}
Create Falcon (Purchased)
Create a new Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| code | string | 3020386689 |
| type | string | falcon |
| origin_type | string | purchased |
| image | string | photo1.jpg |
| father_id | NULL | |
| mother_id | NULL | |
| name | string | Falcon Purchased Test |
| gender_id | integer | 7 |
| behavior_id | integer | 11 |
| age_category_id | integer | 8 |
| age | integer | 2 |
| hatch_date | string | 2022-01-01 |
| species_id | integer | 6 |
| color_id | integer | 5 |
| ids | array | [ { "type_id": 10, "code": "1479898925" } ] |
| weight | integer | 2 |
| facility_id | integer | 1 |
| building_id | integer | 2 |
| room_id | integer | 3 |
| sub_unit_id | integer | 4 |
| seller_name | string | Falcon Seller |
| seller_type_id | integer | 3 |
| date | string | 2024-05-25 |
| price | integer | 1500 |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 4,
"name": "Falcon Purchased Test",
"code": "#FAL-10002",
"father": null,
"mother": null,
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": false,
"code_id": "#FAL-10002",
"origin_type": {
"key": "purchased",
"value": "Purchased"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": 2,
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:01",
"note": null,
"gender": {
"id": 7,
"name": "falc-827"
},
"behavior": {
"id": 11,
"name": "falc-179"
},
"age_category": {
"id": 8,
"name": "falc-236"
},
"age": "2.00",
"hatch_date": "2022-01-01",
"seller_name": "Falcon Seller",
"seller_type": {
"id": 3,
"name": "anim-877"
},
"purchase_date": "2024-05-25",
"purchase_price": "1,500.00"
}
}
Get Animal List
Retrieve a list of Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"name": "Documentation Falcon",
"code": "#9873027247",
"father": null,
"mother": null,
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": true,
"code_id": "#9873027247",
"origin_type": {
"key": "exist",
"value": "Existing"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": "1.00",
"locations": null,
"created_at": "2026-07-06 11:00:01",
"note": null,
"gender": null,
"behavior": null,
"age_category": null,
"age": null,
"hatch_date": null
},
{
"id": 2,
"name": "Falcon Test",
"code": "#FAL-10000",
"father": null,
"mother": null,
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": true,
"code_id": "#FAL-10000",
"origin_type": {
"key": "exist",
"value": "Existing"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": "2.00",
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:01",
"note": null,
"gender": {
"id": 7,
"name": "falc-827"
},
"behavior": {
"id": 11,
"name": "falc-179"
},
"age_category": {
"id": 8,
"name": "falc-236"
},
"age": "2.00",
"hatch_date": "2022-01-01"
},
{
"id": 3,
"name": "Falcon Gift Test",
"code": "#FAL-10001",
"father": null,
"mother": null,
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": true,
"code_id": "#FAL-10001",
"origin_type": {
"key": "gift",
"value": "Gift"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": "2.00",
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:01",
"note": null,
"gender": {
"id": 7,
"name": "falc-827"
},
"behavior": {
"id": 11,
"name": "falc-179"
},
"age_category": {
"id": 8,
"name": "falc-236"
},
"age": "2.00",
"hatch_date": "2022-01-01",
"gift_type": {
"id": 4,
"name": "anim-777"
},
"gift_date": "2024-05-25",
"gift_price": "500.00"
},
{
"id": 4,
"name": "Falcon Purchased Test",
"code": "#FAL-10002",
"father": null,
"mother": null,
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": true,
"code_id": "#FAL-10002",
"origin_type": {
"key": "purchased",
"value": "Purchased"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": "2.00",
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:01",
"note": null,
"gender": {
"id": 7,
"name": "falc-827"
},
"behavior": {
"id": 11,
"name": "falc-179"
},
"age_category": {
"id": 8,
"name": "falc-236"
},
"age": "2.00",
"hatch_date": "2022-01-01",
"seller_name": "Falcon Seller",
"seller_type": {
"id": 3,
"name": "anim-877"
},
"purchase_date": "2024-05-25",
"purchase_price": "1,500.00"
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 4,
"last_page": 1
},
"stats": {
"total": 4,
"active": 4,
"inactive": 0,
"origins": {
"exist": 2,
"gift": 1,
"purchased": 1
},
"types": {
"falcon": 4,
"eggs": 0
}
}
}
Get Animal Details
Retrieve Animal details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 1,
"overview": {
"code_id": "#9873027247",
"name": "Documentation Falcon",
"image": null,
"gender": null,
"behavior": null,
"age_category": null,
"color": {
"id": 5,
"name": "anim-859"
},
"species": {
"id": 6,
"name": "anim-373"
},
"age": null,
"hatch_date": null
},
"parent": [],
"locations": null,
"origin_type": {
"origin_type": {
"key": "exist",
"value": "Existing"
}
},
"medical_report": [],
"cost": {
"avg_cost": 0,
"equipment_cost": 0,
"medical_cost": 0,
"incubator_cost": 0
},
"note": null,
"is_active": true,
"created_at": "2026-07-06 11:00:01"
}
}
Update Animal
Update an existing Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| code | string | 7355039213 |
| type | string | falcon |
| origin_type | string | exist |
| image | string | photo1.jpg |
| father_id | integer | 1 |
| mother_id | integer | 1 |
| name | string | Falcon Updated |
| gender_id | integer | 7 |
| behavior_id | integer | 11 |
| age_category_id | integer | 8 |
| age | integer | 3 |
| hatch_date | string | 2022-01-01 |
| species_id | integer | 6 |
| color_id | integer | 5 |
| ids | array | [ { "type_id": 10, "code": "7312279093" } ] |
| weight | integer | 2 |
| facility_id | integer | 1 |
| building_id | integer | 2 |
| room_id | integer | 3 |
| sub_unit_id | integer | 4 |
| id | integer | 1 |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "Falcon Updated",
"code": "#9873027247",
"father": {
"id": 1,
"name": "Falcon Updated",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"mother": {
"id": 1,
"name": "Falcon Updated",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": true,
"code_id": "#9873027247",
"origin_type": {
"key": "exist",
"value": "Existing"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": 2,
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:01",
"note": null,
"gender": {
"id": 7,
"name": "falc-827"
},
"behavior": {
"id": 11,
"name": "falc-179"
},
"age_category": {
"id": 8,
"name": "falc-236"
},
"age": "3.00",
"hatch_date": "2022-01-01"
}
}
Toggle Animal Status
Switch the Animal status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "Falcon Updated",
"code": "#9873027247",
"father": {
"id": 1,
"name": "Falcon Updated",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"mother": {
"id": 1,
"name": "Falcon Updated",
"code_id": "#9873027247",
"species": {
"id": 6,
"name": "anim-373"
}
},
"species": {
"id": 6,
"name": "anim-373"
},
"is_active": false,
"code_id": "#9873027247",
"origin_type": {
"key": "exist",
"value": "Existing"
},
"image": null,
"color": {
"id": 5,
"name": "anim-859"
},
"weight": "2.00",
"locations": {
"facility": {
"id": 1,
"name": "QA Facility"
},
"building": {
"id": 2,
"name": "QA Building"
},
"room": {
"id": 3,
"name": "QA Room"
},
"sub_unit": {
"id": 4,
"name": "QA Subunit"
}
},
"created_at": "2026-07-06 11:00:01",
"note": null,
"gender": {
"id": 7,
"name": "falc-827"
},
"behavior": {
"id": 11,
"name": "falc-179"
},
"age_category": {
"id": 8,
"name": "falc-236"
},
"age": "3.00",
"hatch_date": "2022-01-01"
}
}
Delete Animal
Delete a Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Get Deleted Animal
List deleted Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"name": "Falcon Updated",
"code": "#9873027247",
"father": null,
"mother": null,
"species": {
"id": 6,
"name": "anim-334"
},
"is_active": false,
"code_id": "#9873027247",
"origin_type": {
"key": "exist",
"value": "Existing"
},
"image": null,
"color": {
"id": 5,
"name": "anim-584"
},
"weight": "2.00",
"locations": {
"facility": null,
"building": null,
"room": null,
"sub_unit": null
},
"created_at": "2026-07-06 11:00:01",
"note": null,
"gender": {
"id": 7,
"name": "falc-512"
},
"behavior": {
"id": 11,
"name": "falc-254"
},
"age_category": {
"id": 8,
"name": "falc-262"
},
"age": "3.00",
"hatch_date": "2022-01-01",
"delete_reason": null
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Restore Animal
Restore deleted Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "Falcon Test",
"code": "#FAL-10000",
"father": null,
"mother": null,
"species": {
"id": 6,
"name": "anim-334"
},
"is_active": true,
"code_id": "#FAL-10000",
"origin_type": {
"key": "exist",
"value": "Existing"
},
"image": null,
"color": {
"id": 5,
"name": "anim-584"
},
"weight": "2.00",
"locations": {
"facility": null,
"building": null,
"room": null,
"sub_unit": null
},
"created_at": "2026-07-06 11:00:01",
"note": null,
"gender": {
"id": 7,
"name": "falc-512"
},
"behavior": {
"id": 11,
"name": "falc-254"
},
"age_category": {
"id": 8,
"name": "falc-262"
},
"age": "2.00",
"hatch_date": "2022-01-01"
}
}
Permanently Delete Animal
Force delete Animal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Falcon_attachment
Create a new Falcon_attachment.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | string | Certificates |
| category | string | general |
| file | string | input_file |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 2,
"folder_name": "Certificates",
"category": "general",
"type": "attachment",
"created_at": "2026-07-06 11:00:04",
"files": [
{
"id": 2,
"url": "http:\/\/localhost:8000\/storage\/uploads\/Certificates\/1783335604_1.pdf",
"original_name": "cert.pdf",
"size": 45,
"mime_type": "application\/pdf",
"created_at": "2026-07-06 11:00:04"
}
]
}
}
Get Falcon_attachment List
Retrieve a list of Falcon_attachment.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 2,
"folder_name": "Certificates",
"category": "general",
"type": "attachment",
"created_at": "2026-07-06 11:00:04",
"files": [
{
"id": 2,
"url": "http:\/\/localhost:8000\/storage\/uploads\/Certificates\/1783335604_1.pdf",
"original_name": "cert.pdf",
"size": 45,
"mime_type": "application\/pdf",
"created_at": "2026-07-06 11:00:04"
}
]
}
],
"pagination": {
"total": 1,
"per_page": 15,
"last_page": 1,
"current_page": 1
},
"stats": {
"folders_count": 1,
"files_count": 1,
"total_size": 45,
"latest_file_at": "2026-07-06 11:00:04",
"by_category": {
"general": 1
},
"by_extension": {
"pdf": 1
}
}
}
Create Location
Create location
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| location_type | string | secondary |
| facility_id | integer | 1 |
| building_id | integer | 2 |
| room_id | integer | 3 |
| sub_unit_id | integer | 4 |
| end_date | string | 2025-01-01 |
{
"success": true,
"message": "Location saved successfully.",
"data": {
"id": 10,
"animal_id": 4,
"location_type": "secondary",
"facility": {
"id": 1,
"name": "QA Facility",
"is_active": true,
"supported_assets": null,
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
}
},
"building": {
"id": 2,
"name": "QA Building",
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"room": {
"id": 3,
"name": "QA Room",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 30,
"total": 30,
"consumed": 0
},
"capacity_eggs": {
"available": 60,
"total": 60,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"sub_unit": {
"id": 4,
"name": "QA Subunit",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 2,
"total": 2,
"consumed": 0
},
"capacity_eggs": {
"available": 4,
"total": 4,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"end_date": "2025-01-01",
"created_at": "2026-07-06 11:00:05"
}
}
Get Locations
Get locations list
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"primary": {
"id": 3,
"animal_id": 4,
"location_type": "primary",
"facility": {
"id": 1,
"name": "QA Facility",
"is_active": true,
"supported_assets": null,
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
}
},
"building": {
"id": 2,
"name": "QA Building",
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"room": {
"id": 3,
"name": "QA Room",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 30,
"total": 30,
"consumed": 0
},
"capacity_eggs": {
"available": 60,
"total": 60,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"sub_unit": {
"id": 4,
"name": "QA Subunit",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 2,
"total": 2,
"consumed": 0
},
"capacity_eggs": {
"available": 4,
"total": 4,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"end_date": null,
"created_at": "2026-07-06 11:00:01"
},
"secondary": {
"id": 10,
"animal_id": 4,
"location_type": "secondary",
"facility": {
"id": 1,
"name": "QA Facility",
"is_active": true,
"supported_assets": null,
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
}
},
"building": {
"id": 2,
"name": "QA Building",
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"room": {
"id": 3,
"name": "QA Room",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 30,
"total": 30,
"consumed": 0
},
"capacity_eggs": {
"available": 60,
"total": 60,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"sub_unit": {
"id": 4,
"name": "QA Subunit",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 2,
"total": 2,
"consumed": 0
},
"capacity_eggs": {
"available": 4,
"total": 4,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"end_date": "2025-01-01",
"created_at": "2026-07-06 11:00:05"
},
"history": [
{
"id": 1,
"animal_id": 4,
"admin_id": 1,
"admin_name": "Admin",
"event_type": "location_change",
"description": "Secondary location added",
"created_at": "2026-07-06 11:00:05",
"updated_at": "2026-07-06 11:00:05"
}
]
}
}
Update Location
Update location
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| facility_id | integer | 1 |
| building_id | integer | 2 |
| room_id | integer | 3 |
| sub_unit_id | integer | 4 |
| end_date | string | 2026-01-01 |
{
"success": true,
"message": "Location updated successfully.",
"data": {
"id": 10,
"animal_id": 4,
"location_type": "secondary",
"facility": {
"id": 1,
"name": "QA Facility",
"is_active": true,
"supported_assets": null,
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
}
},
"building": {
"id": 2,
"name": "QA Building",
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"room": {
"id": 3,
"name": "QA Room",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 30,
"total": 30,
"consumed": 0
},
"capacity_eggs": {
"available": 60,
"total": 60,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"sub_unit": {
"id": 4,
"name": "QA Subunit",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 2,
"total": 2,
"consumed": 0
},
"capacity_eggs": {
"available": 4,
"total": 4,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
},
"end_date": "2026-01-01",
"created_at": "2026-07-06 11:00:05"
}
}
Delete Location
Delete location
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Location deleted successfully.",
"data": []
}
Create Movement
Create movement
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| to_facility_id | integer | 1 |
| to_building_id | integer | 2 |
| to_room_id | integer | 3 |
| to_sub_unit_id | integer | 4 |
| reason | string | Relocated for better space. |
| moved_at | string | 2026-07-06 11:00:06 |
{
"success": true,
"message": "Movement recorded successfully.",
"data": {
"id": 1,
"animal_id": 4,
"admin_id": 1,
"admin_name": "Admin",
"timeline_id": 2,
"from_location": {
"facility_id": 1,
"building_id": 2,
"room_id": 3,
"sub_unit_id": 4
},
"to_location": {
"facility_id": 1,
"building_id": 2,
"room_id": 3,
"sub_unit_id": 4
},
"reason": "Relocated for better space.",
"created_at": "2026-07-06 11:00:06"
}
}
Get Movements
Get movements list
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"animal_id": 4,
"admin_id": 1,
"admin_name": "Admin",
"timeline_id": 2,
"from_location": {
"facility_id": 1,
"building_id": 2,
"room_id": 3,
"sub_unit_id": 4
},
"to_location": {
"facility_id": 1,
"building_id": 2,
"room_id": 3,
"sub_unit_id": 4
},
"reason": "Relocated for better space.",
"created_at": "2026-07-06 11:00:06"
}
],
"pagination": {
"per_page": 15,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Assign Feeding Plan
Assign feeding plan
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| animal_ids | array | [ 1 ] |
| plan_id | integer | 2 |
| start_date | string | 2026-07-05 |
| end_date | string | 2026-08-05 |
| notes | string | Summer feeding assignment |
| meals | array | [ { "meal_id": 2, "repeat_every_days": 1, "times": [ "08:00", "16:00" ], "execution_mode": "auto_confirm", "quantity_multiplier": 1 } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| animal_ids | required, array, min 1 |
| animal_ids[] | required, integer, distinct, Exists |
| plan_id | required, integer, exists feeding_plans,id |
| start_date | required, date_format |
| end_date | required, date_format, after_or_equal |
| notes | optional, string, max 1000 |
| meals | required, array, min 1 |
| meals[].meal_id | required, integer, exists feeding_meals,id |
| meals[].repeat_every_days | required, integer, min 1 |
| meals[].times | required, array, min 1 |
| meals[].times.* | required, date_format |
| meals[].execution_mode | required, In |
| meals[].quantity_multiplier | required, numeric, min 0.001 |
{
"success": true,
"message": "Data inserted successfully.",
"data": [
{
"id": 2,
"animal_id": 1,
"plan_id": 2,
"plan_name": "Documentation Falcon Feeding Plan",
"start_date": "2026-07-05",
"end_date": "2026-08-05",
"status": "active",
"assigned_by": 1,
"notes": "Summer feeding assignment",
"meals": [
{
"id": 1,
"meal_id": 2,
"meal_name": "Documentation Manual Feeding Meal",
"repeat_every_days": 1,
"times": [
"08:00",
"16:00"
],
"execution_mode": "auto_confirm",
"quantity_multiplier": "1.000",
"status": "active"
}
],
"created_at": "2026-07-06 11:00:13"
}
]
}
Pause Feeding Plan
Pause feeding plan
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"animal_id": 1,
"plan_id": 2,
"plan_name": "Documentation Falcon Feeding Plan",
"start_date": "2026-09-07",
"end_date": "2026-10-07",
"status": "paused",
"assigned_by": null,
"notes": "Documentation status control assignment",
"meals": [],
"created_at": "2026-07-06 11:00:01"
}
}
Resume Feeding Plan
Resume feeding plan
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"animal_id": 1,
"plan_id": 2,
"plan_name": "Documentation Falcon Feeding Plan",
"start_date": "2026-09-07",
"end_date": "2026-10-07",
"status": "active",
"assigned_by": null,
"notes": "Documentation status control assignment",
"meals": [],
"created_at": "2026-07-06 11:00:01"
}
}
Cancel Feeding Plan
Cancel feeding plan
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"animal_id": 1,
"plan_id": 2,
"plan_name": "Documentation Falcon Feeding Plan",
"start_date": "2026-09-07",
"end_date": "2026-10-07",
"status": "cancelled",
"assigned_by": null,
"notes": "Documentation status control assignment",
"meals": [],
"created_at": "2026-07-06 11:00:01"
}
}
Manual Feed Animals
Manual feed animals
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| animal_ids | array | [ 1 ] |
| meal_ids | array | [ 2 ] |
| fed_at | string | 2026-07-05 08:00:00 |
| notes | string | Manual feeding round |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| animal_ids | required, array, min 1 |
| animal_ids[] | required, integer, distinct, Exists |
| meal_ids | required, array, min 1 |
| meal_ids[] | required, integer, distinct, exists feeding_meals,id |
| fed_at | optional, date |
| notes | optional, string, max 1000 |
{
"success": true,
"message": "Manual feeding processed.",
"data": {
"successful_count": 1,
"failed_count": 0,
"total_count": 1,
"successful": [
{
"id": 2,
"animal_id": 1,
"meal_id": 2,
"source": "manual",
"execution_mode": "manual",
"status": "served",
"served_at": "2026-07-05 08:00:00",
"scheduled_for": null,
"confirmed_at": null,
"meal_snapshot": {
"meal_name": "Documentation Manual Feeding Meal",
"items": [
{
"feeding_item_id": 2,
"name": "Documentation Feed Item",
"quantity": 1,
"unit": "feed-442",
"inventory_item_id": 4,
"consumed_quantity": 1,
"batches": [
{
"batch_id": 5,
"batch_no": "DOC-FEEDING-FIXTURE",
"quantity": 1,
"unit_cost": 10,
"total_cost": 10,
"movement_id": 6
}
],
"item_total_cost": 10
}
],
"total_cost": 10
},
"total_cost": "10.000",
"timeline_id": 8,
"notes": "Manual feeding round",
"created_by": 1,
"confirmed_by": null,
"created_at": "2026-07-06 11:00:15"
}
],
"failed": []
}
}
Get Falcon ID Rules
Get falcon ID rules
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"falcon": {
"entity_type": "falcon",
"prefix": "FAL",
"mode": "auto",
"next_id": "FAL-10003"
}
}
}
Complete Item
Complete an existing Item.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| id | integer | 1 |
| calories | integer | 100 |
| note | string | test-note |
| is_active | boolean | 1 |
| supports | array | [ { "support_id": 6 } ] |
| ages | array | [ { "age_id": 8 } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists feeding_items,id |
| calories | required, numeric, min 0 |
| note | optional, string |
| supports | required, array, min 1 |
| supports[].support_id | required, integer, exists settings,id,type,animals-species |
| ages | required, array, min 1 |
| ages[].age_id | required, integer, exists settings,id,type,falcon-age |
| is_active | optional, true/false |
{
"success": true,
"message": "Item completed successfully.",
"data": {
"id": 1,
"name": "QA Test Feed Item",
"calories": 100,
"cost_per_unit": "EGP 25.500",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": true,
"note": "test-note",
"is_completed": true,
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"ages": [
{
"id": 8,
"name": "falc-236"
}
]
}
}
Get Item List
Retrieve a list of Item.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"name": "QA Test Feed Item",
"calories": "100.00",
"cost_per_unit": "EGP 25.500",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": true,
"note": "test-note",
"is_completed": true,
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"ages": [
{
"id": 8,
"name": "falc-236"
}
]
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Get Item Details
Retrieve Item details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 2,
"name": "Documentation Feed Item",
"calories": "100.00",
"cost_per_unit": "EGP 10.000",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [],
"is_active": true,
"name_translate": {
"en": "Documentation Feed Item"
},
"note": null,
"is_completed": false,
"supports": [],
"ages": []
}
}
Update Item
Update an existing Item.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "en": "QA Test Falcon Feed Mix", "ar": "علف صقور اختبار الجودة" } |
| categories | array | [ { "category_id": 14 } ] |
| unit_id | integer | 15 |
| calories | integer | 100 |
| note | string | test-note |
| is_active | boolean | 1 |
| supports | array | [ { "support_id": 6 } ] |
| ages | array | [ { "age_id": 8 } ] |
| id | integer | 2 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists feeding_items,id |
| name | required, array |
| name.ar | required, string, max 255 |
| name.en | required, string, max 255 |
| categories | required, array, min 1 |
| categories[].category_id | required, integer, exists settings,id,type,feeding-category |
| unit_id | required, integer, exists settings,id,type,feeding-unit |
| calories | required, numeric |
| note | optional, string |
| is_active | optional, true/false |
| supports | required, array, min 1 |
| supports[].support_id | required, integer, exists settings,id,type,animals-species |
| ages | required, array, min 1 |
| ages[].age_id | required, integer, exists settings,id,type,falcon-age |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "QA Test Falcon Feed Mix",
"calories": 100,
"cost_per_unit": "EGP 10.000",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": true,
"note": "test-note",
"is_completed": true,
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"ages": [
{
"id": 8,
"name": "falc-236"
}
]
}
}
Toggle Item Status
Switch the Item status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "QA Test Falcon Feed Mix",
"calories": "100.00",
"cost_per_unit": "EGP 10.000",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": false,
"note": "test-note",
"is_completed": true,
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"ages": [
{
"id": 8,
"name": "falc-236"
}
]
}
}
Delete Item
Delete a Item.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Get Deleted Item
List deleted Item.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 2,
"name": "QA Test Feed Item Updated",
"calories": "100.00",
"cost_per_unit": "EGP 0.000",
"unit": {
"id": 15,
"name": "feed-979"
},
"categories": [],
"is_active": false,
"note": "QA test inventory item updated",
"is_completed": true,
"supports": [
{
"id": 6,
"name": "anim-334"
}
],
"ages": [
{
"id": 8,
"name": "falc-262"
}
],
"delete_reason": null
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Restore Item
Restore deleted Item.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "QA Test Feed Item Updated",
"calories": "100.00",
"cost_per_unit": "EGP 0.000",
"unit": {
"id": 15,
"name": "feed-979"
},
"categories": [],
"is_active": false,
"note": "QA test inventory item updated",
"is_completed": true,
"supports": [
{
"id": 6,
"name": "anim-334"
}
],
"ages": [
{
"id": 8,
"name": "falc-262"
}
]
}
}
Permanently Delete Item
Force delete Item.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Meal
Create a new Meal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | string | documentation-meal-create-6a4b8aad417a9 |
| types | array | [ { "type_id": 16 } ] |
| note | string | test-note |
| is_active | boolean | 1 |
| supports | array | [ { "support_id": 6 } ] |
| ages | array | [ { "age_id": 8 } ] |
| items | array | [ { "item_id": 1, "quantity": 1 } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | required, string, unique feeding_meals,name, max 255 |
| note | optional, string |
| is_active | optional, true/false |
| types | required, array, min 1 |
| types[].type_id | required, integer, exists settings,id,type,feeding-meals-type |
| supports | required, array, min 1 |
| supports[].support_id | required, integer, exists settings,id,type,animals-species |
| ages | required, array, min 1 |
| ages[].age_id | required, integer, exists settings,id,type,falcon-age |
| items | required, array, min 1 |
| items[].item_id | required, integer, exists feeding_items,id, CompletedFeedingItemRule |
| items[].quantity | required, integer, min 1 |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 1,
"name": "documentation-meal-create-6a4b8aad417a9",
"is_active": true,
"note": "test-note",
"created_at": "2026-07-06T10:59:57.000000Z",
"meal_types": [
{
"id": 16,
"name": "feed-755"
}
],
"cost": "EGP 25.500",
"calories": "100",
"meal_items": [
{
"id": 1,
"quantity": "1.00",
"item": {
"id": 1,
"name": "QA Test Feed Item",
"calories": "100.00",
"cost_per_unit": "EGP 25.500",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": true
},
"unit_cost": "EGP 25.500",
"total_cost": "EGP 25.500",
"calories": "100"
}
],
"supported_types": [
{
"id": 6,
"name": "anim-373"
}
],
"supported_ages": [
{
"id": 8,
"name": "falc-236"
}
]
}
}
Get Meal List
Retrieve a list of Meal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"name": "documentation-meal-create-6a4b8aad417a9",
"is_active": 1,
"note": "test-note",
"created_at": "2026-07-06T10:59:57.000000Z",
"meal_types": [
{
"id": 16,
"name": "feed-755"
}
],
"cost": "EGP 25.500",
"calories": "100",
"meal_items": [
{
"id": 1,
"quantity": "1.00",
"item": {
"id": 1,
"name": "QA Test Feed Item",
"calories": "100.00",
"cost_per_unit": "EGP 25.500",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": true
},
"unit_cost": "EGP 25.500",
"total_cost": "EGP 25.500",
"calories": "100"
}
],
"supported_types": [
{
"id": 6,
"name": "anim-373"
}
],
"supported_ages": [
{
"id": 8,
"name": "falc-236"
}
]
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Get Meal Details
Retrieve Meal details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 2,
"name": "Documentation Manual Feeding Meal",
"is_active": 1,
"note": null,
"created_at": "2026-07-06T11:00:01.000000Z",
"meal_types": [],
"cost": "EGP 10.000",
"calories": "100",
"meal_items": [
{
"id": 2,
"quantity": "1.00",
"item": {
"id": 2,
"name": "QA Test Falcon Feed Mix",
"calories": "100.00",
"cost_per_unit": "EGP 10.000",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": false,
"name_translate": {
"en": "QA Test Falcon Feed Mix",
"ar": "علف صقور اختبار الجودة"
}
},
"unit_cost": "EGP 10.000",
"total_cost": "EGP 10.000",
"calories": "100"
}
],
"supported_types": [],
"supported_ages": []
}
}
Update Meal
Update an existing Meal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | string | documentation-meal-update-6a4b8ac63e9ae |
| types | array | [ { "type_id": 16 } ] |
| note | string | test-note |
| is_active | boolean | 1 |
| supports | array | [ { "support_id": 6 } ] |
| ages | array | [ { "age_id": 8 } ] |
| items | array | [ { "item_id": 2, "quantity": 1 } ] |
| id | integer | 2 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists feeding_meals,id |
| name | required, string, max 255, unique feeding_meals,name, |
| note | optional, string |
| is_active | optional, true/false |
| types | required, array, min 1 |
| types[].type_id | required, integer, exists settings,id,type,feeding-meals-type |
| supports | required, array, min 1 |
| supports[].support_id | required, integer, exists settings,id,type,animals-species |
| ages | required, array, min 1 |
| ages[].age_id | required, integer, exists settings,id,type,falcon-age |
| items | required, array, min 1 |
| items[].item_id | required, integer, exists feeding_items,id, CompletedFeedingItemRule |
| items[].quantity | required, integer, min 1 |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "documentation-meal-update-6a4b8ac63e9ae",
"is_active": true,
"note": "test-note",
"created_at": "2026-07-06T11:00:01.000000Z",
"meal_types": [
{
"id": 16,
"name": "feed-755"
}
],
"cost": "EGP 10.000",
"calories": "100",
"meal_items": [
{
"id": 2,
"quantity": "1.00",
"item": {
"id": 2,
"name": "QA Test Falcon Feed Mix",
"calories": "100.00",
"cost_per_unit": "EGP 10.000",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": false
},
"unit_cost": "EGP 10.000",
"total_cost": "EGP 10.000",
"calories": "100"
}
],
"supported_types": [
{
"id": 6,
"name": "anim-373"
}
],
"supported_ages": [
{
"id": 8,
"name": "falc-236"
}
]
}
}
Toggle Meal Status
Switch the Meal status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "documentation-meal-update-6a4b8ac63e9ae",
"is_active": false,
"note": "test-note",
"created_at": "2026-07-06T11:00:01.000000Z",
"meal_types": [
{
"id": 16,
"name": "feed-755"
}
],
"cost": "EGP 10.000",
"calories": "100",
"meal_items": [
{
"id": 2,
"quantity": "1.00",
"item": {
"id": 2,
"name": "QA Test Falcon Feed Mix",
"calories": "100.00",
"cost_per_unit": "EGP 10.000",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": false
},
"unit_cost": "EGP 10.000",
"total_cost": "EGP 10.000",
"calories": "100"
}
],
"supported_types": [
{
"id": 6,
"name": "anim-373"
}
],
"supported_ages": [
{
"id": 8,
"name": "falc-236"
}
]
}
}
Delete Meal
Delete a Meal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Get Deleted Meal
List deleted Meal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 2,
"name": "documentation-meal-update-6a4b8ac63e9ae",
"is_active": 0,
"note": "test-note",
"created_at": "2026-07-06T11:00:01.000000Z",
"meal_types": [
{
"id": 16,
"name": "feed-658"
}
],
"cost": "EGP 0.000",
"calories": "100",
"meal_items": [
{
"id": 2,
"quantity": "1.00",
"item": {
"id": 2,
"name": "QA Test Feed Item Updated",
"calories": "100.00",
"cost_per_unit": "EGP 0.000",
"unit": {
"id": 15,
"name": "feed-979"
},
"categories": [],
"is_active": false,
"delete_reason": null
},
"unit_cost": "EGP 0.000",
"total_cost": "EGP 0.000",
"calories": "100"
}
],
"supported_types": [
{
"id": 6,
"name": "anim-334"
}
],
"supported_ages": [
{
"id": 8,
"name": "falc-262"
}
],
"delete_reason": null
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Restore Meal
Restore deleted Meal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "documentation-meal-update-6a4b8ac63e9ae",
"is_active": 0,
"note": "test-note",
"created_at": "2026-07-06T11:00:01.000000Z",
"meal_types": [
{
"id": 16,
"name": "feed-658"
}
],
"cost": "EGP 0.000",
"calories": "100",
"meal_items": [
{
"id": 2,
"quantity": "1.00",
"item": {
"id": 2,
"name": "QA Test Feed Item Updated",
"calories": "100.00",
"cost_per_unit": "EGP 0.000",
"unit": {
"id": 15,
"name": "feed-979"
},
"categories": [],
"is_active": false
},
"unit_cost": "EGP 0.000",
"total_cost": "EGP 0.000",
"calories": "100"
}
],
"supported_types": [
{
"id": 6,
"name": "anim-334"
}
],
"supported_ages": [
{
"id": 8,
"name": "falc-262"
}
]
}
}
Permanently Delete Meal
Force delete Meal.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Plan
Create a new Plan.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | string | documentation-plan-create-6a4b8aadd4b5d |
| type | string | monthly |
| note | string | Monthly feeding plan |
| is_active | boolean | 1 |
| supports | array | [ { "support_id": 6 } ] |
| ages | array | [ { "age_id": 8 } ] |
| meals | array | [ { "meal_id": 1, "quantity": 2, "days": [], "timing": "08:30" } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | required, string, unique feeding_plans,name, max 255 |
| type | required, enum |
| note | optional, string |
| is_active | optional, true/false |
| supports | required, array, min 1 |
| supports[].support_id | required, integer, exists settings,id,type,animals-species |
| ages | required, array, min 1 |
| ages[].age_id | required, integer, exists settings,id,type,falcon-age |
| meals | required, array, min 1 |
| meals[].meal_id | required, integer, exists feeding_meals,id |
| meals[].quantity | required, integer, min 1 |
| meals[].timing | required, date_format |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 1,
"name": "documentation-plan-create-6a4b8aadd4b5d",
"type": "monthly",
"note": "Monthly feeding plan",
"is_active": true,
"created_at": "2026-07-06T10:59:58.000000Z",
"supports": [
{
"id": 1,
"plan_id": 1,
"support_type": "settings",
"support_id": 6,
"created_at": "2026-07-06T10:59:58.000000Z",
"updated_at": "2026-07-06T10:59:58.000000Z"
}
],
"ages": [
{
"id": 1,
"plan_id": 1,
"age_type": "settings",
"age_id": 8,
"created_at": "2026-07-06T10:59:58.000000Z",
"updated_at": "2026-07-06T10:59:58.000000Z"
}
],
"meals": [
{
"id": 1,
"plan_id": 1,
"meal_id": 1,
"quantity": "2.00",
"timing": "08:30:00",
"created_at": "2026-07-06T10:59:58.000000Z",
"updated_at": "2026-07-06T10:59:58.000000Z"
}
],
"delete_reason": null
}
}
Get Plan List
Retrieve a list of Plan.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"name": "documentation-plan-create-6a4b8aadd4b5d",
"type": "monthly",
"note": "Monthly feeding plan",
"is_active": 1,
"created_at": "2026-07-06T10:59:58.000000Z",
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"meals": [
{
"id": 1,
"name": "documentation-meal-create-6a4b8aad417a9"
}
]
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Get Plan Details
Retrieve Plan details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 2,
"name": "Documentation Falcon Feeding Plan",
"type": "monthly",
"note": null,
"is_active": 1,
"created_at": "2026-07-06T11:00:01.000000Z",
"supports": [],
"ages": [],
"meals": [
{
"id": 2,
"name": "documentation-meal-update-6a4b8ac63e9ae"
}
]
}
}
Update Plan
Update an existing Plan.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | string | documentation-plan-update-6a4b8ac70488a |
| type | string | monthly |
| note | string | Monthly feeding plan |
| is_active | boolean | 1 |
| supports | array | [ { "support_id": 6 } ] |
| ages | array | [ { "age_id": 8 } ] |
| meals | array | [ { "meal_id": 2, "quantity": 2, "days": [], "timing": "08:30" } ] |
| id | integer | 2 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists feeding_plans,id |
| name | required, string, max 255, unique feeding_plans,name, |
| type | required, enum |
| note | optional, string |
| is_active | optional, true/false |
| supports | required, array, min 1 |
| supports[].support_id | required, integer, exists settings,id,type,animals-species |
| ages | required, array, min 1 |
| ages[].age_id | required, integer, exists settings,id,type,falcon-age |
| meals | required, array, min 1 |
| meals[].meal_id | required, integer, exists feeding_meals,id |
| meals[].quantity | required, integer, min 1 |
| meals[].timing | required, date_format |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "documentation-plan-update-6a4b8ac70488a",
"type": "monthly",
"note": "Monthly feeding plan",
"is_active": true,
"created_at": "2026-07-06T11:00:01.000000Z",
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"meals": [
{
"id": 2,
"name": "documentation-meal-update-6a4b8ac63e9ae"
}
]
}
}
Toggle Plan Status
Switch the Plan status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "documentation-plan-update-6a4b8ac70488a",
"type": "monthly",
"note": "Monthly feeding plan",
"is_active": false,
"created_at": "2026-07-06T11:00:01.000000Z",
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"meals": [
{
"id": 2,
"name": "documentation-meal-update-6a4b8ac63e9ae"
}
]
}
}
Delete Plan
Delete a Plan.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Get Deleted Plan
List deleted Plan.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 2,
"name": "documentation-plan-update-6a4b8ac70488a",
"type": "monthly",
"note": "Monthly feeding plan",
"is_active": 0,
"created_at": "2026-07-06T11:00:01.000000Z",
"supports": [
{
"id": 6,
"name": "anim-334"
}
],
"ages": [
{
"id": 8,
"name": "falc-262"
}
],
"meals": [
{
"id": 2,
"name": "documentation-meal-update-6a4b8ac63e9ae",
"delete_reason": null
}
],
"delete_reason": null
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Restore Plan
Restore deleted Plan.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "documentation-plan-update-6a4b8ac70488a",
"type": "monthly",
"note": "Monthly feeding plan",
"is_active": 0,
"created_at": "2026-07-06T11:00:01.000000Z",
"supports": [
{
"id": 6,
"name": "anim-334"
}
],
"ages": [
{
"id": 8,
"name": "falc-262"
}
],
"meals": [
{
"id": 2,
"name": "documentation-meal-update-6a4b8ac63e9ae"
}
]
}
}
Permanently Delete Plan
Force delete Plan.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create feeding category
Create feeding category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | feed-320 |
| name_ar | string | أختبار للاعدادات738 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 14,
"name": "feed-320"
}
}
Get feeding category List
Get feeding category List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 14,
"name": "feed-320",
"name_translate": {
"ar": "أختبار للاعدادات738",
"en": "feed-320"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single feeding category
Show Single feeding category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 14,
"name": "feed-320",
"name_translate": {
"ar": "أختبار للاعدادات738",
"en": "feed-320"
},
"is_active": true
}
}
Update feeding category
Update feeding category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | feed-668 |
| name_ar | string | أختبار للاعدادات767 |
| id | integer | 14 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,feeding-category |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 14,
"name": "feed-668"
}
}
Active Or InActive feeding category
Update feeding category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 14,
"name": "feed-668"
}
}
Delete feeding category
Delete feeding category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create feeding meals type
Create feeding meals type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | feed-755 |
| name_ar | string | أختبار للاعدادات931 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 16,
"name": "feed-755"
}
}
Get feeding meals type List
Get feeding meals type List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 16,
"name": "feed-755",
"name_translate": {
"ar": "أختبار للاعدادات931",
"en": "feed-755"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single feeding meals type
Show Single feeding meals type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 16,
"name": "feed-755",
"name_translate": {
"ar": "أختبار للاعدادات931",
"en": "feed-755"
},
"is_active": true
}
}
Update feeding meals type
Update feeding meals type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | feed-658 |
| name_ar | string | أختبار للاعدادات983 |
| id | integer | 16 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,feeding-meals-type |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 16,
"name": "feed-658"
}
}
Active Or InActive feeding meals type
Update feeding meals type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 16,
"name": "feed-658"
}
}
Delete feeding meals type
Delete feeding meals type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create feeding unit
Create feeding unit
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | feed-442 |
| name_ar | string | أختبار للاعدادات443 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 15,
"name": "feed-442"
}
}
Get feeding unit List
Get feeding unit List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 15,
"name": "feed-442",
"name_translate": {
"ar": "أختبار للاعدادات443",
"en": "feed-442"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single feeding unit
Show Single feeding unit
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 15,
"name": "feed-442",
"name_translate": {
"ar": "أختبار للاعدادات443",
"en": "feed-442"
},
"is_active": true
}
}
Update feeding unit
Update feeding unit
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | feed-979 |
| name_ar | string | أختبار للاعدادات462 |
| id | integer | 15 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,feeding-unit |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 15,
"name": "feed-979"
}
}
Active Or InActive feeding unit
Update feeding unit
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 15,
"name": "feed-979"
}
}
Delete feeding unit
Delete feeding unit
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create medical category
Create medical category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | medi-459 |
| name_ar | string | أختبار للاعدادات434 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 17,
"name": "medi-459"
}
}
Get medical category List
Get medical category List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 17,
"name": "medi-459",
"name_translate": {
"ar": "أختبار للاعدادات434",
"en": "medi-459"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single medical category
Show Single medical category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 17,
"name": "medi-459",
"name_translate": {
"ar": "أختبار للاعدادات434",
"en": "medi-459"
},
"is_active": true
}
}
Update medical category
Update medical category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | medi-727 |
| name_ar | string | أختبار للاعدادات868 |
| id | integer | 17 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,medical-category |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 17,
"name": "medi-727"
}
}
Active Or InActive medical category
Update medical category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 17,
"name": "medi-727"
}
}
Delete medical category
Delete medical category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create medical unit
Create medical unit
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | medi-866 |
| name_ar | string | أختبار للاعدادات829 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 18,
"name": "medi-866"
}
}
Get medical unit List
Get medical unit List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 18,
"name": "medi-866",
"name_translate": {
"ar": "أختبار للاعدادات829",
"en": "medi-866"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single medical unit
Show Single medical unit
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 18,
"name": "medi-866",
"name_translate": {
"ar": "أختبار للاعدادات829",
"en": "medi-866"
},
"is_active": true
}
}
Update medical unit
Update medical unit
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | medi-952 |
| name_ar | string | أختبار للاعدادات849 |
| id | integer | 18 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,medical-unit |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 18,
"name": "medi-952"
}
}
Active Or InActive medical unit
Update medical unit
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 18,
"name": "medi-952"
}
}
Delete medical unit
Delete medical unit
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create medical medicine category
Create medical medicine category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | medi-918 |
| name_ar | string | أختبار للاعدادات916 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 19,
"name": "medi-918"
}
}
Get medical medicine category List
Get medical medicine category List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 19,
"name": "medi-918",
"name_translate": {
"ar": "أختبار للاعدادات916",
"en": "medi-918"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single medical medicine category
Show Single medical medicine category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 19,
"name": "medi-918",
"name_translate": {
"ar": "أختبار للاعدادات916",
"en": "medi-918"
},
"is_active": true
}
}
Update medical medicine category
Update medical medicine category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | medi-395 |
| name_ar | string | أختبار للاعدادات545 |
| id | integer | 19 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,medical-medicine-category |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 19,
"name": "medi-395"
}
}
Active Or InActive medical medicine category
Update medical medicine category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 19,
"name": "medi-395"
}
}
Delete medical medicine category
Delete medical medicine category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create medical medicine form
Create medical medicine form
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | medi-621 |
| name_ar | string | أختبار للاعدادات890 |
| parent_id | integer | 18 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| parent_id | required, integer, ParentTypeRule |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 20,
"name": "medi-621"
}
}
Get medical medicine form List
Get medical medicine form List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 20,
"name": "medi-621",
"name_translate": {
"ar": "أختبار للاعدادات890",
"en": "medi-621"
},
"is_active": true,
"parent": {
"id": 18,
"name": "medi-866"
}
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single medical medicine form
Show Single medical medicine form
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 20,
"name": "medi-621",
"name_translate": {
"ar": "أختبار للاعدادات890",
"en": "medi-621"
},
"is_active": true,
"parent": {
"id": 18,
"name": "medi-952"
}
}
}
Update medical medicine form
Update medical medicine form
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | medi-223 |
| name_ar | string | أختبار للاعدادات944 |
| id | integer | 20 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,medical-medicine-form |
| parent_id | optional, integer, ParentTypeRule |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 20,
"name": "medi-223"
}
}
Active Or InActive medical medicine form
Update medical medicine form
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 20,
"name": "medi-223"
}
}
Delete medical medicine form
Delete medical medicine form
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create medical severity
Create medical severity
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | medi-306 |
| name_ar | string | أختبار للاعدادات935 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 21,
"name": "medi-306"
}
}
Get medical severity List
Get medical severity List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 21,
"name": "medi-306",
"name_translate": {
"ar": "أختبار للاعدادات935",
"en": "medi-306"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single medical severity
Show Single medical severity
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 21,
"name": "medi-306",
"name_translate": {
"ar": "أختبار للاعدادات935",
"en": "medi-306"
},
"is_active": true
}
}
Update medical severity
Update medical severity
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | medi-271 |
| name_ar | string | أختبار للاعدادات905 |
| id | integer | 21 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,medical-severity |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 21,
"name": "medi-271"
}
}
Active Or InActive medical severity
Update medical severity
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 21,
"name": "medi-271"
}
}
Delete medical severity
Delete medical severity
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Complete Medication
Complete an existing Medication.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| form_id | integer | 20 |
| supports | array | [ { "support_id": 6 } ] |
| ages | array | [ { "age_id": 8 } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| supports | required, array, min 1 |
| supports[].support_id | required, integer, exists settings,id,type,animals-species |
| ages | required, array, min 1 |
| ages[].age_id | required, integer, exists settings,id,type,falcon-age |
{
"success": true,
"message": "Medication completed successfully.",
"data": {
"id": 1,
"name": "QA Test Medication Item",
"unit": {
"id": 18,
"name": "medi-866"
},
"form": {
"id": 20,
"name": "medi-621"
},
"categories": [
{
"id": 19,
"name": "medi-918"
}
],
"note": "QA test medication inventory item",
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"is_active": true,
"is_completed": true,
"created_at": "2026-07-06T10:59:54.000000Z"
}
}
Get Medication List
Retrieve a list of Medication.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"name": "QA Test Medication Item",
"unit": {
"id": 18,
"name": "medi-866"
},
"form": {
"id": 20,
"name": "medi-621"
},
"categories": [
{
"id": 19,
"name": "medi-918"
}
],
"note": "QA test medication inventory item",
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"is_active": true,
"is_completed": true,
"created_at": "2026-07-06T10:59:54.000000Z"
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Get Medication Details
Retrieve Medication details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 1,
"name": "QA Test Medication Item",
"unit": {
"id": 18,
"name": "medi-866"
},
"form": {
"id": 20,
"name": "medi-621"
},
"categories": [
{
"id": 19,
"name": "medi-918"
}
],
"name_translate": {
"ar": "دواء اختبار الجودة",
"en": "QA Test Medication Item"
},
"note": "QA test medication inventory item",
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"is_active": true,
"is_completed": true,
"created_at": "2026-07-06T10:59:54.000000Z"
}
}
Update Medication
Update an existing Medication.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "en": "Amoxicillin Antibiotic 500mg (Updated)", "ar": "مضاد حيوي أموكسيسيلين 500 ملغ (محدث)" } |
| notes | string | Updated notes: Keep refrigerated after opening |
| categories | array | [ { "category_id": 19 } ] |
| form_id | integer | 20 |
| unit_id | integer | 18 |
| is_active | boolean | 1 |
| supports | array | [ { "support_id": 6 } ] |
| ages | array | [ { "age_id": 8 } ] |
| id | integer | 1 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | sometimes, array |
| name.ar | required_with, string, max 255 |
| name.en | required_with, string, max 255 |
| category_id | optional, exists categories,id |
| unit_id | optional, exists settings,id,type,medical-unit |
| form_id | optional, exists settings,id,type,medical-medicine-form |
| supports | optional, array, min 1 |
| supports[].support_id | required, integer, exists settings,id,type,animals-species |
| ages | optional, array, min 1 |
| ages[].age_id | required, integer, exists settings,id,type,falcon-age |
| categories | optional, array, min 1 |
| categories[].category_id | required, integer, exists settings,id,type,medical-medicine-category |
| note | optional, string, max 255 |
| is_active | optional, true/false |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "Amoxicillin Antibiotic 500mg (Updated)",
"unit": {
"id": 18,
"name": "medi-866"
},
"form": {
"id": 20,
"name": "medi-621"
},
"categories": [
{
"id": 19,
"name": "medi-918"
}
],
"note": "QA test medication inventory item",
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"is_active": true,
"is_completed": true,
"created_at": "2026-07-06T10:59:54.000000Z"
}
}
Toggle Medication Status
Switch the Medication status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "Amoxicillin Antibiotic 500mg (Updated)",
"unit": {
"id": 18,
"name": "medi-866"
},
"form": {
"id": 20,
"name": "medi-621"
},
"categories": [
{
"id": 19,
"name": "medi-918"
}
],
"note": "QA test medication inventory item",
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"is_active": false,
"is_completed": true,
"created_at": "2026-07-06T10:59:54.000000Z"
}
}
Delete Medication
Delete a Medication.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Get Deleted Medication
List deleted Medication.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"name": "Amoxicillin Antibiotic 500mg (Updated)",
"unit": null,
"form": null,
"categories": [
{
"id": 1,
"name": null
}
],
"note": "QA test medication inventory item",
"supports": [
{
"id": 1,
"name": null
}
],
"ages": [
{
"id": 1,
"name": null
}
],
"is_active": false,
"is_completed": true,
"created_at": "2026-07-06T10:59:54.000000Z",
"delete_reason": null
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Restore Medication
Restore deleted Medication.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "Amoxicillin Antibiotic 500mg (Updated)",
"unit": null,
"form": null,
"categories": [
{
"id": 1,
"name": null
}
],
"note": "QA test medication inventory item",
"supports": [
{
"id": 1,
"name": null
}
],
"ages": [
{
"id": 1,
"name": null
}
],
"is_active": false,
"is_completed": true,
"created_at": "2026-07-06T10:59:54.000000Z"
}
}
Permanently Delete Medication
Force delete Medication.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Procedure
Create a new Procedure.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "en": "Complete Blood Count (CBC) Analysis", "ar": "تحليل صورة الدم الكاملة (CBC)" } |
| category_id | integer | 17 |
| cost | integer | 120 |
| notes | string | Patient must fast for 8 hours prior to the blood test |
| is_active | boolean | 1 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | required, array |
| name.ar | required, string, max 255 |
| name.en | required, string, max 255 |
| category_id | required, exists settings,id,type,medical-category |
| cost | required, numeric |
| note | optional, string, max 255 |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 1,
"name": "Complete Blood Count (CBC) Analysis",
"cost": 120,
"note": null,
"category": null,
"is_active": false,
"created_at": "2026-07-06T11:00:10.000000Z"
}
}
Get Procedure List
Retrieve a list of Procedure.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"name": "Complete Blood Count (CBC) Analysis",
"cost": "120.00",
"note": null,
"category": {
"id": 17,
"name": "medi-459"
},
"is_active": true,
"created_at": "2026-07-06T11:00:10.000000Z"
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Get Procedure Details
Retrieve Procedure details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 1,
"name": "Complete Blood Count (CBC) Analysis",
"cost": "120.00",
"note": null,
"category": null,
"is_active": true,
"created_at": "2026-07-06T11:00:10.000000Z"
}
}
Update Procedure
Update an existing Procedure.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "en": "Comprehensive Metabolic Panel (CMP)", "ar": "لوحة التمثيل الغذائي الشاملة" } |
| category_id | integer | 17 |
| cost | integer | 150 |
| notes | string | Updated: Requires detailed lab reporting |
| is_active | boolean | |
| id | integer | 1 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | sometimes, array |
| name.ar | required_with, string, max 255 |
| name.en | required_with, string, max 255 |
| category_id | optional, exists settings,id,type,medical-category |
| cost | optional, numeric |
| note | optional, string, max 255 |
| is_active | optional, true/false |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "Comprehensive Metabolic Panel (CMP)",
"cost": 150,
"note": null,
"category": null,
"is_active": false,
"created_at": "2026-07-06T11:00:10.000000Z"
}
}
Toggle Procedure Status
Switch the Procedure status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "Comprehensive Metabolic Panel (CMP)",
"cost": "150.00",
"note": null,
"category": null,
"is_active": true,
"created_at": "2026-07-06T11:00:10.000000Z"
}
}
Delete Procedure
Delete a Procedure.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Get Deleted Procedure
List deleted Procedure.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"name": "Comprehensive Metabolic Panel (CMP)",
"cost": "150.00",
"note": null,
"category": null,
"is_active": true,
"created_at": "2026-07-06T11:00:10.000000Z",
"delete_reason": null
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Restore Procedure
Restore deleted Procedure.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "Comprehensive Metabolic Panel (CMP)",
"cost": "150.00",
"note": null,
"category": null,
"is_active": true,
"created_at": "2026-07-06T11:00:10.000000Z"
}
}
Permanently Delete Procedure
Force delete Procedure.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Medical-action
Create a new Medical-action.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| request_id | NULL | |
| targets | array | [ { "target_id": 17 } ] |
| diagnosis | array | { "diagnosis": "Test Diagnosis", "category_id": 17, "severity_id": 21, "note": "Test Diagnosis Note" } |
| procedures | array | { "items": [ { "procedure_id": 1, "date": "2026-04-01", "time": "10:00" } ] } |
| medication_plan | array | { "start_date": "2026-07-06", "end_date": "2026-07-09", "note": "Test Medication Plan", "items": [ { "medication_id": 1, "dose": "1 pill", "doses_per_day": 2, "repeat_every_days": 1, "times": [ "08:00", "20:00" ] } ] } |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| request_id | optional, exists medical_requests,id |
| targets | required, array, min 1 |
| targets[].target_id | required, integer |
| health_status_id | optional, integer, ParentTypeRule |
| diagnosis | sometimes, array |
| diagnosis.diagnosis | required_with, string |
| diagnosis.category_id | required_with, exists settings,id,type,medical-category |
| diagnosis.severity_id | required_with, exists settings,id,type,medical-severity |
| diagnosis.note | optional, string |
| procedures | sometimes, array |
| procedures.note | optional, string |
| procedures.items | required_with, array, min 1 |
| procedures.items[].procedure_id | required, exists medical_procedures,id |
| procedures.items[].date | required, date |
| procedures.items[].time | optional, date_format |
| medication_plan | sometimes, array |
| medication_plan.start_date | required_with, date |
| medication_plan.end_date | optional, date, after_or_equal, MedicationPlanDurationRule |
| medication_plan.note | optional, string |
| medication_plan.items | required_with, array, min 1 |
| medication_plan.items[].medication_id | required, exists medical_medications,id |
| medication_plan.items[].dose | required, string |
| medication_plan.items[].doses_per_day | required, integer, min 1 |
| medication_plan.items[].repeat_every_days | required, integer, min 1 |
| medication_plan.items[].times | required, array, MedicationPlanTimesRule |
| medication_plan.items[].times.* | date_format:H:i |
{
"success": true,
"message": "Data inserted successfully.",
"data": [
{
"id": 1,
"request_id": null,
"action_type": "diagnosis",
"action_code": "MED-20260706-110011-RAEGCH",
"note": "Test Diagnosis Note",
"action_by": 1,
"is_active": true,
"created_at": "2026-07-06T11:00:11.000000Z",
"diagnoses": [
{
"id": 1,
"diagnosis": "Test Diagnosis",
"category": {
"id": 17,
"name": "medi-459"
},
"severity": {
"id": 21,
"name": "medi-306"
}
}
],
"targets": [
{
"id": 1,
"target_id": 17
}
]
},
{
"id": 2,
"request_id": null,
"action_type": "procedure",
"action_code": "MED-20260706-110011-RAEGCH",
"note": null,
"action_by": 1,
"is_active": true,
"created_at": "2026-07-06T11:00:11.000000Z",
"procedures": [
{
"id": 1,
"procedure": {
"id": 1,
"name": "Complete Blood Count (CBC) Analysis"
},
"date": "2026-04-01",
"time": "10:00:00"
}
],
"targets": [
{
"id": 2,
"target_id": 17
}
]
},
{
"id": 3,
"request_id": null,
"action_type": "medication",
"action_code": "MED-20260706-110011-RAEGCH",
"note": "Test Medication Plan",
"action_by": 1,
"is_active": true,
"created_at": "2026-07-06T11:00:11.000000Z",
"medication_plans": [
{
"id": 1,
"status": "active",
"start_date": "2026-07-06",
"end_date": "2026-07-09",
"items": [
{
"id": 1,
"medication": {
"id": 1,
"name": "QA Test Medication Item",
"unit": {
"id": 18,
"name": "medi-866"
},
"form": {
"id": 20,
"name": "medi-621"
},
"categories": [
{
"id": 19,
"name": "medi-918"
}
]
},
"dose": "1 pill",
"doses_per_day": 2,
"repeat_every_days": 1,
"times": [
"08:00",
"20:00"
]
}
]
}
],
"targets": [
{
"id": 3,
"target_id": 17
}
]
}
]
}
Get Medical-action List
Retrieve a list of Medical-action.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"request_id": null,
"action_type": "diagnosis",
"action_code": "MED-20260706-110011-RAEGCH",
"note": "Test Diagnosis Note",
"action_by": 1,
"is_active": true,
"created_at": "2026-07-06T11:00:11.000000Z",
"diagnoses": [
{
"id": 1,
"diagnosis": "Test Diagnosis",
"category": {
"id": 17,
"name": "medi-459"
},
"severity": {
"id": 21,
"name": "medi-306"
}
}
],
"targets": [
{
"id": 1,
"target_id": 17
}
]
},
{
"id": 2,
"request_id": null,
"action_type": "procedure",
"action_code": "MED-20260706-110011-RAEGCH",
"note": null,
"action_by": 1,
"is_active": true,
"created_at": "2026-07-06T11:00:11.000000Z",
"procedures": [
{
"id": 1,
"procedure": {
"id": 1,
"name": "Complete Blood Count (CBC) Analysis"
},
"date": "2026-04-01",
"time": "10:00:00"
}
],
"targets": [
{
"id": 2,
"target_id": 17
}
]
},
{
"id": 3,
"request_id": null,
"action_type": "medication",
"action_code": "MED-20260706-110011-RAEGCH",
"note": "Test Medication Plan",
"action_by": 1,
"is_active": true,
"created_at": "2026-07-06T11:00:11.000000Z",
"medication_plans": [
{
"id": 1,
"status": "active",
"start_date": "2026-07-06",
"end_date": "2026-07-09",
"items": [
{
"id": 1,
"medication": {
"id": 1,
"name": "QA Test Medication Item",
"unit": {
"id": 18,
"name": "medi-866"
},
"form": {
"id": 20,
"name": "medi-621"
},
"categories": [
{
"id": 19,
"name": "medi-918"
}
]
},
"dose": "1 pill",
"doses_per_day": 2,
"repeat_every_days": 1,
"times": [
"08:00",
"20:00"
]
}
]
}
],
"targets": [
{
"id": 3,
"target_id": 17
}
]
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 3,
"last_page": 1
}
}
Get Medical-action Details
Retrieve Medical-action details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 1,
"request_id": null,
"action_type": "diagnosis",
"action_code": "MED-20260706-110011-RAEGCH",
"note": "Test Diagnosis Note",
"action_by": 1,
"is_active": true,
"created_at": "2026-07-06T11:00:11.000000Z",
"diagnoses": [
{
"id": 1,
"diagnosis": "Test Diagnosis",
"category": {
"id": 17,
"name": "medi-459"
},
"severity": {
"id": 21,
"name": "medi-306"
}
}
],
"targets": [
{
"id": 1,
"target_id": 17
}
]
}
}
Toggle Medical-action Status
Switch the Medical-action status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"request_id": null,
"action_type": "diagnosis",
"action_code": "MED-20260706-110011-RAEGCH",
"note": "Test Diagnosis Note",
"action_by": 1,
"is_active": false,
"created_at": "2026-07-06T11:00:11.000000Z",
"diagnoses": [
{
"id": 1,
"diagnosis": "Test Diagnosis",
"category": {
"id": 17,
"name": "medi-459"
},
"severity": {
"id": 21,
"name": "medi-306"
}
}
],
"targets": [
{
"id": 1,
"target_id": 17
}
]
}
}
Delete Medical-action
Delete a Medical-action.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Get Deleted Medical-action
List deleted Medical-action.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"request_id": null,
"action_type": "diagnosis",
"action_code": "MED-20260706-110011-RAEGCH",
"note": "Test Diagnosis Note",
"action_by": 1,
"is_active": false,
"created_at": "2026-07-06T11:00:11.000000Z",
"diagnoses": [
{
"id": 1,
"diagnosis": "Test Diagnosis",
"category": null,
"severity": null
}
],
"targets": [
{
"id": 1,
"target_id": 17
}
],
"delete_reason": null
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Restore Medical-action
Restore deleted Medical-action.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"request_id": null,
"action_type": "diagnosis",
"action_code": "MED-20260706-110011-RAEGCH",
"note": "Test Diagnosis Note",
"action_by": 1,
"is_active": false,
"created_at": "2026-07-06T11:00:11.000000Z",
"diagnoses": [
{
"id": 1,
"diagnosis": "Test Diagnosis",
"category": null,
"severity": null
}
],
"targets": [
{
"id": 1,
"target_id": 17
}
]
}
}
Permanently Delete Medical-action
Force delete Medical-action.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create training category
Create training category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | trai-866 |
| name_ar | string | أختبار للاعدادات608 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 22,
"name": "trai-866"
}
}
Get training category List
Get training category List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 22,
"name": "trai-866",
"name_translate": {
"ar": "أختبار للاعدادات608",
"en": "trai-866"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single training category
Show Single training category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 22,
"name": "trai-866",
"name_translate": {
"ar": "أختبار للاعدادات608",
"en": "trai-866"
},
"is_active": true
}
}
Update training category
Update training category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | trai-969 |
| name_ar | string | أختبار للاعدادات165 |
| id | integer | 22 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,training-category |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 22,
"name": "trai-969"
}
}
Active Or InActive training category
Update training category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 22,
"name": "trai-969"
}
}
Delete training category
Delete training category
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create training rate
Create training rate
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | trai-889 |
| name_ar | string | أختبار للاعدادات268 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 23,
"name": "trai-889"
}
}
Get training rate List
Get training rate List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 23,
"name": "trai-889",
"name_translate": {
"ar": "أختبار للاعدادات268",
"en": "trai-889"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single training rate
Show Single training rate
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 23,
"name": "trai-889",
"name_translate": {
"ar": "أختبار للاعدادات268",
"en": "trai-889"
},
"is_active": true
}
}
Update training rate
Update training rate
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | trai-916 |
| name_ar | string | أختبار للاعدادات662 |
| id | integer | 23 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,training-rate |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 23,
"name": "trai-916"
}
}
Active Or InActive training rate
Update training rate
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 23,
"name": "trai-916"
}
}
Delete training rate
Delete training rate
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Training
Create a new Training.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "en": "Basic Falcon Handling", "ar": "التعامل الأساسي مع الصقر" } |
| supports | array | [ { "support_id": 6 } ] |
| categories | array | [ { "category_id": 22 } ] |
| ages | array | [ { "age_id": 8 } ] |
| trainers | array | [ { "trainer_id": 2 } ] |
| cost_per_session | double | 75.5 |
| duration | integer | 60 |
| notes | string | Introductory session for new falcons. |
| is_active | boolean | 1 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | required, array |
| name.ar | required, string, max 255 |
| name.en | required, string, max 255 |
| supports | required, array, min 1 |
| supports[].support_id | required, integer, exists settings,id,type,animals-species |
| categories | required, array, min 1 |
| categories[].category_id | required, integer, exists settings,id,type,training-category |
| ages | required, array, min 1 |
| ages[].age_id | required, integer, exists settings,id,type,falcon-age |
| trainers | required, array, min 1 |
| trainers[].trainer_id | required, integer, exists admins,id |
| cost_per_session | optional, numeric, min 0 |
| duration | optional, integer, min 1 |
| notes | optional, string, max 255 |
| is_active | required, true/false |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 1,
"name": "Basic Falcon Handling",
"cost_per_session": 75.5,
"duration": 60,
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"categories": [
{
"id": 22,
"name": "trai-866"
}
],
"trainers": [
{
"id": 2,
"name": "Admin 2"
}
],
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"note": null,
"is_active": true,
"created_at": "2026-07-06T11:00:12.000000Z"
}
}
Get Training List
Retrieve a list of Training.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"name": "Basic Falcon Handling",
"cost_per_session": "75.50",
"duration": 60,
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"categories": [
{
"id": 22,
"name": "trai-866"
}
],
"trainers": [
{
"id": 2,
"name": "Admin 2"
}
],
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"note": null,
"is_active": true,
"created_at": "2026-07-06T11:00:12.000000Z"
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Get Training Details
Retrieve Training details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 1,
"name": "Basic Falcon Handling",
"cost_per_session": "75.50",
"duration": 60,
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"categories": [
{
"id": 22,
"name": "trai-866"
}
],
"trainers": [
{
"id": 2,
"name": null
}
],
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"note": null,
"is_active": true,
"created_at": "2026-07-06T11:00:12.000000Z"
}
}
Update Training
Update an existing Training.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "en": "Basic Falcon Handling (updated)", "ar": "التعامل الأساسي مع الصقر (محدث)" } |
| supports | array | [ { "support_id": 6 } ] |
| categories | array | [ { "category_id": 22 } ] |
| ages | array | [ { "age_id": 8 } ] |
| trainers | array | [ { "trainer_id": 2 } ] |
| cost_per_session | integer | 85 |
| notes | string | Updated notes for documentation. |
| is_active | boolean | 1 |
| id | integer | 1 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | required, array |
| name.ar | required, string, max 255 |
| name.en | required, string, max 255 |
| supports | optional, array, min 1 |
| supports[].support_id | required, integer, exists settings,id,type,animals-species |
| categories | optional, array, min 1 |
| categories[].category_id | required, integer, exists settings,id,type,training-category |
| ages | optional, array, min 1 |
| ages[].age_id | required, integer, exists settings,id,type,falcon-age |
| trainers | optional, array, min 1 |
| trainers[].trainer_id | required, integer, exists admins,id |
| cost_per_session | required, numeric, min 0 |
| notes | optional, string, max 255 |
| is_active | required, true/false |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "Basic Falcon Handling (updated)",
"cost_per_session": 85,
"duration": 60,
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"categories": [
{
"id": 22,
"name": "trai-866"
}
],
"trainers": [
{
"id": 2,
"name": null
}
],
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"note": null,
"is_active": true,
"created_at": "2026-07-06T11:00:12.000000Z"
}
}
Toggle Training Status
Switch the Training status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "Basic Falcon Handling (updated)",
"cost_per_session": "85.00",
"duration": 60,
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"categories": [
{
"id": 22,
"name": "trai-866"
}
],
"trainers": [
{
"id": 2,
"name": null
}
],
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"note": null,
"is_active": false,
"created_at": "2026-07-06T11:00:12.000000Z"
}
}
Delete Training
Delete a Training.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Training-plan
Create a new Training-plan.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "en": "Weekly conditioning plan", "ar": "خطة تكييف أسبوعية" } |
| supports | array | [ { "support_id": 6 } ] |
| ages | array | [ { "age_id": 8 } ] |
| notes | string | Plan used for API documentation samples. |
| is_active | boolean | 1 |
| items | array | [ { "training_id": 1, "trainer_id": 2 } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | required, array |
| name.ar | required, string, max 255 |
| name.en | required, string, max 255 |
| supports | required, array |
| supports[].support_id | required, exists settings,id,type,animals-species |
| ages | required, array |
| ages[].age_id | required, exists settings,id,type,falcon-age |
| notes | optional, string, max 255 |
| is_active | required, true/false |
| items | required, array |
| items[].training_id | required, exists training,id |
| items[].trainer_id | required, exists admins,id |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 1,
"name": "Weekly conditioning plan",
"items": [
{
"id": 1,
"training": {
"id": 1,
"name": "Basic Falcon Handling"
},
"trainer": {
"id": 2,
"name": "Admin 2",
"email": "admin2@gmail.com",
"phone": "01112226666",
"created_at": "2026-07-06",
"is_active": true
},
"is_active": true,
"created_at": "2026-07-06T11:00:12.000000Z"
}
],
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"note": null,
"is_active": true,
"created_at": "2026-07-06T11:00:12.000000Z"
}
}
Get Training-plan List
Retrieve a list of Training-plan.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"name": "Weekly conditioning plan",
"items": [
{
"id": 1,
"training": {
"id": 1,
"name": "Basic Falcon Handling"
},
"trainer": {
"id": 2,
"name": "Admin 2",
"email": "admin2@gmail.com",
"phone": "01112226666",
"created_at": "2026-07-06",
"is_active": true
},
"is_active": true,
"created_at": "2026-07-06T11:00:12.000000Z"
}
],
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"note": null,
"is_active": true,
"created_at": "2026-07-06T11:00:12.000000Z"
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Get Training-plan Details
Retrieve Training-plan details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 1,
"name": "Weekly conditioning plan",
"items": [
{
"id": 1,
"training": null,
"trainer": null,
"is_active": true,
"created_at": "2026-07-06T11:00:12.000000Z"
}
],
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"note": null,
"is_active": true,
"created_at": "2026-07-06T11:00:12.000000Z"
}
}
Update Training-plan
Update an existing Training-plan.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "en": "Weekly conditioning plan (updated)", "ar": "خطة تكييف أسبوعية (محدثة)" } |
| supports | array | [ { "support_id": 6 } ] |
| ages | array | [ { "age_id": 8 } ] |
| notes | string | Updated plan notes. |
| is_active | boolean | 1 |
| items | array | [ { "training_id": 1, "trainer_id": 2 } ] |
| id | integer | 1 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | sometimes, array |
| name.ar | sometimes, string, max 255 |
| name.en | sometimes, string, max 255 |
| supports | optional, array |
| supports[] | optional, exists settings,id,type,animals-species |
| ages | optional, array |
| ages[] | optional, exists settings,id,type,falcon-age |
| notes | optional, string, max 255 |
| is_active | sometimes, true/false |
| items | optional, array |
| items[].training_id | required_with, exists training,id |
| items[].trainer_id | required_with, exists admins,id |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "Weekly conditioning plan (updated)",
"items": [
{
"id": 1,
"training": null,
"trainer": null,
"is_active": true,
"created_at": "2026-07-06T11:00:12.000000Z"
}
],
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"note": null,
"is_active": true,
"created_at": "2026-07-06T11:00:12.000000Z"
}
}
Toggle Training-plan Status
Switch the Training-plan status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "Weekly conditioning plan (updated)",
"items": [
{
"id": 1,
"training": null,
"trainer": null,
"is_active": true,
"created_at": "2026-07-06T11:00:12.000000Z"
}
],
"ages": [
{
"id": 8,
"name": "falc-236"
}
],
"supports": [
{
"id": 6,
"name": "anim-373"
}
],
"note": null,
"is_active": false,
"created_at": "2026-07-06T11:00:12.000000Z"
}
}
Delete Training-plan
Delete a Training-plan.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create locations country
Create locations country
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | loca-308 |
| name_ar | string | أختبار للاعدادات168 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 24,
"name": "loca-308"
}
}
Get locations country List
Get locations country List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 24,
"name": "loca-308",
"name_translate": {
"ar": "أختبار للاعدادات168",
"en": "loca-308"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single locations country
Show Single locations country
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 24,
"name": "loca-308",
"name_translate": {
"ar": "أختبار للاعدادات168",
"en": "loca-308"
},
"is_active": true
}
}
Update locations country
Update locations country
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | loca-277 |
| name_ar | string | أختبار للاعدادات134 |
| id | integer | 24 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,locations-country |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 24,
"name": "loca-277"
}
}
Active Or InActive locations country
Update locations country
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 24,
"name": "loca-277"
}
}
Delete locations country
Delete locations country
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create locations city
Create locations city
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | loca-914 |
| name_ar | string | أختبار للاعدادات775 |
| parent_id | integer | 24 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| parent_id | required, integer, ParentTypeRule |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 26,
"name": "loca-914"
}
}
Get locations city List
Get locations city List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 26,
"name": "loca-914",
"name_translate": {
"ar": "أختبار للاعدادات775",
"en": "loca-914"
},
"is_active": true,
"parent": {
"id": 24,
"name": "loca-308"
}
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single locations city
Show Single locations city
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 26,
"name": "loca-914",
"name_translate": {
"ar": "أختبار للاعدادات775",
"en": "loca-914"
},
"is_active": true,
"parent": {
"id": 24,
"name": "loca-277"
}
}
}
Update locations city
Update locations city
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | loca-360 |
| name_ar | string | أختبار للاعدادات430 |
| id | integer | 26 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,locations-city |
| parent_id | optional, integer, ParentTypeRule |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 26,
"name": "loca-360"
}
}
Active Or InActive locations city
Update locations city
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 26,
"name": "loca-360"
}
}
Delete locations city
Delete locations city
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create locations type
Create locations type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | loca-441 |
| name_ar | string | أختبار للاعدادات558 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 25,
"name": "loca-441"
}
}
Get locations type List
Get locations type List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 25,
"name": "loca-441",
"name_translate": {
"ar": "أختبار للاعدادات558",
"en": "loca-441"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single locations type
Show Single locations type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 25,
"name": "loca-441",
"name_translate": {
"ar": "أختبار للاعدادات558",
"en": "loca-441"
},
"is_active": true
}
}
Update locations type
Update locations type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | loca-950 |
| name_ar | string | أختبار للاعدادات204 |
| id | integer | 25 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,locations-type |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 25,
"name": "loca-950"
}
}
Active Or InActive locations type
Update locations type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 25,
"name": "loca-950"
}
}
Delete locations type
Delete locations type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create locations subunit type
Create locations subunit type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | loca-278 |
| name_ar | string | أختبار للاعدادات935 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 27,
"name": "loca-278"
}
}
Get locations subunit type List
Get locations subunit type List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 27,
"name": "loca-278",
"name_translate": {
"ar": "أختبار للاعدادات935",
"en": "loca-278"
},
"is_active": true
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single locations subunit type
Show Single locations subunit type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 27,
"name": "loca-278",
"name_translate": {
"ar": "أختبار للاعدادات935",
"en": "loca-278"
},
"is_active": true
}
}
Update locations subunit type
Update locations subunit type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | loca-635 |
| name_ar | string | أختبار للاعدادات553 |
| id | integer | 27 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,locations-subunit-type |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 27,
"name": "loca-635"
}
}
Active Or InActive locations subunit type
Update locations subunit type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 27,
"name": "loca-635"
}
}
Delete locations subunit type
Delete locations subunit type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create locations subunit sub type
Create locations subunit sub type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | loca-529 |
| name_ar | string | أختبار للاعدادات550 |
| parent_id | integer | 27 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
| parent_id | required, integer, ParentTypeRule |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 28,
"name": "loca-529"
}
}
Get locations subunit sub type List
Get locations subunit sub type List
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Query Parameters
| Field/Name | Type | Examples |
|---|---|---|
| page | integer | 1 |
| per_page | integer | 10 |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 28,
"name": "loca-529",
"name_translate": {
"ar": "أختبار للاعدادات550",
"en": "loca-529"
},
"is_active": true,
"parent": {
"id": 27,
"name": "loca-278"
}
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Show Single locations subunit sub type
Show Single locations subunit sub type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 28,
"name": "loca-529",
"name_translate": {
"ar": "أختبار للاعدادات550",
"en": "loca-529"
},
"is_active": true,
"parent": {
"id": 27,
"name": "loca-635"
}
}
}
Update locations subunit sub type
Update locations subunit sub type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name_en | string | loca-743 |
| name_ar | string | أختبار للاعدادات653 |
| id | integer | 28 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists settings,id,type,locations-subunit-sub-type |
| name_ar | required, string, max 255, ArabicRoleName, UniqueSettingName |
| name_en | required, string, max 255, EnglishRoleName, UniqueSettingName |
| parent_id | optional, integer, ParentTypeRule |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 28,
"name": "loca-743"
}
}
Active Or InActive locations subunit sub type
Update locations subunit sub type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 28,
"name": "loca-743"
}
}
Delete locations subunit sub type
Delete locations subunit sub type
Headers
| Field/Name | Type | Examples |
|---|---|---|
| Content-Type | string | application/json |
| X-API-Token | string | X-API-Token Key |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Location facility
Create a new Location facility.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "ar": "منشأة ", "en": "QA Facility" } |
| note | string | QA location facility |
| type_ids | array | [ 30 ] |
| country_id | integer | 31 |
| city_id | integer | 32 |
| is_active | boolean | 1 |
| links | array | [ { "name": "Map", "url": "https:\/\/example.com\/map" } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | required, array |
| name.ar | required, string, max 255, ArabicRoleName, UniqueTranslationName |
| name.en | required, string, max 255, EnglishRoleName, UniqueTranslationName |
| note | optional, string |
| type_ids | required, array, min 1 |
| type_ids[] | required, integer, distinct, exists settings,id,type,locations-type |
| country_id | required, integer, ParentTypeRule |
| city_id | required, integer, exists settings,id,type,locations-city, CityBelongsToCountryRule |
| is_active | optional, true/false |
| links | optional, array |
| links[].name | required, string, max 255, distinct |
| links[].url | required, url, max 2048, distinct |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 1,
"name": "QA Facility",
"is_active": true,
"supported_assets": null,
"capacity_falcons": {
"available": 0,
"total": 0,
"consumed": 0
},
"capacity_eggs": {
"available": 0,
"total": 0,
"consumed": 0
}
}
}
Get Location facility List
Retrieve a list of Location facility.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"name": "QA Facility",
"is_active": true,
"supported_assets": null,
"capacity_falcons": {
"available": 0,
"total": 0,
"consumed": 0
},
"capacity_eggs": {
"available": 0,
"total": 0,
"consumed": 0
},
"note": null,
"city": {
"id": 32,
"name": "QA City"
},
"types": [
{
"id": 30,
"name": "QA Location Type"
}
],
"stats": {
"buildings": 0,
"rooms": 0,
"subunits": 0
},
"links": [],
"created_at": "2026-07-06T10:59:58.000000Z",
"updated_at": "2026-07-06T10:59:58.000000Z"
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Get Location facility Details
Retrieve Location facility details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 1,
"name": "QA Facility",
"is_active": true,
"supported_assets": null,
"capacity_falcons": {
"available": 0,
"total": 0,
"consumed": 0
},
"capacity_eggs": {
"available": 0,
"total": 0,
"consumed": 0
},
"note": null,
"city": {
"id": 32,
"name": "QA City"
},
"types": [
{
"id": 30,
"name": "QA Location Type"
}
],
"stats": {
"buildings": 0,
"rooms": 0,
"subunits": 0
},
"links": [],
"created_at": "2026-07-06T10:59:58.000000Z",
"updated_at": "2026-07-06T10:59:58.000000Z",
"name_translate": []
}
}
Update Location facility
Update an existing Location facility.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "ar": "منشأة محدثة", "en": "QA Facility Updated" } |
| note | string | QA location facility updated |
| type_ids | array | [ 30 ] |
| country_id | integer | 31 |
| city_id | integer | 32 |
| is_active | boolean | 1 |
| links | array | [ { "name": "Map", "url": "https:\/\/example.com\/map" } ] |
| id | integer | 1 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists locations,id |
| name | required, array |
| name.ar | required, string, max 255, ArabicRoleName, UniqueTranslationName |
| name.en | required, string, max 255, EnglishRoleName, UniqueTranslationName |
| note | optional, string |
| parent_id | optional, exists locations,id |
| type_ids | required, array, min 1 |
| type_ids[] | required, integer, distinct, exists settings,id,type,locations-type |
| country_id | required, integer, ParentTypeRule |
| city_id | required, integer, exists settings,id,type,locations-city, CityBelongsToCountryRule |
| is_active | optional, true/false |
| links | optional, array |
| links[].name | required, string, max 255, distinct |
| links[].url | required, url, max 2048, distinct |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "QA Facility Updated",
"is_active": true,
"supported_assets": null,
"capacity_falcons": {
"available": 0,
"total": 0,
"consumed": 0
},
"capacity_eggs": {
"available": 0,
"total": 0,
"consumed": 0
}
}
}
Toggle Location facility Status
Switch the Location facility status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "QA Facility Updated",
"is_active": false,
"supported_assets": null,
"capacity_falcons": {
"available": 0,
"total": 0,
"consumed": 0
},
"capacity_eggs": {
"available": 0,
"total": 0,
"consumed": 0
}
}
}
Delete Location facility
Delete a Location facility.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Get Deleted Location facility
List deleted Location facility.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"name": "QA Facility Updated",
"is_active": false,
"supported_assets": null,
"capacity_falcons": {
"available": 0,
"total": 0,
"consumed": 0
},
"capacity_eggs": {
"available": 0,
"total": 0,
"consumed": 0
},
"note": null,
"city": {
"id": 32,
"name": "QA City"
},
"types": [
{
"id": 30,
"name": "QA Location Type"
}
],
"stats": {
"buildings": 0,
"rooms": 0,
"subunits": 0
},
"links": [],
"created_at": "2026-07-06T10:59:58.000000Z",
"updated_at": "2026-07-06T10:59:58.000000Z",
"delete_reason": null
}
],
"pagination": {
"per_page": 15,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Restore Location facility
Restore deleted Location facility.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "QA Facility Updated",
"is_active": false,
"supported_assets": null,
"capacity_falcons": {
"available": 0,
"total": 0,
"consumed": 0
},
"capacity_eggs": {
"available": 0,
"total": 0,
"consumed": 0
}
}
}
Permanently Delete Location facility
Force delete Location facility.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Location building
Create a new Location building.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "ar": "مبنى ", "en": "QA Building" } |
| note | string | QA location building |
| parent_id | integer | 1 |
| type_ids | array | [ 30 ] |
| capacity_falcons | integer | 100 |
| capacity_eggs | integer | 200 |
| supported_assets | string | falcons-eggs |
| is_active | boolean | 1 |
| links | array | [ { "name": "Map", "url": "https:\/\/example.com\/map" } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | required, array |
| name.ar | required, string, max 255, ArabicRoleName, UniqueTranslationName |
| name.en | required, string, max 255, EnglishRoleName, UniqueTranslationName |
| note | optional, string |
| parent_id | required, exists locations,id, LocationParentRule |
| type_ids | required, array, min 1 |
| type_ids[] | required, integer, distinct, exists settings,id,type,locations-type |
| subtype_id | prohibited, integer, exists settings,id,type,locations-subunit-sub-type, SubtypeBelongsToTypeRule |
| temperature | optional, numeric, min -20, max 100 |
| humidity | optional, numeric, min 0, max 100 |
| capacity_falcons | prohibited_if, required if supported_assets = falcons, numeric, ChildCapacityWithinParentRule |
| capacity_eggs | prohibited_if, required if supported_assets = eggs, numeric, ChildCapacityWithinParentRule |
| supported_assets | required, allowed: falcons, eggs, falcons-eggs, SupportedAssetsMatchParentRule |
| is_active | optional, true/false |
| links | optional, array |
| links[].name | required, string, max 255, distinct |
| links[].url | required, url, max 2048, distinct |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 2,
"name": "QA Building",
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
}
}
Get Location building List
Retrieve a list of Location building.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 2,
"name": "QA Building",
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true,
"note": "QA location building",
"parent_id": 1,
"parents": [
{
"id": 1,
"name": "QA Facility",
"type": "facilities",
"level": 1
}
],
"unit_type": "building",
"types": [
{
"id": 30,
"name": "QA Location Type"
}
],
"stats": {
"rooms": 0,
"subunits": 0
},
"links": [
{
"id": 2,
"name": "Map",
"url": "https:\/\/example.com\/map"
}
],
"created_at": "2026-07-06T10:59:59.000000Z",
"updated_at": "2026-07-06T10:59:59.000000Z"
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Get Location building Details
Retrieve Location building details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 2,
"name": "QA Building",
"capacity_falcons": {
"available": 100,
"total": 100,
"consumed": 0
},
"capacity_eggs": {
"available": 200,
"total": 200,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true,
"note": "QA location building",
"parent_id": 1,
"parents": [
{
"id": 1,
"name": "QA Facility",
"type": "facilities",
"level": 1
}
],
"unit_type": "building",
"types": [
{
"id": 30,
"name": "QA Location Type"
}
],
"stats": {
"rooms": 0,
"subunits": 0
},
"links": [
{
"id": 2,
"name": "Map",
"url": "https:\/\/example.com\/map"
}
],
"created_at": "2026-07-06T10:59:59.000000Z",
"updated_at": "2026-07-06T10:59:59.000000Z",
"name_translate": {
"ar": "مبنى",
"en": "QA Building"
}
}
}
Update Location building
Update an existing Location building.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "ar": "مبنى موحد", "en": "QA Building Updated" } |
| note | string | QA location building updated |
| parent_id | integer | 1 |
| type_ids | array | [ 30 ] |
| capacity_falcons | integer | 120 |
| capacity_eggs | integer | 240 |
| supported_assets | string | falcons-eggs |
| is_active | boolean | 1 |
| links | array | [ { "name": "Map", "url": "https:\/\/example.com\/map" } ] |
| id | integer | 2 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists locations,id |
| name | required, array |
| name.ar | required, string, max 255, ArabicRoleName, UniqueTranslationName |
| name.en | required, string, max 255, EnglishRoleName, UniqueTranslationName |
| note | optional, string |
| parent_id | required, exists locations,id, LocationParentRule |
| type_ids | required, array, min 1 |
| type_ids[] | required, integer, distinct, exists settings,id,type,locations-type |
| subtype_id | prohibited, integer, exists settings,id,type,locations-subunit-sub-type, SubtypeBelongsToTypeRule |
| temperature | optional, numeric, min -20, max 100 |
| humidity | optional, numeric, min 0, max 100 |
| capacity_falcons | prohibited_if, required if supported_assets = falcons, numeric, ChildCapacityWithinParentRule |
| capacity_eggs | prohibited_if, required if supported_assets = eggs, numeric, ChildCapacityWithinParentRule |
| supported_assets | optional, allowed: falcons, eggs, falcons-eggs, SupportedAssetsMatchParentRule |
| is_active | optional, true/false |
| links | optional, array |
| links[].name | required, string, max 255, distinct |
| links[].url | required, url, max 2048, distinct |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "QA Building Updated",
"capacity_falcons": {
"available": 120,
"total": 120,
"consumed": 0
},
"capacity_eggs": {
"available": 240,
"total": 240,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
}
}
Toggle Location building Status
Switch the Location building status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "QA Building Updated",
"capacity_falcons": {
"available": 120,
"total": 120,
"consumed": 0
},
"capacity_eggs": {
"available": 240,
"total": 240,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": false
}
}
Delete Location building
Delete a Location building.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Get Deleted Location building
List deleted Location building.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 2,
"name": "QA Building Updated",
"capacity_falcons": {
"available": 120,
"total": 120,
"consumed": 0
},
"capacity_eggs": {
"available": 240,
"total": 240,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": false,
"note": "QA location building updated",
"parent_id": 1,
"parents": [],
"unit_type": "building",
"types": [
{
"id": 30,
"name": "QA Location Type"
}
],
"stats": {
"rooms": 0,
"subunits": 0
},
"links": [
{
"id": 8,
"name": "Map",
"url": "https:\/\/example.com\/map"
}
],
"created_at": "2026-07-06T10:59:59.000000Z",
"updated_at": "2026-07-06T11:00:26.000000Z",
"delete_reason": null
}
],
"pagination": {
"per_page": 15,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Restore Location building
Restore deleted Location building.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 2,
"name": "QA Building Updated",
"capacity_falcons": {
"available": 120,
"total": 120,
"consumed": 0
},
"capacity_eggs": {
"available": 240,
"total": 240,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": false
}
}
Permanently Delete Location building
Force delete Location building.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Location room
Create a new Location room.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "ar": "غرفة ", "en": "QA Room" } |
| note | string | QA location room |
| parent_id | integer | 2 |
| type_ids | array | [ 30 ] |
| temperature | integer | 22 |
| humidity | integer | 50 |
| capacity_falcons | integer | 30 |
| capacity_eggs | integer | 60 |
| supported_assets | string | falcons-eggs |
| is_active | boolean | 1 |
| links | array | [ { "name": "Map", "url": "https:\/\/example.com\/map" } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | required, array |
| name.ar | required, string, max 255, ArabicRoleName, UniqueTranslationName |
| name.en | required, string, max 255, EnglishRoleName, UniqueTranslationName |
| note | optional, string |
| parent_id | required, exists locations,id, LocationParentRule |
| type_ids | required, array, min 1 |
| type_ids[] | required, integer, distinct, exists settings,id,type,locations-type |
| subtype_id | prohibited, integer, exists settings,id,type,locations-subunit-sub-type, SubtypeBelongsToTypeRule |
| temperature | optional, numeric, min -20, max 100 |
| humidity | optional, numeric, min 0, max 100 |
| capacity_falcons | prohibited_if, required if supported_assets = falcons, numeric, ChildCapacityWithinParentRule |
| capacity_eggs | prohibited_if, required if supported_assets = eggs, numeric, ChildCapacityWithinParentRule |
| supported_assets | required, allowed: falcons, eggs, falcons-eggs, SupportedAssetsMatchParentRule |
| is_active | optional, true/false |
| links | optional, array |
| links[].name | required, string, max 255, distinct |
| links[].url | required, url, max 2048, distinct |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 3,
"name": "QA Room",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 30,
"total": 30,
"consumed": 0
},
"capacity_eggs": {
"available": 60,
"total": 60,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
}
}
Get Location room List
Retrieve a list of Location room.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 3,
"name": "QA Room",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 30,
"total": 30,
"consumed": 0
},
"capacity_eggs": {
"available": 60,
"total": 60,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true,
"note": "QA location room",
"stats": {
"subunits": 0
},
"parents": [
{
"id": 2,
"name": "QA Building",
"type": "buildings",
"level": 1
},
{
"id": 1,
"name": "QA Facility",
"type": "facilities",
"level": 2
}
],
"unit_type": "room",
"type": {
"id": 30,
"name": "QA Location Type"
},
"is_editable_climate_records": true,
"links": [
{
"id": 3,
"name": "Map",
"url": "https:\/\/example.com\/map"
}
],
"created_at": "2026-07-06T10:59:59.000000Z",
"updated_at": "2026-07-06T10:59:59.000000Z"
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Get Location room Details
Retrieve Location room details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 3,
"name": "QA Room",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 30,
"total": 30,
"consumed": 0
},
"capacity_eggs": {
"available": 60,
"total": 60,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true,
"note": "QA location room",
"stats": {
"subunits": 0
},
"parents": [
{
"id": 2,
"name": "QA Building",
"type": "buildings",
"level": 1
},
{
"id": 1,
"name": "QA Facility",
"type": "facilities",
"level": 2
}
],
"unit_type": "room",
"type": {
"id": 30,
"name": "QA Location Type"
},
"is_editable_climate_records": true,
"links": [
{
"id": 3,
"name": "Map",
"url": "https:\/\/example.com\/map"
}
],
"created_at": "2026-07-06T10:59:59.000000Z",
"updated_at": "2026-07-06T10:59:59.000000Z",
"name_translate": {
"ar": "غرفة",
"en": "QA Room"
}
}
}
Update Location room
Update an existing Location room.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "ar": "غرفة محدثة", "en": "QA Room Updated" } |
| note | string | QA location room updated |
| parent_id | integer | 2 |
| type_ids | array | [ 30 ] |
| temperature | integer | 23 |
| humidity | integer | 51 |
| capacity_falcons | integer | 35 |
| capacity_eggs | integer | 65 |
| supported_assets | string | falcons-eggs |
| is_active | boolean | 1 |
| links | array | [ { "name": "Map", "url": "https:\/\/example.com\/map" } ] |
| id | integer | 3 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists locations,id |
| name | required, array |
| name.ar | required, string, max 255, ArabicRoleName, UniqueTranslationName |
| name.en | required, string, max 255, EnglishRoleName, UniqueTranslationName |
| note | optional, string |
| parent_id | required, exists locations,id, LocationParentRule |
| type_ids | required, array, min 1 |
| type_ids[] | required, integer, distinct, exists settings,id,type,locations-type |
| subtype_id | prohibited, integer, exists settings,id,type,locations-subunit-sub-type, SubtypeBelongsToTypeRule |
| temperature | optional, numeric, min -20, max 100 |
| humidity | optional, numeric, min 0, max 100 |
| capacity_falcons | prohibited_if, required if supported_assets = falcons, numeric, ChildCapacityWithinParentRule |
| capacity_eggs | prohibited_if, required if supported_assets = eggs, numeric, ChildCapacityWithinParentRule |
| supported_assets | optional, allowed: falcons, eggs, falcons-eggs, SupportedAssetsMatchParentRule |
| is_active | optional, true/false |
| links | optional, array |
| links[].name | required, string, max 255, distinct |
| links[].url | required, url, max 2048, distinct |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 3,
"name": "QA Room Updated",
"temperature": "23.00",
"humidity": "51.00",
"capacity_falcons": {
"available": 35,
"total": 35,
"consumed": 0
},
"capacity_eggs": {
"available": 65,
"total": 65,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
}
}
Update Room Climate Records
Update Room Climate Records
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| temperature | integer | 24 |
| humidity | integer | 55 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| type | required, In |
| temperature | required, numeric, min -20, max 100 |
| humidity | required, numeric, min 0, max 100 |
{
"success": true,
"message": "Climate records updated successfully.",
"data": {
"id": 3,
"name": "QA Room Updated",
"temperature": "24.00",
"humidity": "55.00",
"capacity_falcons": {
"available": 35,
"total": 35,
"consumed": 0
},
"capacity_eggs": {
"available": 65,
"total": 65,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
}
}
Toggle Location room Status
Switch the Location room status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 3,
"name": "QA Room Updated",
"temperature": "24.00",
"humidity": "55.00",
"capacity_falcons": {
"available": 35,
"total": 35,
"consumed": 0
},
"capacity_eggs": {
"available": 65,
"total": 65,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": false
}
}
Delete Location room
Delete a Location room.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Get Deleted Location room
List deleted Location room.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 3,
"name": "QA Room Updated",
"temperature": "24.00",
"humidity": "55.00",
"capacity_falcons": {
"available": 35,
"total": 35,
"consumed": 0
},
"capacity_eggs": {
"available": 65,
"total": 65,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": false,
"note": "QA location room updated",
"stats": {
"subunits": 0
},
"parents": [],
"unit_type": "room",
"type": {
"id": 30,
"name": "QA Location Type"
},
"is_editable_climate_records": true,
"links": [
{
"id": 7,
"name": "Map",
"url": "https:\/\/example.com\/map"
}
],
"created_at": "2026-07-06T10:59:59.000000Z",
"updated_at": "2026-07-06T11:00:25.000000Z",
"delete_reason": null
}
],
"pagination": {
"per_page": 15,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Restore Location room
Restore deleted Location room.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 3,
"name": "QA Room Updated",
"temperature": "24.00",
"humidity": "55.00",
"capacity_falcons": {
"available": 35,
"total": 35,
"consumed": 0
},
"capacity_eggs": {
"available": 65,
"total": 65,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": false
}
}
Permanently Delete Location room
Force delete Location room.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Location subunit
Create a new Location subunit.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "ar": "وحدة فرعية ", "en": "QA Subunit" } |
| note | string | QA location subunit |
| parent_id | integer | 3 |
| type_ids | array | [ 33 ] |
| subtype_id | integer | 34 |
| temperature | integer | 22 |
| humidity | integer | 50 |
| capacity_falcons | integer | 2 |
| capacity_eggs | integer | 4 |
| supported_assets | string | falcons-eggs |
| is_active | boolean | 1 |
| links | array | [ { "name": "Map", "url": "https:\/\/example.com\/map" } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | required, array |
| name.ar | required, string, max 255, ArabicRoleName, UniqueTranslationName |
| name.en | required, string, max 255, EnglishRoleName, UniqueTranslationName |
| note | optional, string |
| parent_id | required, exists locations,id, LocationParentRule |
| type_ids | required, array, min 1 |
| type_ids[] | required, integer, distinct, exists settings,id,type,locations-type |
| subtype_id | prohibited, integer, exists settings,id,type,locations-subunit-sub-type, SubtypeBelongsToTypeRule |
| temperature | optional, numeric, min -20, max 100 |
| humidity | optional, numeric, min 0, max 100 |
| capacity_falcons | prohibited_if, required if supported_assets = falcons, numeric, ChildCapacityWithinParentRule |
| capacity_eggs | prohibited_if, required if supported_assets = eggs, numeric, ChildCapacityWithinParentRule |
| supported_assets | required, allowed: falcons, eggs, falcons-eggs, SupportedAssetsMatchParentRule |
| is_active | optional, true/false |
| links | optional, array |
| links[].name | required, string, max 255, distinct |
| links[].url | required, url, max 2048, distinct |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 4,
"name": "QA Subunit",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 2,
"total": 2,
"consumed": 0
},
"capacity_eggs": {
"available": 4,
"total": 4,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
}
}
Get Location subunit List
Retrieve a list of Location subunit.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 4,
"name": "QA Subunit",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 2,
"total": 2,
"consumed": 0
},
"capacity_eggs": {
"available": 4,
"total": 4,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true,
"parent_id": 3,
"parents": [
{
"id": 3,
"name": "QA Room",
"type": "rooms",
"level": 1
},
{
"id": 2,
"name": "QA Building",
"type": "buildings",
"level": 2
},
{
"id": 1,
"name": "QA Facility",
"type": "facilities",
"level": 3
}
],
"unit_type": "sub_unit",
"type": {
"id": 33,
"name": "QA Subunit Type"
},
"subtype": {
"id": 34,
"name": "QA Subunit Subtype"
},
"is_editable_climate_records": true,
"note": "QA location subunit",
"links": [
{
"id": 4,
"name": "Map",
"url": "https:\/\/example.com\/map"
}
],
"stats": [],
"created_at": "2026-07-06T11:00:00.000000Z",
"updated_at": "2026-07-06T11:00:00.000000Z"
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Get Location subunit Details
Retrieve Location subunit details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 4,
"name": "QA Subunit",
"temperature": "22.00",
"humidity": "50.00",
"capacity_falcons": {
"available": 2,
"total": 2,
"consumed": 0
},
"capacity_eggs": {
"available": 4,
"total": 4,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true,
"parent_id": 3,
"parents": [
{
"id": 3,
"name": "QA Room",
"type": "rooms",
"level": 1
},
{
"id": 2,
"name": "QA Building",
"type": "buildings",
"level": 2
},
{
"id": 1,
"name": "QA Facility",
"type": "facilities",
"level": 3
}
],
"unit_type": "sub_unit",
"type": {
"id": 33,
"name": "QA Subunit Type"
},
"subtype": {
"id": 34,
"name": "QA Subunit Subtype"
},
"is_editable_climate_records": true,
"note": "QA location subunit",
"links": [
{
"id": 4,
"name": "Map",
"url": "https:\/\/example.com\/map"
}
],
"stats": [],
"created_at": "2026-07-06T11:00:00.000000Z",
"updated_at": "2026-07-06T11:00:00.000000Z",
"name_translate": {
"ar": "وحدة فرعية",
"en": "QA Subunit"
}
}
}
Update Location subunit
Update an existing Location subunit.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "ar": "وحدة فرعية محدثة", "en": "QA Subunit Updated" } |
| note | string | QA location subunit updated |
| parent_id | integer | 3 |
| type_ids | array | [ 33 ] |
| subtype_id | integer | 34 |
| temperature | integer | 23 |
| humidity | integer | 51 |
| capacity_falcons | integer | 2 |
| capacity_eggs | integer | 6 |
| supported_assets | string | falcons-eggs |
| is_active | boolean | 1 |
| links | array | [ { "name": "Map", "url": "https:\/\/example.com\/map" } ] |
| id | integer | 4 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists locations,id |
| name | required, array |
| name.ar | required, string, max 255, ArabicRoleName, UniqueTranslationName |
| name.en | required, string, max 255, EnglishRoleName, UniqueTranslationName |
| note | optional, string |
| parent_id | required, exists locations,id, LocationParentRule |
| type_ids | required, array, min 1 |
| type_ids[] | required, integer, distinct, exists settings,id,type,locations-type |
| subtype_id | prohibited, integer, exists settings,id,type,locations-subunit-sub-type, SubtypeBelongsToTypeRule |
| temperature | optional, numeric, min -20, max 100 |
| humidity | optional, numeric, min 0, max 100 |
| capacity_falcons | prohibited_if, required if supported_assets = falcons, numeric, ChildCapacityWithinParentRule |
| capacity_eggs | prohibited_if, required if supported_assets = eggs, numeric, ChildCapacityWithinParentRule |
| supported_assets | optional, allowed: falcons, eggs, falcons-eggs, SupportedAssetsMatchParentRule |
| is_active | optional, true/false |
| links | optional, array |
| links[].name | required, string, max 255, distinct |
| links[].url | required, url, max 2048, distinct |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 4,
"name": "QA Subunit Updated",
"temperature": "23.00",
"humidity": "51.00",
"capacity_falcons": {
"available": 2,
"total": 2,
"consumed": 0
},
"capacity_eggs": {
"available": 6,
"total": 6,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
}
}
Update Subunit Climate Records
Update Subunit Climate Records
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| temperature | integer | 24 |
| humidity | integer | 55 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| type | required, In |
| temperature | required, numeric, min -20, max 100 |
| humidity | required, numeric, min 0, max 100 |
{
"success": true,
"message": "Climate records updated successfully.",
"data": {
"id": 4,
"name": "QA Subunit Updated",
"temperature": "24.00",
"humidity": "55.00",
"capacity_falcons": {
"available": 2,
"total": 2,
"consumed": 0
},
"capacity_eggs": {
"available": 6,
"total": 6,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": true
}
}
Toggle Location subunit Status
Switch the Location subunit status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 4,
"name": "QA Subunit Updated",
"temperature": "24.00",
"humidity": "55.00",
"capacity_falcons": {
"available": 2,
"total": 2,
"consumed": 0
},
"capacity_eggs": {
"available": 6,
"total": 6,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": false
}
}
Delete Location subunit
Delete a Location subunit.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Get Deleted Location subunit
List deleted Location subunit.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 4,
"name": "QA Subunit Updated",
"temperature": "24.00",
"humidity": "55.00",
"capacity_falcons": {
"available": 2,
"total": 2,
"consumed": 0
},
"capacity_eggs": {
"available": 6,
"total": 6,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": false,
"parent_id": 3,
"parents": [],
"unit_type": "sub_unit",
"type": {
"id": 33,
"name": "QA Subunit Type"
},
"subtype": {
"id": 34,
"name": "QA Subunit Subtype"
},
"is_editable_climate_records": true,
"note": "QA location subunit updated",
"links": [
{
"id": 6,
"name": "Map",
"url": "https:\/\/example.com\/map"
}
],
"stats": [],
"created_at": "2026-07-06T11:00:00.000000Z",
"updated_at": "2026-07-06T11:00:24.000000Z",
"delete_reason": null
}
],
"pagination": {
"per_page": 15,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Restore Location subunit
Restore deleted Location subunit.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 4,
"name": "QA Subunit Updated",
"temperature": "24.00",
"humidity": "55.00",
"capacity_falcons": {
"available": 2,
"total": 2,
"consumed": 0
},
"capacity_eggs": {
"available": 6,
"total": 6,
"consumed": 0
},
"supported_assets": {
"key": "falcons-eggs",
"name": "Falcons and eggs"
},
"is_active": false
}
}
Permanently Delete Location subunit
Force delete Location subunit.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Location external
Create a new Location external.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "ar": "موقع خارجي ", "en": "QA External" } |
| note | string | QA location external |
| type_ids | array | [ 30 ] |
| country_id | integer | 31 |
| city_id | integer | 32 |
| is_active | boolean | 1 |
| links | array | [ { "name": "Map", "url": "https:\/\/example.com\/map" } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | required, array |
| name.ar | required, string, max 255, ArabicRoleName, UniqueTranslationName |
| name.en | required, string, max 255, EnglishRoleName, UniqueTranslationName |
| note | optional, string |
| parent_id | optional, exists locations,id |
| type_ids | required, array, min 1 |
| type_ids[] | required, integer, distinct, exists settings,id,type,locations-type |
| country_id | required, integer, ParentTypeRule |
| city_id | required, integer, exists settings,id,type,locations-city, CityBelongsToCountryRule |
| is_active | optional, true/false |
| links | optional, array |
| links[].name | required, string, max 255, distinct |
| links[].url | required, url, max 2048, distinct |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 5,
"name": "QA External",
"country": {
"id": 31,
"name": "QA Country"
},
"city": {
"id": 32,
"name": "QA City"
},
"types": [
{
"id": 30,
"name": "QA Location Type"
}
],
"links": [
{
"id": 5,
"name": "Map",
"url": "https:\/\/example.com\/map"
}
],
"note": "QA location external",
"is_active": true,
"created_at": "2026-07-06T11:00:00.000000Z",
"updated_at": "2026-07-06T11:00:00.000000Z"
}
}
Get Location external List
Retrieve a list of Location external.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 5,
"name": "QA External",
"country": {
"id": 31,
"name": "QA Country"
},
"city": {
"id": 32,
"name": "QA City"
},
"types": [
{
"id": 30,
"name": "QA Location Type"
}
],
"links": [
{
"id": 5,
"name": "Map",
"url": "https:\/\/example.com\/map"
}
],
"note": "QA location external",
"is_active": true,
"created_at": "2026-07-06T11:00:00.000000Z",
"updated_at": "2026-07-06T11:00:00.000000Z"
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Get Location external Details
Retrieve Location external details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 5,
"name": "QA External",
"country": {
"id": 31,
"name": "QA Country"
},
"city": {
"id": 32,
"name": "QA City"
},
"types": [
{
"id": 30,
"name": "QA Location Type"
}
],
"links": [
{
"id": 5,
"name": "Map",
"url": "https:\/\/example.com\/map"
}
],
"note": "QA location external",
"is_active": true,
"created_at": "2026-07-06T11:00:00.000000Z",
"updated_at": "2026-07-06T11:00:00.000000Z"
}
}
Update Location external
Update an existing Location external.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "ar": "موقع خارجي محدث", "en": "QA External Updated" } |
| note | string | QA location external updated |
| type_ids | array | [ 30 ] |
| country_id | integer | 31 |
| city_id | integer | 32 |
| is_active | boolean | 1 |
| links | array | [ { "name": "Map", "url": "https:\/\/example.com\/map" } ] |
| id | integer | 5 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| id | required, integer, exists locations,id |
| name | required, array |
| name.ar | required, string, max 255, ArabicRoleName, UniqueTranslationName |
| name.en | required, string, max 255, EnglishRoleName, UniqueTranslationName |
| note | optional, string |
| parent_id | optional, exists locations,id |
| type_ids | required, array, min 1 |
| type_ids[] | required, integer, distinct, exists settings,id,type,locations-type |
| country_id | required, integer, ParentTypeRule |
| city_id | required, integer, exists settings,id,type,locations-city, CityBelongsToCountryRule |
| is_active | optional, true/false |
| links | optional, array |
| links[].name | required, string, max 255, distinct |
| links[].url | required, url, max 2048, distinct |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 5,
"name": "QA External Updated",
"country": {
"id": 31,
"name": "QA Country"
},
"city": {
"id": 32,
"name": "QA City"
},
"types": [
{
"id": 30,
"name": "QA Location Type"
}
],
"links": [
{
"id": 9,
"name": "Map",
"url": "https:\/\/example.com\/map"
}
],
"note": "QA location external updated",
"is_active": true,
"created_at": "2026-07-06T11:00:00.000000Z",
"updated_at": "2026-07-06T11:00:26.000000Z"
}
}
Toggle Location external Status
Switch the Location external status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 5,
"name": "QA External Updated",
"country": {
"id": 31,
"name": "QA Country"
},
"city": {
"id": 32,
"name": "QA City"
},
"types": [
{
"id": 30,
"name": "QA Location Type"
}
],
"links": [
{
"id": 9,
"name": "Map",
"url": "https:\/\/example.com\/map"
}
],
"note": "QA location external updated",
"is_active": false,
"created_at": "2026-07-06T11:00:00.000000Z",
"updated_at": "2026-07-06T11:00:26.000000Z"
}
}
Delete Location external
Delete a Location external.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Get Deleted Location external
List deleted Location external.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 5,
"name": "QA External Updated",
"country": {
"id": 31,
"name": "QA Country"
},
"city": {
"id": 32,
"name": "QA City"
},
"types": [
{
"id": 30,
"name": "QA Location Type"
}
],
"links": [
{
"id": 9,
"name": "Map",
"url": "https:\/\/example.com\/map"
}
],
"note": "QA location external updated",
"is_active": false,
"created_at": "2026-07-06T11:00:00.000000Z",
"updated_at": "2026-07-06T11:00:27.000000Z",
"delete_reason": null
}
],
"pagination": {
"per_page": 15,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Restore Location external
Restore deleted Location external.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 5,
"name": "QA External Updated",
"country": {
"id": 31,
"name": "QA Country"
},
"city": {
"id": 32,
"name": "QA City"
},
"types": [
{
"id": 30,
"name": "QA Location Type"
}
],
"links": [
{
"id": 9,
"name": "Map",
"url": "https:\/\/example.com\/map"
}
],
"note": "QA location external updated",
"is_active": false,
"created_at": "2026-07-06T11:00:00.000000Z",
"updated_at": "2026-07-06T11:00:53.000000Z"
}
}
Permanently Delete Location external
Force delete Location external.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Move Falcons
Move Falcons
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| animal_ids | array | [ 4, 3, 2 ] |
| facility_id | integer | 1 |
| building_id | integer | 2 |
| room_id | integer | 3 |
| sub_unit_id | integer | 4 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| animal_ids | required, array, min 1 |
| animal_ids[] | required, integer, Exists |
| facility_id | required, integer, LocationParentRule |
| building_id | optional, integer, LocationParentRule |
| room_id | optional, integer, LocationParentRule |
| sub_unit_id | optional, integer, LocationParentRule |
{
"success": true,
"message": "Falcons moved successfully.",
"data": []
}
Create Supplier
Create a new Supplier.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | string | QA Test Supplier |
| phone | string | 0501234567 |
| string | qa-supplier@test.com | |
| address | string | 123 Test Street, Riyadh |
| is_active | boolean | 1 |
| types | array | [ "feeding" ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | required, string, max 255 |
| phone | required, string, max 255 |
| optional, valid email, max 255 | |
| address | required, string, max 255 |
| types | required, array, min 1 |
| types[] | required, string, In |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 1,
"name": "QA Test Supplier",
"phone": "0501234567",
"email": "qa-supplier@test.com",
"address": "123 Test Street, Riyadh",
"is_active": false,
"types": [
"feeding"
],
"created_at": "2026-07-06T10:59:54.000000Z"
}
}
Get Supplier List
Retrieve a list of Supplier.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"name": "QA Test Supplier",
"phone": "0501234567",
"email": "qa-supplier@test.com",
"address": "123 Test Street, Riyadh",
"is_active": true,
"types": [
"feeding"
],
"created_at": "2026-07-06T10:59:54.000000Z"
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Get Supplier Details
Retrieve Supplier details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 1,
"name": "QA Test Supplier",
"phone": "0501234567",
"email": "qa-supplier@test.com",
"address": "123 Test Street, Riyadh",
"is_active": true,
"types": [
"feeding"
],
"created_at": "2026-07-06T10:59:54.000000Z"
}
}
Update Supplier
Update an existing Supplier.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | string | QA Test Supplier Updated |
| phone | string | 0509999999 |
| string | qa-supplier-updated@test.com | |
| address | string | 456 Updated Street, Riyadh |
| is_active | boolean | 1 |
| types | array | [ "feeding", "medication" ] |
| id | integer | 1 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| name | optional, string, max 255 |
| phone | optional, string, max 255 |
| optional, valid email, max 255 | |
| address | optional, string, max 255 |
| types | sometimes, array, min 1 |
| types[] | required_with, string, In |
| is_active | optional, true/false |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "QA Test Supplier Updated",
"phone": "0509999999",
"email": "qa-supplier-updated@test.com",
"address": "456 Updated Street, Riyadh",
"is_active": true,
"types": [
"feeding",
"medication"
],
"created_at": "2026-07-06T10:59:54.000000Z"
}
}
Toggle Supplier Status
Switch the Supplier status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "QA Test Supplier Updated",
"phone": "0509999999",
"email": "qa-supplier-updated@test.com",
"address": "456 Updated Street, Riyadh",
"is_active": false,
"types": [
"feeding",
"medication"
],
"created_at": "2026-07-06T10:59:54.000000Z"
}
}
Delete Supplier
Delete a Supplier.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Get Deleted Supplier
List deleted Supplier.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"name": "QA Test Supplier Updated",
"phone": "0509999999",
"email": "qa-supplier-updated@test.com",
"address": "456 Updated Street, Riyadh",
"is_active": false,
"types": [
"feeding",
"medication"
],
"created_at": "2026-07-06T10:59:54.000000Z",
"delete_reason": null
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Restore Supplier
Restore deleted Supplier.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 1,
"name": "QA Test Supplier Updated",
"phone": "0509999999",
"email": "qa-supplier-updated@test.com",
"address": "456 Updated Street, Riyadh",
"is_active": false,
"types": [
"feeding",
"medication"
],
"created_at": "2026-07-06T10:59:54.000000Z"
}
}
Permanently Delete Supplier
Force delete Supplier.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Feeding Item
Create a new Feeding inventory item.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| type | string | feeding |
| name | array | { "en": "QA Test Feed Item", "ar": "مادة علف اختبار الجودة" } |
| categories | array | [ { "category_id": 14 } ] |
| unit_id | integer | 15 |
| note | string | QA test feeding inventory item |
| reorder_level | integer | 5 |
| initial_quantity | integer | 5 |
| unit_cost | double | 25.5 |
| supplier_id | integer | 1 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| type | required, In |
| name | required, array |
| name.ar | required, ArabicRoleName, UniqueInventoryItemName |
| name.en | required, EnglishRoleName, UniqueInventoryItemName |
| unit_id | ProhibitedIf, optional, integer, exists settings,id, SourceUnitSettingTypeRule |
| form_id | RequiredIf, optional, integer, exists settings,id,type,medical-medicine-form |
| reorder_level | optional, numeric, min 0 |
| categories | required, array, min 1 |
| categories[].category_id | required_with, integer, SourceCategorySettingTypeRule |
| note | optional, string |
| calories | optional, numeric, min 0 |
| initial_quantity | required, numeric, min 0 |
| unit_cost | required, numeric, min 0 |
| supplier_id | optional, integer, exists inventory_suppliers,id |
| expiry_date | optional, date, after_or_equal |
| batch_no | optional, string, max 255 |
| equipment_type | RequiredIf, optional, In |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 1,
"item": {
"id": 1,
"name": "QA Test Feed Item",
"calories": "0.00",
"cost_per_unit": "EGP 25.500",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": true
},
"item_type": "feeding",
"reorder_level": "5.000",
"total_quantity": "5.000",
"is_active": true,
"latest_cost": "EGP 25.500",
"expire_date": null,
"supplier_name": "QA Test Supplier",
"batches": [
{
"id": 1,
"batch_no": "BTH-20260706-1PQSJL",
"quantity": 5,
"unit_cost": "EGP 25.500",
"total_cost": "EGP 127.500",
"expiry_date": null
}
],
"created_at": "2026-07-06T10:59:54.000000Z",
"has_purchased": false
}
}
Create Medication Item
Create a new Medication inventory item.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| type | string | medication |
| name | array | { "en": "QA Test Medication Item", "ar": "دواء اختبار الجودة" } |
| categories | array | [ { "category_id": 19 } ] |
| form_id | integer | 20 |
| note | string | QA test medication inventory item |
| reorder_level | integer | 5 |
| initial_quantity | integer | 5 |
| unit_cost | double | 15.25 |
| supplier_id | integer | 1 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| type | required, In |
| name | required, array |
| name.ar | required, ArabicRoleName, UniqueInventoryItemName |
| name.en | required, EnglishRoleName, UniqueInventoryItemName |
| unit_id | ProhibitedIf, optional, integer, exists settings,id, SourceUnitSettingTypeRule |
| form_id | RequiredIf, optional, integer, exists settings,id,type,medical-medicine-form |
| reorder_level | optional, numeric, min 0 |
| categories | required, array, min 1 |
| categories[].category_id | required_with, integer, SourceCategorySettingTypeRule |
| note | optional, string |
| calories | optional, numeric, min 0 |
| initial_quantity | required, numeric, min 0 |
| unit_cost | required, numeric, min 0 |
| supplier_id | optional, integer, exists inventory_suppliers,id |
| expiry_date | optional, date, after_or_equal |
| batch_no | optional, string, max 255 |
| equipment_type | RequiredIf, optional, In |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 2,
"item": {
"id": 1,
"name": "QA Test Medication Item",
"unit": {
"id": 18,
"name": "medi-866"
},
"form": {
"id": 20,
"name": "medi-621"
},
"categories": [
{
"id": 19,
"name": "medi-918"
}
]
},
"item_type": "medication",
"reorder_level": "5.000",
"total_quantity": "5.000",
"is_active": true,
"latest_cost": "EGP 15.250",
"expire_date": null,
"supplier_name": "QA Test Supplier",
"batches": [
{
"id": 2,
"batch_no": "BTH-20260706-EXV0BM",
"quantity": 5,
"unit_cost": "EGP 15.250",
"total_cost": "EGP 76.250",
"expiry_date": null
}
],
"created_at": "2026-07-06T10:59:54.000000Z",
"has_purchased": false
}
}
Create Equipment Item
Create a new Equipment inventory item.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| type | string | equipment |
| name | array | { "en": "QA Test Equipment Item", "ar": "معدة اختبار الجودة" } |
| categories | array | [ { "category_id": 29 } ] |
| equipment_type | string | permanent |
| note | string | QA test equipment inventory item |
| reorder_level | integer | 5 |
| initial_quantity | integer | 5 |
| unit_cost | double | 15.25 |
| supplier_id | integer | 1 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| type | required, In |
| name | required, array |
| name.ar | required, ArabicRoleName, UniqueInventoryItemName |
| name.en | required, EnglishRoleName, UniqueInventoryItemName |
| unit_id | ProhibitedIf, optional, integer, exists settings,id, SourceUnitSettingTypeRule |
| form_id | RequiredIf, optional, integer, exists settings,id,type,medical-medicine-form |
| reorder_level | optional, numeric, min 0 |
| categories | required, array, min 1 |
| categories[].category_id | required_with, integer, SourceCategorySettingTypeRule |
| note | optional, string |
| calories | optional, numeric, min 0 |
| initial_quantity | required, numeric, min 0 |
| unit_cost | required, numeric, min 0 |
| supplier_id | optional, integer, exists inventory_suppliers,id |
| expiry_date | optional, date, after_or_equal |
| batch_no | optional, string, max 255 |
| equipment_type | RequiredIf, optional, In |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 3,
"item": {
"id": 1,
"name": "QA Test Equipment Item",
"type": "permanent",
"categories": [
{
"id": 29,
"name": "inve-928"
}
]
},
"item_type": "equipment",
"reorder_level": "5.000",
"total_quantity": "5.000",
"is_active": true,
"latest_cost": "EGP 15.250",
"expire_date": null,
"supplier_name": "QA Test Supplier",
"batches": [
{
"id": 3,
"batch_no": "BTH-20260706-PTZDJD",
"quantity": 5,
"unit_cost": "EGP 15.250",
"total_cost": "EGP 76.250",
"expiry_date": null
}
],
"created_at": "2026-07-06T10:59:55.000000Z",
"has_purchased": false
}
}
Get Item List
Retrieve a list of Item.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 3,
"item": {
"id": 1,
"name": "QA Test Equipment Item",
"type": "permanent",
"categories": [
{
"id": 29,
"name": "inve-928"
}
]
},
"item_type": "equipment",
"reorder_level": "5.000",
"total_quantity": "5.000",
"is_active": true,
"latest_cost": "EGP 15.250",
"expire_date": null,
"supplier_name": "QA Test Supplier",
"batches": [
{
"id": 3,
"batch_no": "BTH-20260706-PTZDJD",
"quantity": 5,
"unit_cost": "EGP 15.250",
"total_cost": "EGP 76.250",
"expiry_date": null
}
],
"created_at": "2026-07-06T10:59:55.000000Z",
"has_purchased": false
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Get Item Details
Retrieve Item details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 4,
"item": {
"id": 2,
"name": "QA Test Falcon Feed Mix",
"calories": "100.00",
"cost_per_unit": "EGP 10.000",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": false,
"name_translate": {
"en": "QA Test Falcon Feed Mix",
"ar": "علف صقور اختبار الجودة"
}
},
"item_type": "feeding",
"reorder_level": null,
"total_quantity": "100.000",
"is_active": true,
"latest_cost": "EGP 10.000",
"expire_date": "2027-07-06",
"supplier_name": null,
"batches": [
{
"id": 5,
"batch_no": "DOC-FEEDING-FIXTURE",
"quantity": 100,
"unit_cost": "EGP 10.000",
"total_cost": "EGP 1000.000",
"expiry_date": "2027-07-06"
}
],
"created_at": "2026-07-06T11:00:01.000000Z",
"has_purchased": false
}
}
Update Item
Update an existing Item.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| name | array | { "en": "QA Test Feed Item Updated", "ar": "مادة علف اختبار الجودة محدثة" } |
| note | string | QA test inventory item updated |
| reorder_level | integer | 10 |
| is_active | boolean | 1 |
| id | integer | 4 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| type | prohibited |
| name | optional, array |
| name.ar | required_with, ArabicRoleName, UniqueInventoryItemName |
| name.en | required_with, EnglishRoleName, UniqueInventoryItemName |
| item_category_ids | prohibited |
| item_category_ids[].category_id | prohibited |
| categories | prohibited |
| categories[].category_id | prohibited |
| unit_id | ProhibitedIf, optional, integer, exists settings,id, SourceUnitSettingTypeRule |
| form_id | optional, integer, exists settings,id,type,medical-medicine-form |
| reorder_level | optional, numeric, min 0 |
| note | optional, string |
| initial_quantity | optional, numeric, min 0, EditableBeforeSecondPurchase |
| unit_cost | optional, numeric, min 0, EditableBeforeSecondPurchase |
| supplier_id | optional, integer, exists inventory_suppliers,id, EditableBeforeSecondPurchase |
| expiry_date | optional, date, after_or_equal, EditableBeforeSecondPurchase |
| purchase_date | prohibited |
| equipment_type | prohibited |
| is_active | optional, true/false |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 4,
"item": {
"id": 2,
"name": "QA Test Feed Item Updated",
"calories": "100.00",
"cost_per_unit": "EGP 10.000",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": false
},
"item_type": "feeding",
"reorder_level": "10.000",
"total_quantity": "100.000",
"is_active": true,
"latest_cost": "EGP 10.000",
"expire_date": "2027-07-06",
"supplier_name": null,
"batches": [
{
"id": 5,
"batch_no": "DOC-FEEDING-FIXTURE",
"quantity": 100,
"unit_cost": "EGP 10.000",
"total_cost": "EGP 1000.000",
"expiry_date": "2027-07-06"
}
],
"created_at": "2026-07-06T11:00:01.000000Z",
"has_purchased": false
}
}
Toggle Item Status
Switch the Item status between active and inactive.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 4,
"item": null,
"item_type": "feeding",
"reorder_level": "10.000",
"total_quantity": "100.000",
"is_active": false,
"latest_cost": null,
"expire_date": null,
"supplier_name": null,
"batches": [],
"created_at": "2026-07-06T11:00:01.000000Z",
"has_purchased": false
}
}
Delete Item
Delete a Item.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Get Deleted Item
List deleted Item.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 4,
"item": null,
"item_type": "feeding",
"reorder_level": "10.000",
"total_quantity": "100.000",
"is_active": false,
"latest_cost": "EGP 10.000",
"expire_date": "2027-07-06",
"supplier_name": null,
"batches": [
{
"id": 5,
"batch_no": "DOC-FEEDING-FIXTURE",
"quantity": 100,
"unit_cost": "EGP 10.000",
"total_cost": "EGP 1000.000",
"expiry_date": "2027-07-06"
}
],
"created_at": "2026-07-06T11:00:01.000000Z",
"has_purchased": false,
"delete_reason": null
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Restore Item
Restore deleted Item.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data updated successfully.",
"data": {
"id": 5,
"item": null,
"item_type": "feeding",
"reorder_level": null,
"total_quantity": "100.000",
"is_active": true,
"latest_cost": null,
"expire_date": null,
"supplier_name": null,
"batches": [],
"created_at": "2026-07-06T11:01:00.000000Z",
"has_purchased": false
}
}
Permanently Delete Item
Force delete Item.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data deleted successfully.",
"data": []
}
Create Purchase
Create a new Purchase.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| supplier_id | integer | 1 |
| purchase_date | string | 2026-07-06 |
| note | string | QA test purchase |
| types | array | [ "feeding" ] |
| items | array | [ { "inventory_item_id": 1, "quantity": 10, "unit_cost": 25.5, "expiry_date": "2027-07-06" } ] |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| types | required, array, min 1 |
| types[] | required, string, In |
| supplier_id | required, exists inventory_suppliers,id, SupplierSupportsType |
| purchase_date | optional, date |
| note | optional, string |
| items | required, array, min 1 |
| items[].inventory_item_id | required, exists inventory_items,id, InventoryItemMatchesType |
| items[].quantity | required, numeric, min 0.01 |
| items[].unit_cost | required, numeric, min 0 |
| items[].expiry_date | optional, date, after_or_equal |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 4,
"types": [
"feeding"
],
"purchase_no": "PO-202607-0004"
}
}
Get Purchase List
Retrieve a list of Purchase.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"types": [
"feeding"
],
"purchase_no": "PO-202607-0001",
"items": [
{
"id": 1,
"inventory_item": {
"id": 1,
"item": {
"id": 1,
"name": "QA Test Feed Item",
"calories": "0.00",
"cost_per_unit": "EGP 25.500",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": true
},
"item_type": "feeding"
},
"quantity": "5.000",
"unit_cost": "EGP 25.500",
"total_cost": "EGP 127.500",
"expiry_date": null
}
],
"total_amount": "EGP 127.500",
"supplier": {
"id": 1,
"name": "QA Test Supplier"
},
"note": null,
"created_at": "2026-07-06T10:59:54.000000Z"
},
{
"id": 2,
"types": [
"medication"
],
"purchase_no": "PO-202607-0002",
"items": [
{
"id": 2,
"inventory_item": {
"id": 2,
"item": {
"id": 1,
"name": "QA Test Medication Item",
"unit": {
"id": 18,
"name": "medi-866"
},
"form": {
"id": 20,
"name": "medi-621"
},
"categories": [
{
"id": 19,
"name": "medi-918"
}
]
},
"item_type": "medication"
},
"quantity": "5.000",
"unit_cost": "EGP 15.250",
"total_cost": "EGP 76.250",
"expiry_date": null
}
],
"total_amount": "EGP 76.250",
"supplier": {
"id": 1,
"name": "QA Test Supplier"
},
"note": null,
"created_at": "2026-07-06T10:59:54.000000Z"
},
{
"id": 3,
"types": [
"equipment"
],
"purchase_no": "PO-202607-0003",
"items": [
{
"id": 3,
"inventory_item": {
"id": 3,
"item": {
"id": 1,
"name": "QA Test Equipment Item",
"type": "permanent",
"categories": [
{
"id": 29,
"name": "inve-928"
}
]
},
"item_type": "equipment"
},
"quantity": "5.000",
"unit_cost": "EGP 15.250",
"total_cost": "EGP 76.250",
"expiry_date": null
}
],
"total_amount": "EGP 76.250",
"supplier": {
"id": 1,
"name": "QA Test Supplier"
},
"note": null,
"created_at": "2026-07-06T10:59:55.000000Z"
},
{
"id": 4,
"types": [
"feeding"
],
"purchase_no": "PO-202607-0004",
"items": [
{
"id": 4,
"inventory_item": {
"id": 1,
"item": {
"id": 1,
"name": "QA Test Feed Item",
"calories": "0.00",
"cost_per_unit": "EGP 25.500",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": true
},
"item_type": "feeding"
},
"quantity": "10.000",
"unit_cost": "EGP 25.500",
"total_cost": "EGP 255.000",
"expiry_date": "2027-07-06"
}
],
"total_amount": "EGP 255.000",
"supplier": {
"id": 1,
"name": "QA Test Supplier"
},
"note": "QA test purchase",
"created_at": "2026-07-06T10:59:55.000000Z"
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 4,
"last_page": 1
}
}
Get Purchase Details
Retrieve Purchase details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 3,
"types": [
"equipment"
],
"purchase_no": "PO-202607-0003",
"items": [
{
"id": 3,
"inventory_item": {
"id": 3,
"item": {
"id": 1,
"name": "QA Test Equipment Item",
"type": "permanent",
"categories": [
{
"id": 29,
"name": "inve-928"
}
],
"name_translate": {
"ar": "معدة اختبار الجودة",
"en": "QA Test Equipment Item"
}
},
"item_type": "equipment"
},
"quantity": "5.000",
"unit_cost": "EGP 15.250",
"total_cost": "EGP 76.250",
"expiry_date": null
}
],
"total_amount": "EGP 76.250",
"supplier": null,
"note": null,
"created_at": "2026-07-06T10:59:55.000000Z"
}
}
Update Purchase
Update an existing Purchase.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| note | string | QA test purchase updated |
| items | array | [ { "inventory_item_id": 3, "quantity": 7, "unit_cost": 15.25, "expiry_date": null } ] |
| id | integer | 3 |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| types | sometimes, array, min 1 |
| types[] | required_with, string, In |
| supplier_id | sometimes, required, exists inventory_suppliers,id, SupplierSupportsType |
| note | optional, string |
| items | sometimes, required, array, min 1 |
| items[].inventory_item_id | required_with, exists inventory_items,id, InventoryItemMatchesType |
| items[].quantity | required_with, numeric, min 0.01 |
| items[].unit_cost | required_with, numeric, min 0 |
| items[].expiry_date | optional, date, after_or_equal |
{
"success": true,
"message": "Purchase updated successfully.",
"data": {
"id": 3,
"types": [
"equipment"
],
"purchase_no": "PO-202607-0003"
}
}
Create Scrap
Create a new Scrap.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
Request Body
| Field/Name | Type | Examples |
|---|---|---|
| inventory_item_id | integer | 1 |
| inventory_item_batch_id | integer | 1 |
| quantity | integer | 1 |
| reason | string | QA Test Scrap Reason |
| scrap_date | string | 2026-07-06 |
| note | string | QA test scrap note |
Request Validations Or Notes
| Field/Name | Examples |
|---|---|
| inventory_item_id | required, integer, exists inventory_items,id |
| inventory_item_batch_id | required, integer, exists inventory_items_batches,id |
| quantity | required, numeric, min 0.001 |
| reason | required, string, max 255 |
| scrap_date | optional, date |
| note | optional, string |
{
"success": true,
"message": "Data inserted successfully.",
"data": {
"id": 1,
"quantity": "1.000",
"unit_cost": "EGP 25.500",
"total_cost": "EGP 25.500",
"source": "manual",
"reason": "QA Test Scrap Reason",
"scrap_date": "2026-07-06",
"note": "QA test scrap note",
"created_by": null,
"inventory_item": {
"id": 1,
"item": {
"id": 1,
"name": "QA Test Feed Item",
"calories": "0.00",
"cost_per_unit": "EGP 25.500",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": true
},
"item_type": "feeding"
},
"batch": {
"id": 1,
"batch_no": "BTH-20260706-1PQSJL",
"quantity": 4,
"unit_cost": "EGP 25.500",
"total_cost": "EGP 127.500",
"expiry_date": null
},
"supplier": {
"id": 1,
"name": "QA Test Supplier"
},
"created_at": "2026-07-06T10:59:56.000000Z"
}
}
Get Scrap List
Retrieve a list of Scrap.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"quantity": "1.000",
"unit_cost": "EGP 25.500",
"total_cost": "EGP 25.500",
"source": "manual",
"reason": "QA Test Scrap Reason",
"scrap_date": "2026-07-06",
"note": "QA test scrap note",
"created_by": {
"id": 1,
"name": "Admin"
},
"inventory_item": {
"id": 1,
"item": {
"id": 1,
"name": "QA Test Feed Item",
"calories": "0.00",
"cost_per_unit": "EGP 25.500",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": true
},
"item_type": "feeding"
},
"batch": {
"id": 1,
"batch_no": "BTH-20260706-1PQSJL",
"quantity": 4,
"unit_cost": "EGP 25.500",
"total_cost": "EGP 127.500",
"expiry_date": null
},
"supplier": {
"id": 1,
"name": "QA Test Supplier"
},
"created_at": "2026-07-06T10:59:56.000000Z"
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 1,
"last_page": 1
}
}
Get Scrap Details
Retrieve Scrap details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 1,
"quantity": "1.000",
"unit_cost": "EGP 25.500",
"total_cost": "EGP 25.500",
"source": "manual",
"reason": "QA Test Scrap Reason",
"scrap_date": "2026-07-06",
"note": "QA test scrap note",
"created_by": {
"id": 1,
"name": "Admin"
},
"inventory_item": {
"id": 1,
"item": {
"id": 1,
"name": "QA Test Feed Item",
"calories": "100.00",
"cost_per_unit": "EGP 25.500",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": true,
"name_translate": {
"ar": "مادة علف اختبار الجودة",
"en": "QA Test Feed Item"
}
},
"item_type": "feeding"
},
"batch": {
"id": 1,
"batch_no": "BTH-20260706-1PQSJL",
"quantity": 4,
"unit_cost": "EGP 25.500",
"total_cost": "EGP 127.500",
"expiry_date": null
},
"supplier": null,
"created_at": "2026-07-06T10:59:56.000000Z"
}
}
Get Movement List
Retrieve a list of Movement.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": [
{
"id": 1,
"item_id": 1,
"inventory_item_batch_id": 1,
"movement_type": "purchase_in",
"quantity": "5.000",
"unit_cost": "EGP 25.500",
"total_cost": "EGP 127.500",
"inventory_item": {
"id": 1,
"item": {
"id": 1,
"name": "QA Test Feed Item",
"calories": "100.00",
"cost_per_unit": "EGP 25.500",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": true
},
"item_type": "feeding"
},
"batch": {
"id": 1,
"batch_no": "BTH-20260706-1PQSJL",
"quantity": 4,
"unit_cost": "EGP 25.500",
"total_cost": "EGP 127.500",
"expiry_date": null
},
"supplier": null,
"created_at": "2026-07-06 10:59:54"
},
{
"id": 2,
"item_id": 2,
"inventory_item_batch_id": 2,
"movement_type": "purchase_in",
"quantity": "5.000",
"unit_cost": "EGP 15.250",
"total_cost": "EGP 76.250",
"inventory_item": {
"id": 2,
"item": null,
"item_type": "medication"
},
"batch": {
"id": 2,
"batch_no": "BTH-20260706-EXV0BM",
"quantity": 5,
"unit_cost": "EGP 15.250",
"total_cost": "EGP 76.250",
"expiry_date": null
},
"supplier": null,
"created_at": "2026-07-06 10:59:55"
},
{
"id": 3,
"item_id": 3,
"inventory_item_batch_id": 3,
"movement_type": "purchase_in",
"quantity": "7.000",
"unit_cost": "EGP 15.250",
"total_cost": "EGP 106.750",
"inventory_item": {
"id": 3,
"item": {
"id": 1,
"name": "QA Test Equipment Item",
"type": "permanent",
"categories": [
{
"id": 29,
"name": "inve-928"
}
]
},
"item_type": "equipment"
},
"batch": {
"id": 3,
"batch_no": "BTH-20260706-PTZDJD",
"quantity": 7,
"unit_cost": "EGP 15.250",
"total_cost": "EGP 106.750",
"expiry_date": null
},
"supplier": null,
"created_at": "2026-07-06 10:59:55"
},
{
"id": 4,
"item_id": 1,
"inventory_item_batch_id": 4,
"movement_type": "purchase_in",
"quantity": "10.000",
"unit_cost": "EGP 25.500",
"total_cost": "EGP 255.000",
"inventory_item": {
"id": 1,
"item": {
"id": 1,
"name": "QA Test Feed Item",
"calories": "100.00",
"cost_per_unit": "EGP 25.500",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": true
},
"item_type": "feeding"
},
"batch": {
"id": 4,
"batch_no": "BTH-20260706-F3CADF",
"quantity": 10,
"unit_cost": "EGP 25.500",
"total_cost": "EGP 255.000",
"expiry_date": "2027-07-06"
},
"supplier": null,
"created_at": "2026-07-06 10:59:55"
},
{
"id": 5,
"item_id": 1,
"inventory_item_batch_id": 1,
"movement_type": "scrap_out",
"quantity": "1.000",
"unit_cost": "EGP 25.500",
"total_cost": "EGP 25.500",
"inventory_item": {
"id": 1,
"item": {
"id": 1,
"name": "QA Test Feed Item",
"calories": "100.00",
"cost_per_unit": "EGP 25.500",
"unit": {
"id": 15,
"name": "feed-442"
},
"categories": [
{
"id": 14,
"name": "feed-320"
}
],
"is_active": true
},
"item_type": "feeding"
},
"batch": {
"id": 1,
"batch_no": "BTH-20260706-1PQSJL",
"quantity": 4,
"unit_cost": "EGP 25.500",
"total_cost": "EGP 127.500",
"expiry_date": null
},
"supplier": null,
"created_at": "2026-07-06 10:59:56"
},
{
"id": 6,
"item_id": 4,
"inventory_item_batch_id": 5,
"movement_type": "feeding_out",
"quantity": "1.000",
"unit_cost": "EGP 10.000",
"total_cost": "EGP 10.000",
"inventory_item": null,
"batch": {
"id": 5,
"batch_no": "DOC-FEEDING-FIXTURE",
"quantity": 100,
"unit_cost": "EGP 10.000",
"total_cost": "EGP 1000.000",
"expiry_date": "2027-07-06"
},
"supplier": null,
"created_at": "2026-07-06 11:00:15"
}
],
"pagination": {
"per_page": 10,
"current_page": 1,
"total": 6,
"last_page": 1
}
}
Get Movement Details
Retrieve Movement details.
Headers
| Field/Name | Type | Examples |
|---|---|---|
| X-API-Token | string | X-API-Token Key |
| Content-Type | string | application/json |
| Accept | string | application/json |
| Authorization | string | Authorization Key |
{
"success": true,
"message": "Data retrieved successfully.",
"data": {
"id": 6,
"item_id": 4,
"inventory_item_batch_id": 5,
"movement_type": "feeding_out",
"quantity": "1.000",
"unit_cost": "EGP 10.000",
"total_cost": "EGP 10.000",
"inventory_item": null,
"batch": {
"id": 5,
"batch_no": "DOC-FEEDING-FIXTURE",
"quantity": 100,
"unit_cost": "EGP 10.000",
"total_cost": "EGP 1000.000",
"expiry_date": "2027-07-06"
},
"supplier": null,
"created_at": "2026-07-06 11:00:15"
}
}