Skip to Content

Public M2M API — fleet

Review the operation, its input and access requirements. Parameter names and enum values are protocol identifiers and must retain the exact spelling shown. Optional/defaulted input is marked as such; required fields nested beneath an optional object apply when that object is supplied. Only statically recognized literal constraints are shown; additional validation, conditional requirements and provider rules may apply.

Authentication and permissions · Requests, results and recovery

/api/v1/fleet

Exported methods: GET, POST

GET

  • Resource scopes: monitoring:read
  • Query parameters: role
  • Response keys observed across outcomes: activeDeployments, data, genericServers, nodes

POST

  • Resource scopes: monitoring:write
  • Explicit response statuses: 201, 422
  • Explicit error codes: invalid_request
  • Response keys observed across outcomes: action, data, enabled, node, nodeId, nodesSynced, ok, powerAction, queuedAt, reason, scheduledAt, strategy, syncedAt, tags, targetIds, tenantId, updatedCount, windowEnd, windowStart

Provide one of these observed alternatives; additional validation may apply.

Payload alternative 1

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
actionliteralNoNosync—
rolestringYesNo——

Payload alternative 2

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
actionliteralNoNomaintenance—
nodeIdstringNoNo—min(1)
enabledbooleanYesNo—default(true)
reasonstringYesNo—max(500)

Payload alternative 3

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
actionliteralNoNorebalance—
strategyenumYesNocpu, memory, spreaddefault("spread")

Payload alternative 4

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
actionliteralNoNoregister_node—
namestringNoNo—min(1), max(80)
roleenumYesNoprod, coolify, edge, stagingdefault("prod")
publicIpv4stringNoNo—min(7), max(45)
wgIpv4stringYesNo——
hostnamestringYesNo——
tagsarrayYesNo——
notesstringYesNo—max(1000)

Payload alternative 5

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
actionliteralNoNobulk_tag—
targetIdsarrayNoNo—min(1)
tagsarrayNoNo—min(1)

Payload alternative 6

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
actionliteralNoNobulk_power—
targetIdsarrayNoNo—min(1)
powerActionenumYesNostart, stop, reboot, resetdefault("reboot")

Payload alternative 7

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
actionliteralNoNoschedule_maintenance—
targetIdsarrayYesNo——
windowStartstringYesNo——
windowEndstringYesNo——
reasonstringYesNo—max(500)