Skip to content

Clone device type

POST
/api/device-types/{id}/clone
curl --request POST \
--url http://localhost:3000/api/device-types/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/clone \
--header 'Content-Type: application/json' \
--cookie session=<session> \
--data '{ "name": "example", "slug": "example" }'

Clone a device type (typically a read-only vendor catalog row) into a customer-owned copy.

id
required
string format: uuid
Media type application/json
object
name
string
slug
string
Example generated
{
"name": "example",
"slug": "example"
}

DeviceType cloned

Media type application/json
object
data
object
id
required
string format: uuid
name
required
string
slug
string
nullable
manufacturerId
string format: uuid
nullable
description
string
nullable
modelFamily
string
nullable
formFactor
string
nullable
rackUnits

Numeric(4,1) serialised as string

string
nullable
airflow
string
nullable
weightKg

Numeric(7,2) serialised as string

string
nullable
powerIdleW
integer
nullable
powerMaxW
integer
nullable
poeBudgetW
integer
nullable
keyFeatures
string
nullable
typicalDeployment
string
nullable
asicChipset
string
nullable
defaultPlatformId
string format: uuid
nullable
defaultRoleId
string format: uuid
nullable
popular
boolean
source
string
Allowed values: vendor customer
status
string
Allowed values: active announced eos eol
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example
{
"data": {
"source": "vendor",
"status": "active"
}
}

Not authenticated

Media type application/json
object
error
required
string
Example
{
"error": "Not found"
}

DeviceType not found

Media type application/json
object
error
required
string
Example
{
"error": "Not found"
}