---
title: "Assign Platform Task to Service Account"
method: POST
path: "/v2/platform/task/assign"
tags: ["PlatformTask"]
---

# Assign Platform Task to Service Account

`POST /v2/platform/task/assign`

Assign platform related background tasks to service accounts

## Request body

- PlatformTaskRequest
  - `service_account_id` string, required — Service Account ID
  - `task` 'backfill' | 'push_logs' | 'restart', required — Platform related background tasks
  - `properties` PlatformTaskProperties
    - `days` integer — Number of days for backfill

## Response `200`

Success

- string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.dev/corestack/apis/corestack-external-api.md) · [All operations](https://skmtc.dev/corestack/apis/corestack-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corestack/corestack-external-api/revisions/bf2cdf20826d/schema)
