BOCHU IoT Api
  1. Task Management
BOCHU IoT Api
  • 0. Introduction
  • a. Use our demo to quickly generate request headers
  • b. Manually create the request header
  • 1. Machine Quota
  • 2. API Quota & API Rate Limit
  • Global Error Code
  • Cutting Machine API
    • Machine Management
      • Machine List
      • Machine Detailed Information
      • Machine Status Change Records
    • Real-time Data
      • Machine Operating Status
      • Machine Current Alarm List
      • Machine Ongoing Processing Task
      • Real-time Status of the Cutting System
    • Historical Data
      • Paged Processing Records
    • Statistics Information
      • Summary of Statistical Data for a Period of Time
      • Daily Alarm Duration
      • Daily Piercing Count
      • Daily Idle Time
      • Daily Laser-On Time
      • Daily Gas-On Time
      • Daily Cutting Length
      • Daily Traveling Distance
      • Daily Processing Time v2
    • Task Management
      • Upload Cut Task
        POST
  • Welding Machine API
    • Machine Management
      • Machine List
      • Machine Detailed Information
      • Machine Status Change Records
    • Real-time Data
      • Machine Operating Status
    • Historical Data
      • Paged Welding Processing Records
    • Statistics Information
      • Summary of Welding Statistical Data for a Period of Time
      • Daily Flat-Weld Length
      • Daily Flat-Weld Time
      • Daily Vertical-Weld Length
      • Daily Vertical-Weld Time
      • Daily Weld Length
      • Daily Weld Time
      • Daily Weld-Pass Count
      • Daily Idle Time
      • Daily Processing Time
    • Task Management
      • Upload Weld Task
  1. Task Management

Upload Cut Task

POST
https://mcs-gateway.fscut.com/upload/api/device_tasks/upload/cut
Function Description:
This function is used to upload cutting task file, and create a cutting task belongs to the specified machine.
Important Notes:
The cardId should be for an authenticated machine.
The cardId must be within the user's device quota. Devices exceeding the quota will not be allowed for querying.
The file size is limited to 100MB
The taskAmount indicates the expected process times of the task, must not be less than 1

Request

Body Params multipart/form-data
file
file 
required
supported file types:["dxf", "lxds", "lxd", "nrp", "nrp2", "zx", "nc", "cnc", "plt", "slp"]
cardId
string 
required
Example:
123456789100
taskName
string 
required
task name, customized
Example:
task-114514
taskAmount
integer 
required
Example:
1

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mcs-gateway.fscut.com/upload/api/device_tasks/upload/cut' \
--form 'file=@""' \
--form 'cardId="123456789100"' \
--form 'taskName="task-114514"' \
--form 'taskAmount="1"'

Responses

🟢200OK
application/json
Body
status
integer 
required
0 for successful response, non-zero for error codes
msg
string 
required
Ok for successful response, or an error message for non-successful responses
data
string 
required
TaskUUID for successful response
Example
{
  "status": 0,
  "msg": "OK",
  "data": "T19135FC4DFCG544775T3385"
}
Modified at 2024-08-09 09:00:17
Previous
Daily Processing Time v2
Next
Machine List
Built with