Get a Unit in a Scope
GET/metadata/scopes/:scope/units/:unit
Get a Unit in a Scope by its ID.
Request
Path Parameters
scope stringrequired
The Scope to get the Unit in.
unit stringrequired
The Unit to get.
Responses
- 200
- 400
- 401
- 403
- 404
Success
- application/json
- Schema
- Example (from schema)
Schema
name stringrequired
scope stringrequired
{
"name": "string",
"scope": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
status stringrequired
Possible values: [Validation Error]
errors
object[]
required
error stringrequired
location stringrequired
Possible values: [body, query, path, headers]
{
"status": "Validation Error",
"errors": [
{
"error": "string",
"location": "body"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
status stringrequired
Possible values: [Unauthorized]
{
"status": "Unauthorized"
}
Device not yet provisioned
- application/json
- Schema
- Example (from schema)
Schema
status stringrequired
Possible values: [Device not yet provisioned]
{
"status": "Device not yet provisioned"
}
Unit not found
- application/json
- Schema
- Example (from schema)
Schema
status stringrequired
Possible values: [Unit not found]
{
"status": "Unit not found"
}
Loading...