/api/v1/import.jsonΒΆ

Deprication warning: v1 API is depricated. Please use [api/v2.rst]_ instead

The main method used for importing data from any other sources like importers or any other kind of applications sends data to racks.

Authentication:
  • Application token
Accepted methods:
  • POST
Accepted request data:
  • name
  • location (optional)
  • labels (optional)
  • attribute_* (optional)

Request example:

POST /api/import.json
...

name=hostname

Response example:

HTTP/1.1 201 Created
...

{
  "status": "ok",
  "object_name": "hostname",
  "objectid": 1
}

Previous topic

Authentication

Next topic

/api/v1/object/list.json

This Page