---
title: "Adds one-time top up data block to service line"
method: POST
path: "/public/v2/service-lines/{serviceLineNumber}/data/top-up"
tags: ["Service Lines"]
---

# Adds one-time top up data block to service line

`POST /public/v2/service-lines/{serviceLineNumber}/data/top-up`

## Request

- Base URL: `https://starlink.com/api`
- URL: `https://starlink.com/api/public/v2/service-lines/{serviceLineNumber}/data/top-up`
- Auth: HTTP bearer

Required permission: Service plan, Edit.<br/>Service line must be on a top up plan

## Path parameters

- `serviceLineNumber` string, required

## Request body

- AddDataBlockRequest
  - `productId` string, required: Product Id for data blocks
  - `count` integer, required: Quantity of the specified data block to add

## Response `200`

Successfully added data block

- ServiceResponse
  - `errors` ValidationResult[], nullable
    - `memberNames` string[], nullable
    - `errorMessage` string, nullable
  - `warnings` ValidationResult[], nullable
    - `memberNames` string[], nullable
    - `errorMessage` string, nullable
  - `information` string[], nullable
  - `isValid` boolean

## Other responses

- `400`: Bad request. Invalid or missing parameter
- `401`: Unauthorized
- `403`: Missing required permission for this endpoint or resource
- `422`: Failed to update add data block to service line

---

[API](https://skmtc.dev/starlink/apis/starlink-management-api.md) - [All operations](https://skmtc.dev/starlink/apis/starlink-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/starlink/apis/starlink-management-api/revisions/dfd7014cfd6d?raw)
