NexCommand AI

MRO API reference

Authenticated, deployment-local native Frappe APIs. Use the target ERP site; api.nexcommand.ai hosts this reference and does not proxy private ERP records.

Existing deployment authentication, native DocType permissions, Company User Permissions and CSRF protections apply. API tokens inherit the issuing user’s roles and appointments. Never send secrets in URLs. System Manager alone does not confer scoped maintenance release authorization.

Read APIs

GET pathPurpose
/api/method/nexcom_branding.mro.api.overviewPermitted MRO records and available create actions
/api/method/nexcom_branding.mro.api.release_readinessCurrent release blockers and aircraft counters; requires work_package
/api/method/nexcom_branding.mro.api.evidence_packPermission-checked immutable evidence, profile, source and release records; requires work_package

Controlled writes

POST /api/method/nexcom_branding.mro.api.draft_stock_issue with work_package, item, quantity and expense_account. It creates a native draft only and requires both MRO Material appointment and native Stock Entry create permission.

Use native POST /api/resource/{DocType} for draft creation, PUT /api/resource/{DocType}/{name} for draft edits, and POST /api/method/frappe.client.submit with the complete current document JSON in doc to submit. Native whitelisted methods and document permissions remain authoritative; submit invokes all server gates.

Do not supply signed_by, signed_at, signed_payload, content_hash, release snapshot or tool snapshot. These are server-controlled. Ordinary callers cannot update/cancel/delete submitted evidence. Withdrawals preserve the original; unsupported history corrections require reviewed migration rather than a counter reset.

Record schemas

DocTypePurpose / required data
NexCom MRO Referencecompany, title, issuer, edition, locator, source_uri, source_hash, effective_from, review_due, applicability, approval_evidence
NexCom MRO Profilecompany, profile_name, jurisdiction, authority, model, scope, approval_identifier, governing_reference, valid_until, retention_years, retention_basis
NexCom MRO Authorizationcompany, user, profile, capability, task_scope, valid_from, valid_until, appointment_evidence
NexCom MRO Aircraftcompany, tail_number, serial_number, model, profile, baseline, approval_evidence, opening_hours, opening_cycles, opening_history
NexCom MRO Componentcompany, part_number, serial_number, item, configuration, opening_hours, opening_cycles, life_reference, history_evidence
NexCom MRO Usagecompany, aircraft, occurred_at, hours, cycles, evidence
NexCom MRO Obligationcompany, aircraft, subject, reference, task_scope, applicability_evidence
NexCom MRO Work Packagecompany, aircraft, subject, task_scope, scope_evidence, baseline, planned_tasks
NexCom MRO Taskcompany, work_package, task_scope, reference, instruction_locator, completed_at, result, results, evidence, labor_hours
NexCom MRO Toolcompany, tool_serial, physical_serial, measurement_scope, unit, range_min, range_max, calibrated_on, calibration_due, certificate, lab_scope, reference
NexCom MRO Checkcompany, work_package, category, result, details, evidence
NexCom MRO Findingcompany, aircraft, finding_type, description, evidence
NexCom MRO Dispositioncompany, finding, disposition, authority_evidence, reference, root_cause, effectiveness
NexCom MRO Materialcompany, work_package, item, quantity, action, stock_entry, serial_lot, eligibility
NexCom MRO Releasecompany, work_package, statement, external_release_id
NexCom MRO Handoffcompany, work_package, department, target_type, target_name, purpose
NexCom MRO Withdrawalcompany, target_type, target_name, reason, evidence
NexCom MRO Component Movementcompany, work_package, component, action, position, eligibility_evidence, material
NexCom MRO Configuration Revisioncompany, aircraft, change_type, baseline, profile, reference, approval_evidence, weight_balance_evidence, effectivity_evidence, component_manifest

Download OpenAPI3.1

Errors and retries

Authentication/permission failures return the native401/403 family. Validation/gate failures return native Frappe exceptions, commonly417; inspect exc_type and the server message. Failed mutations roll back. Do not blindly retry draft creation after a network timeout: query the returned/current record or native transaction reference first. Release work_package and material stock_entry+item uniqueness are also enforced by database constraints. No automatic duplicate financial journals are generated.

Example

GET https://neo.ai-erp-demo.nexcommand.ai/api/method/nexcom_branding.mro.api.release_readiness?work_package=AWDEMO2-HOLD-WORK
Authorization: token <api_key>:<api_secret>

Expected response: message.blockers includes the overdue obligation and open finding. Do not interpret ready_for_authorized_review as an airworthiness certificate or permission to fly.