Assign imported devices to users
post
Authorizations
defguard_sessionstringRequired
Path parameters
network_idinteger · int64Required
ID of the network.
Body
Responses
201
Devices assigned to users.
No content
204
Empty device list, nothing was assigned.
400
Invalid device data.
application/json
401
Session is missing or invalid.
application/json
403
Requires admin privileges.
application/json
404
Network not found.
application/json
500
Unable to assign devices.
application/json
post/api/v1/network/{network_id}/devices
POST /api/v1/network/{network_id}/devices HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 92
{
"devices": [
{
"name": "text",
"user_id": 1,
"wireguard_ips": [
"text"
],
"wireguard_pubkey": "text"
}
]
}No content
Last updated
Was this helpful?