Examples

POST /api/architectures
{
  "architecture": {
    "name": ""
  }
}
422
{
  "error": {
    "id": null,
    "errors": {
      "name": [
        "can't be blank"
      ]
    },
    "full_messages": [
      "Name can't be blank"
    ]
  }
}

Params

Param Name Description
location_id
Optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
Optional

Set the current organization context for the request

Validations:

  • Must be a Integer

architecture
Required

Validations:

  • Must be a Hash

architecture[name]
Required

Validations:

  • Must be a String

architecture[operatingsystem_ids]
Optional , <span class="translation_missing" title="translation missing: cs-CZ.apipie.nil_allowed">Nil Allowed</span>

Operating system IDs

Validations:

  • Must be an array of any type