Skip to main content
POST
Create a metadata object

Authorizations

Authorization
string
header
required

A bearer token is required for all API requests.

Body

application/json

The resource identifier and the metadata to associate with it.

resource_id
string<uuid>
required

The UUID of the resource to associate metadata with.

Example:

"9b52d930-f432-4c0a-bac0-4c12dff85544"

type
string
required

A string identifying the type of the resource.

Example:

"mikrotik.device"

metadata
object
required

The key-value data to store. A 'name' key is required when creating new metadata.

Example:

Response

Metadata created or updated successfully.

resource_id
string<uuid>

The unique identifier of the resource this metadata belongs to.

Example:

"9b52d930-f432-4c0a-bac0-4c12dff85544"

type
string

A string identifying the type of the resource.

Example:

"mikrotik.device"

metadata
object

A free-form object containing key-value pairs. Values can be strings, numbers, or booleans.

Example: