Skip to content

Bulk upsert/delete managed devices

POST
/v1/ns/{nsid}/resources/devices/bulk
curl --request POST \
--url https://example.com/v1/ns/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/resources/devices/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[ { "device": "example", "line": "example" } ]'
nsid
required
string format: uuid

Namespace UUID

Media typeapplication/json
Array<object>
object
device
string
line
string
Examplegenerated
[
{
"device": "example",
"line": "example"
}
]

OK

Media typeapplication/json
object
success
required
boolean
results
required
Array<object>
object
name
string
ok
boolean
error
string
Examplegenerated
{
"success": true,
"results": [
{
"name": "example",
"ok": true,
"error": "example"
}
]
}

Error response

Media typeapplication/problem+json

RFC 7807 Problem Details

object
type

Problem type slug URI

string
title
string
status
integer
detail
string
key
additional properties
any
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example"
}