Skip to content

Update prefix

PATCH
/api/prefixes/{id}
curl --request PATCH \
--url http://localhost:3000/api/prefixes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Content-Type: application/json' \
--cookie session=<session> \
--data '{ "prefix": "10.0.0.0/24", "vrfId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "siteId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "vlanId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "status": "active", "isPool": false, "description": "example" }'
id
required
string format: uuid
Media type application/json
object
prefix
string
Example
10.0.0.0/24
vrfId
string format: uuid
siteId
string format: uuid
vlanId
string format: uuid
status
string
default: active
Allowed values: active container reserved deprecated
isPool
boolean
description
string

Prefix updated

Media type application/json
object
data
object
id
required
string format: uuid
prefix
required
string
vrfId
string format: uuid
nullable
siteId
string format: uuid
nullable
vlanId
string format: uuid
nullable
status
required
string
Allowed values: active container reserved deprecated
isPool
required
boolean
description
string
nullable
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example
{
"data": {
"prefix": "10.0.0.0/24",
"status": "active"
}
}

Validation error

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

Not authenticated

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

Prefix not found

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