技能 编程开发 MaintainX 基础示例

MaintainX 基础示例

v20260311
maintainx-hello-world
通过运行 MaintainX REST API 创建第一个工单,验证环境配置和客户端用法,为后续 CMMS 自动化打好基础。
获取技能
405 次下载
概览

MaintainX Hello World

Overview

Create your first work order using the MaintainX REST API - the core building block of CMMS operations.

Prerequisites

  • Completed maintainx-install-auth setup
  • Valid API credentials configured
  • Development environment ready

Instructions

Follow these high-level steps to implement maintainx-hello-world:

  1. Review the prerequisites and ensure your environment is configured
  2. Follow the detailed implementation guide for step-by-step code examples
  3. Validate your implementation against the output checklist below

For full implementation details, load: Read(plugins/saas-packs/maintainx-pack/skills/maintainx-hello-world/references/implementation-guide.md)

Output

  • Working code file with MaintainX client usage
  • Successfully created work order in your MaintainX account
  • Console output showing:

Error Handling

Error Cause Solution
400 Bad Request Missing required fields Include at least title field
401 Unauthorized Invalid API key Check MAINTAINX_API_KEY environment variable
403 Forbidden Plan limitations Verify API access on your subscription
422 Unprocessable Invalid field values Check enum values (priority, status)

Resources

Next Steps

Proceed to maintainx-local-dev-loop for development workflow setup.

Examples

Basic usage: Apply maintainx hello world to a standard project setup with default configuration options.

Advanced scenario: Customize maintainx hello world for production environments with multiple constraints and team-specific requirements.

信息
Category 编程开发
Name maintainx-hello-world
版本 v20260311
大小 3.85KB
更新时间 2026-03-12
语言