Skip to Content
CloudAPI and integrationsPublic M2M APIPublic M2M API — blueprints

Public M2M API — blueprints

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/blueprints

Exported methods: GET, POST

GET

  • Resource scopes: blueprints:read
  • Query parameters: limit, page, search, templateType
  • Shared pagination: Yes
  • Response keys observed across outcomes: blueprints, data, pagination, templates

POST

  • Resource scopes: blueprints:write
  • Explicit response statuses: 201, 422
  • Explicit error codes: invalid_request
  • Response keys observed across outcomes: blueprint, data, template

These tables describe the validated form after the server normalizes the submitted input. Include the shown discriminator explicitly to select an alternative; the server may also accept omitted or aliased fields according to its route-specific normalization.

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

Payload alternative 1

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
kindliteralNoNoblueprint—
namestringNoNo—min(1), max(120)
osFamilystringYesNo—default("ubuntu")
scriptstringNoNo—min(1), max(65536)
graphJsonstringYesNo——

Payload alternative 2

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
kindliteralNoNotemplate—
namestringNoNo—min(1), max(120)
descriptionstringYesNo—max(500)
templateTypeenumYesNoSERVER, APPLICATION, PROJECTdefault("SERVER")
sourceUuidstringYesNo——
configobjectYesNo——
tagsarrayYesNo——
isPublicbooleanYesNo—default(false)

/api/v1/blueprints/{id}

Exported methods: GET, PATCH, DELETE

GET

  • Resource scopes: blueprints:read
  • Path parameters: id
  • Explicit response statuses: 404
  • Explicit error codes: not_found
  • Response keys observed across outcomes: blueprint, data, kind

PATCH

  • Resource scopes: blueprints:write
  • Path parameters: id
  • Explicit response statuses: 422
  • Explicit error codes: invalid_request, not_found
  • Response keys observed across outcomes: blueprint, data, kind

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
configobjectYesNo——
descriptionstringYesNo—max(500)
graphJsonstringYesYes——
isPublicbooleanYesNo——
namestringYesNo—min(1), max(128)
osFamilyenumYesNodebian, ubuntu, rhel, alpine—
packagesarrayYesNo——
scriptstringYesNo—min(1)
tagsarrayYesNo——
usersarrayYesNo——
yamlContentstringYesNo—min(1)

DELETE

  • Resource scopes: blueprints:write
  • Path parameters: id
  • Explicit error codes: not_found
  • Response keys observed across outcomes: deleted, id, kind

Request input was not extracted for this operation; consult its specific contract before sending. Do not infer that no body is required.