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

# Photo Upload

Allows the user to upload a single photo for placement on a Sitebuilder page.

> 📘 Note
>
> `page_element[element][uploaded_data]` points to the location of the files on your local drive. The value defaults to the current directory.

### Attributes

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Attributes
      </th>

      <th style={{ textAlign: "left" }}>
        Type
      </th>

      <th style={{ textAlign: "left" }}>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        id
      </td>

      <td style={{ textAlign: "left" }}>
        Integer
      </td>

      <td style={{ textAlign: "left" }}>
        Unique id assigned by NGIN
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        cutline
      </td>

      <td style={{ textAlign: "left" }}>
        String
      </td>

      <td style={{ textAlign: "left" }}>
        Max length 255. Caption for photo
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        url
      </td>

      <td style={{ textAlign: "left" }}>
        String
      </td>

      <td style={{ textAlign: "left" }}>
        Max length 255. Required if has \_url is valued
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        protocol
      </td>

      <td style={{ textAlign: "left" }}>
        String
      </td>

      <td style={{ textAlign: "left" }}>
        Values are "http\://", "https\://", "mailto:". Required if has\_url is valued.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        uploaded\_data
      </td>

      <td style={{ textAlign: "left" }}>
        File
      </td>

      <td style={{ textAlign: "left" }}>
        Image file
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        has\_url
      </td>

      <td style={{ textAlign: "left" }}>
        Integer
      </td>

      <td style={{ textAlign: "left" }}>
        Values 1-5, corresponding to link "target" attribute. 1 = link opens in same window, 2 = link to full sized image in same window, 3 = link to full sized image in new window, 4 = relative url, 5 = link to new window
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        show\_original
      </td>

      <td style={{ textAlign: "left" }}>
        Boolean
      </td>

      <td style={{ textAlign: "left" }}>
        If set, the image will not be optimized or resized, which may lead to slower page load times.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        thumbnails
      </td>

      <td style={{ textAlign: "left" }}>
        Hash
      </td>

      <td style={{ textAlign: "left" }}>
        A hash of the thumbnail urls. Keys: small, medium, and large
      </td>
    </tr>
  </tbody>
</Table>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.sportngin.com"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/page_elements": {
      "post": {
        "summary": "Table Builder Create",
        "description": "",
        "operationId": "table-builder-create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "content"
                ],
                "properties": {
                  "id": {
                    "type": "integer",
                    "format": "int32"
                  },
                  "content": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl --user admin:test -H \"NGIN-API-TOKEN: your_token_value\" -H \"NGIN-API-VERSION: 0.1\" -d \"page_element[layout_column_id]=5&page_element[page_element_type]=TableElement&page_element[element][is_first_row_header]=1&page_element[element][content][r1_c1]=Attribute&page_element[element][content][r1_c2]=Type&page_element[element][content][r2_c1]=id&page_element[element][content][r2_c2]=integer\" http://api.sportngin.com/page_elements"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```