---
updatedAt: 2025-06-05T22:00:03.000Z
agentTools:
  projectIndex: https://sportnginsite.readme.io/llms.txt
---

# Layout Containers Create

The Create method accepts a single Layout Container (see attributes above) and creates a new record in Sport Ngin.  The Layout Container will be created within the specified [Content Node](https://sportnginsite.readme.io/docs/content-node) on the specified [Site](https://sportnginsite.readme.io/docs/sites).

###Parameters

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.sportngin.com"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/layout_containers": {
      "post": {
        "summary": "Layout Containers Create",
        "description": "The Create method accepts a single Layout Container (see attributes above) and creates a new record in Sport Ngin.  The Layout Container will be created within the specified [Content Node](https://sportnginsite.readme.io/docs/content-node) on the specified [Site](https://sportnginsite.readme.io/docs/sites).\n\n###Parameters",
        "operationId": "layout-containers-create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "site_id",
                  "layout_container"
                ],
                "properties": {
                  "site_id": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "layout_container": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"id\": 23099345,\n    \"content_node_id\": 20151248,\n    \"layout_type\": \"oneColumn\",\n    \"locked\": false,\n    \"position\": 2,\n    \"created_at\": \"2016-04-11T09:46:21-07:00\",\n    \"updated_at\": \"2016-04-11T09:46:21-07:00\",\n    \"custom_css_class\": null,\n    \"mirror_target_id\": null,\n    \"name\": null,\n    \"layout_columns\": [\n        {\n            \"id\": 28092708,\n            \"layout_container_id\": 23099345,\n            \"position\": 1,\n            \"page_elements\": []\n        }\n    ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 23099345,
                      "default": 0
                    },
                    "content_node_id": {
                      "type": "integer",
                      "example": 20151248,
                      "default": 0
                    },
                    "layout_type": {
                      "type": "string",
                      "example": "oneColumn"
                    },
                    "locked": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "position": {
                      "type": "integer",
                      "example": 2,
                      "default": 0
                    },
                    "created_at": {
                      "type": "string",
                      "example": "2016-04-11T09:46:21-07:00"
                    },
                    "updated_at": {
                      "type": "string",
                      "example": "2016-04-11T09:46:21-07:00"
                    },
                    "custom_css_class": {},
                    "mirror_target_id": {},
                    "name": {},
                    "layout_columns": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "example": 28092708,
                            "default": 0
                          },
                          "layout_container_id": {
                            "type": "integer",
                            "example": 23099345,
                            "default": 0
                          },
                          "position": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "page_elements": {
                            "type": "array"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -X POST -H \"NGIN-API-VERSION: 0.1\" -H \"Authorization: Bearer ACCESS_TOKEN\" -H \"Content-Type: application/json\" -d '{\n    \"layout_container\":\n        {\n            \"content_node_id\": 20151248,\n            \"layout_type\": \"oneColumn\",\n            \"position\": 1\n        },\n    \"site_id\": 11953\n}\n' \"https://api.sportngin.com/layout_containers\""
            },
            {
              "language": "ruby",
              "code": "require 'uri'\nrequire 'net/http'\n\nurl = URI(\"https://api.sportngin.com/layout_containers\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"ngin-api-version\"] = '0.1'\nrequest[\"authorization\"] = 'Bearer ACCESS_TOKEN'\nrequest[\"content-type\"] = 'application/json'\nrequest.body = \"{\\n    \\\"layout_container\\\":\\n        {\\n            \\\"content_node_id\\\": 20151248,\\n            \\\"layout_type\\\": \\\"oneColumn\\\",\\n            \\\"position\\\": 1\\n        },\\n    \\\"site_id\\\": 11953\\n}\\n\"\n\nresponse = http.request(request)\nputs response.read_body"
            },
            {
              "language": "java",
              "code": "OkHttpClient client = new OkHttpClient();\n\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n    \\\"layout_container\\\":\\n        {\\n            \\\"content_node_id\\\": 20151248,\\n            \\\"layout_type\\\": \\\"oneColumn\\\",\\n            \\\"position\\\": 1\\n        },\\n    \\\"site_id\\\": 11953\\n}\\n\");\nRequest request = new Request.Builder()\n  .url(\"https://api.sportngin.com/layout_containers\")\n  .post(body)\n  .addHeader(\"ngin-api-version\", \"0.1\")\n  .addHeader(\"authorization\", \"Bearer ACCESS_TOKEN\")\n  .addHeader(\"content-type\", \"application/json\")\n  .build();\n\nResponse response = client.newCall(request).execute();"
            }
          ],
          "samples-languages": [
            "curl",
            "ruby",
            "java"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```