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
  • 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
        POST
  1. Task Management

Upload Weld Task

POST
https://mcs-gateway.fscut.com/upload/api/device_tasks/upload/weld
Function Description:
This function is used to upload welding task file, and create a welding task belongs to the verify organization of 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 projectCode, jobCode and taskGuid combined together as an unique key of welding task
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:["ifc", "cfi"]
cardId
string 
required
Example:
123456789100
taskGuid
string 
required
UNIQUE:projectCode+jobCode+taskGuid
Example:
comp-114514
taskAmount
integer 
required
Example:
1
projectCode
string 
optional
UNIQUE:projectCode+jobCode+taskGuid
Example:
P202409110846
jobCode
string 
optional
UNIQUE:projectCode+jobCode+taskGuid
Example:
J-2996-GH
extraInfoJson
string 
optional
custom extra info in json form, max length 1000
Example:
{"multiPass":true, "passCount":3, "metal":"Al"}

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/weld' \
--form 'file=@""' \
--form 'cardId="123456789100"' \
--form 'taskGuid="comp-114514"' \
--form 'taskAmount="1"' \
--form 'projectCode="P202409110846"' \
--form 'jobCode="J-2996-GH"' \
--form 'extraInfoJson="{\"multiPass\":true, \"passCount\":3, \"metal\":\"Al\"}"'

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
Example
{
  "status": 0,
  "msg": "OK"
}
Modified at 2024-10-11 07:09:46
Previous
Daily Processing Time
Built with