---
title: "Upload router local content file"
method: POST
path: "/public/v2/routers/local-content"
tags: ["Routers"]
---

# Upload router local content file

`POST /public/v2/routers/local-content`

Required permission: Device command and configuration, Edit.<br/>Upload html file to allow it to be configured as the HTTPS server local content file for router configs. File must be HTML, under 4MB, and file name under 100 characters. Files are stored in a public bucket for configured routers to download. File should be attached as multipart/form-data. See https://starlink.readme.io/docs/local-content for example upload script.

## Request body

- object
  - `File` string, binary, required

## Response `201`

Success

- AddRouterLocalContentResponseV2ServiceResponse
  - `errors` ValidationResult[], nullable
    - `memberNames` string[], nullable
    - `errorMessage` string, nullable
  - `warnings` ValidationResult[], nullable
    - `memberNames` string[], nullable
    - `errorMessage` string, nullable
  - `information` string[], nullable
  - `isValid` boolean
  - `content` AddRouterLocalContentResponseV2
    - `nickname` string, required — File name of uploaded file
    - `fileContentId` string, required — File id to go in router config HTTPS server FileContentId field
    - `fileContentHash` string, required — File MD5 hash to go in router config HTTPS server FileContentHash field

## Other responses

- `400` — Bad request. Invalid or missing parameter
- `401` — Unauthorized
- `403` — Missing required permission for this endpoint or resource
- `422` — Failed to upload local content file

---

[API](https://skmtc.net/starlink/apis/starlink-management-api.md) · [All operations](https://skmtc.net/starlink/apis/starlink-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/starlink/starlink-management-api/revisions/a730bd0ddb42/schema)
