Changed APIs


EnOS 2.1 Update Release introduces the following API behavioral changes.

Connection Service

API

Description

Download File

Added category to request parameter (URI) which indicates the type of the file to be downloaded.

Upload Attribute

Added a required parameter Content-length to the header of the file form-data in the request body. The parameter indicates the file size.

Upload Event

Added a required parameter Content-length to the header of the file form-data in the request body. The parameter indicates the file size.

Upload Measurement Point

Added a required parameter Content-length to the header of the file form-data in the request body. The parameter indicates the file size.

Apply Certificate

Added issueAuthority to the request parameters. Updated error codes.

Renew Certificate

Added issueAuthority to the request parameters. Updated error codes.

Revoke Certificate

Updated error codes.

List Certificate

Updated error codes.

Search Device

Expression supports querying by deviceAttributes and deviceTags.

Batch Processing Service

Starting from EnOS 2.1.2 release, the Dataflow Service is renamed Batch Processing Service. In the API request URL, dataflow-batch-service is changed to batch-processing-service, and the API version is upgraded to v2.1. The new version includes the following updates:

Changed Item

Before

After

Impact

Response field rename

status

code

All APIs

Successful request

Success

OK

All APIs

searchValue filed rename

searchValue

expression

Get My Flow

pagination struct

Value of pageNo starts from 0

Value of pageNo starts from 1

Search Flow,List Flow Instances