Примеры

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

Параметры

Имя параметра Описание
location_id
необязательно

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
необязательно

Set the current organization context for the request

Validations:

  • Must be a Integer

architecture
обязательно

Validations:

  • Must be a Hash

architecture[name]
обязательно

Validations:

  • Must be a String

architecture[operatingsystem_ids]
необязательно , nil разрешен

Коды операционных систем

Validations:

  • Must be an array of any type