Skip to main content

Create new Node

POST 

/node/create

Create a new node. This API allows you to create a new node. In return the API will provide you UUID of the new node created in Anedya platform.

note

Creation of new node is limited by the Quota assigned to your account. To maintain quality and to stop abuse, by default Anedya assigns quota of 100 nodes. Please contact support to raise the quota

Request

Body

    node_name string

    You can give node a name which will help you identify the node in the Anedya management dashboard

    node_desc string

    Optional description of the node

    tags object[]

    Possible values: <= 50

    Tags provide a way to attach properties to nodes. You can specify upto 50 tags on each node. You can use tags in other APIs to target specific group of nodes. For example, you can assign tag model:mk1 to all nodes which has a physical device of model MK1. Once tagged, you can target all MK1 model devices for an OTA Update through filtering by tags.

  • Array [
  • key stringrequired

    Possible values: non-empty and <= 50 characters

    Key to define a tag. A node can not have two tags with same key

    value stringrequired

    Possible values: non-empty and <= 255 characters

    Value for the tag. You can put upto 255 characters in value

  • ]
  • preauth_id uuid

    Prequthorize a physical device to allow device connection. Please refer to provisioning flow for more details.

Responses

OK

Schema
    success boolean
    error string
    errorcode integer
    nodeId uuid

    128-bit NodeID of new node created.

Loading...