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

# Pages Create

The Create method accepts a single Page and creates a new record in Sport Ngin.  The Page will be created on the specified [Site](https://sportnginsite.readme.io/docs/sites) under a Parent Page if specified.

###Parameters

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.sportngin.com"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/pages": {
      "post": {
        "summary": "Pages Create",
        "description": "The Create method accepts a single Page and creates a new record in Sport Ngin.  The Page will be created on the specified [Site](https://sportnginsite.readme.io/docs/sites) under a Parent Page if specified.\n\n###Parameters",
        "operationId": "pages-create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "site_id",
                  "page_title",
                  "button_title"
                ],
                "properties": {
                  "site_id": {
                    "type": "integer",
                    "description": "ID of the site the page will be built on",
                    "format": "int32"
                  },
                  "page_title": {
                    "type": "string",
                    "description": "Name to be displayed on page"
                  },
                  "button_title": {
                    "type": "string",
                    "description": "Name to display on buttons leading to page"
                  },
                  "parent_id": {
                    "type": "integer",
                    "description": "ID of the parent page_node if applicable",
                    "format": "int32"
                  },
                  "extended_button_title": {
                    "type": "string",
                    "description": "Name displayed in site tree when managing permissions"
                  },
                  "display_status": {
                    "type": "string",
                    "description": "Status of page (disabled, private, public)"
                  },
                  "layout_template": {
                    "type": "string",
                    "description": "Layout of page (one_panel, two_panel, three_panel)"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"id\": 2574267,\n    \"site_id\": 11953,\n    \"content_node_id\": 21223221,\n    \"lft\": 23,\n    \"rgt\": 24,\n    \"parent_id\": 2394451,\n    \"button_title\": \"Page Create\",\n    \"page_title\": \"API Page Creation!!\",\n    \"display_status\": \"public\",\n    \"updated_on\": \"2016-05-03T11:20:33-07:00\",\n    \"created_on\": \"2016-05-03T11:20:33-07:00\",\n    \"in_trash\": false,\n    \"css_id\": null,\n    \"node_type\": \"Page\",\n    \"node_id\": 681422,\n    \"has_events\": false,\n    \"has_news\": false,\n    \"extended_button_title\": \"API Page Creation!!\",\n    \"header_code\": null,\n    \"image_id\": null,\n    \"cascade_header_code\": null,\n    \"layout_template\": \"two_panel\",\n    \"page_element_lock_for_edit_access\": null,\n    \"uses_sport_header\": false,\n    \"cache_timeout\": 7200,\n    \"ads_doubleclick_zone_id\": null,\n    \"friendly_name\": \"api-test-page\",\n    \"deleted_tree_id\": null\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 2574267,
                      "default": 0
                    },
                    "site_id": {
                      "type": "integer",
                      "example": 11953,
                      "default": 0
                    },
                    "content_node_id": {
                      "type": "integer",
                      "example": 21223221,
                      "default": 0
                    },
                    "lft": {
                      "type": "integer",
                      "example": 23,
                      "default": 0
                    },
                    "rgt": {
                      "type": "integer",
                      "example": 24,
                      "default": 0
                    },
                    "parent_id": {
                      "type": "integer",
                      "example": 2394451,
                      "default": 0
                    },
                    "button_title": {
                      "type": "string",
                      "example": "Page Create"
                    },
                    "page_title": {
                      "type": "string",
                      "example": "API Page Creation!!"
                    },
                    "display_status": {
                      "type": "string",
                      "example": "public"
                    },
                    "updated_on": {
                      "type": "string",
                      "example": "2016-05-03T11:20:33-07:00"
                    },
                    "created_on": {
                      "type": "string",
                      "example": "2016-05-03T11:20:33-07:00"
                    },
                    "in_trash": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "css_id": {},
                    "node_type": {
                      "type": "string",
                      "example": "Page"
                    },
                    "node_id": {
                      "type": "integer",
                      "example": 681422,
                      "default": 0
                    },
                    "has_events": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "has_news": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "extended_button_title": {
                      "type": "string",
                      "example": "API Page Creation!!"
                    },
                    "header_code": {},
                    "image_id": {},
                    "cascade_header_code": {},
                    "layout_template": {
                      "type": "string",
                      "example": "two_panel"
                    },
                    "page_element_lock_for_edit_access": {},
                    "uses_sport_header": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "cache_timeout": {
                      "type": "integer",
                      "example": 7200,
                      "default": 0
                    },
                    "ads_doubleclick_zone_id": {},
                    "friendly_name": {
                      "type": "string",
                      "example": "api-test-page"
                    },
                    "deleted_tree_id": {}
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -X POST -H \"Authorization: Bearer ACCESS_TOKEN  \" -H \"Accept: application/json\" -H \"NGIN-API-VERSION: 0.1\" -H \"Content-Type: application/json\" -d '{\n    \"site_id\": 11953,\n    \"button_title\": \"Page Create\",\n    \"page_title\": \"API Page Creation!!\",\n    \"parent_id\": 2394451,\n    \"display_status\": \"public\",\n    \"layout_template\": \"two_panel\"\n}' \"https://api.sportngin.com/pages\""
            },
            {
              "language": "ruby",
              "code": "require 'uri'\nrequire 'net/http'\n\nurl = URI(\"https://api.sportngin.com/pages\")\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[\"authorization\"] = 'Bearer ACCESS_TOKEN'\nrequest[\"accept\"] = 'application/json'\nrequest[\"ngin-api-version\"] = '0.1'\nrequest[\"content-type\"] = 'application/json'\nrequest.body = \"{\\n    \\\"site_id\\\": 11953,\\n    \\\"button_title\\\": \\\"Page Create\\\",\\n    \\\"page_title\\\": \\\"API Page Creation!!\\\",\\n    \\\"parent_id\\\": 2394451,\\n    \\\"display_status\\\": \\\"public\\\",\\n    \\\"layout_template\\\": \\\"two_panel\\\"\\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    \\\"site_id\\\": 11953,\\n    \\\"button_title\\\": \\\"Page Create\\\",\\n    \\\"page_title\\\": \\\"API Page Creation!!\\\",\\n    \\\"parent_id\\\": 2394451,\\n    \\\"display_status\\\": \\\"public\\\",\\n    \\\"layout_template\\\": \\\"two_panel\\\"\\n}\");\nRequest request = new Request.Builder()\n  .url(\"https://api.sportngin.com/pages\")\n  .post(body)\n  .addHeader(\"authorization\", \"Bearer ACCESS_TOKEN\")\n  .addHeader(\"accept\", \"application/json\")\n  .addHeader(\"ngin-api-version\", \"0.1\")\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
}
```