Altostrat Studio is here — the AI-native network operations IDE for engineers running production. Terminal, diagrams, runbooks, and Copilot in one workspace. Get started →
curl --request POST \
--url https://v1.api.altostrat.io/metadata \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resource_id": "9b52d930-f432-4c0a-bac0-4c12dff85544",
"type": "mikrotik.device",
"metadata": {
"name": "Main Office Router",
"location": "Level 5, Server Room A",
"contact_person": "john.doe@example.com"
}
}
'{
"resource_id": "9b52d930-f432-4c0a-bac0-4c12dff85544",
"type": "mikrotik.device",
"metadata": {
"circuit_id": "AS12345-XYZ",
"install_date": "2025-01-15",
"is_critical": true,
"rack_units": 2
}
}Creates a new metadata object for a given resource, or fully overwrites an existing one for that resource. The metadata itself is a flexible key-value store.
curl --request POST \
--url https://v1.api.altostrat.io/metadata \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resource_id": "9b52d930-f432-4c0a-bac0-4c12dff85544",
"type": "mikrotik.device",
"metadata": {
"name": "Main Office Router",
"location": "Level 5, Server Room A",
"contact_person": "john.doe@example.com"
}
}
'{
"resource_id": "9b52d930-f432-4c0a-bac0-4c12dff85544",
"type": "mikrotik.device",
"metadata": {
"circuit_id": "AS12345-XYZ",
"install_date": "2025-01-15",
"is_critical": true,
"rack_units": 2
}
}Documentation Index
Fetch the complete documentation index at: https://altostrat.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
A bearer token is required for all API requests.
The resource identifier and the metadata to associate with it.
The UUID of the resource to associate metadata with.
"9b52d930-f432-4c0a-bac0-4c12dff85544"
A string identifying the type of the resource.
"mikrotik.device"
The key-value data to store. A 'name' key is required when creating new metadata.
Show child attributes
{
"name": "Main Office Router",
"location": "Level 5, Server Room A",
"contact_person": "john.doe@example.com"
}Metadata created or updated successfully.
The unique identifier of the resource this metadata belongs to.
"9b52d930-f432-4c0a-bac0-4c12dff85544"
A string identifying the type of the resource.
"mikrotik.device"
A free-form object containing key-value pairs. Values can be strings, numbers, or booleans.
Show child attributes
{
"circuit_id": "AS12345-XYZ",
"install_date": "2025-01-15",
"is_critical": true,
"rack_units": 2
}Was this page helpful?