Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Method: /token/import


Import hardware tokens into token repository

Example:

Code Block
languagejs
titleParameters
{
	"attrs":
	{
		"product.id": "productId",
		"repository.id": "repoId",
		"data":"text of import file"
	}
	"return":["id","serial"]
}


Code Block
languagejs
titleResponse
{
	"error":0,
	"result":
	{
		"total":3,
		"rows":
		[
			{"id":"xxx","serial":"1001"},
			{"id":"yyy","serial":"1002"},
			{"id":"zzz","serial":"1003"}
		]
	}
}