---
title: "New Endpoint"
method: POST
path: "/v1/segment_anything/task/submit"
---

# New Endpoint

`POST /v1/segment_anything/task/submit`

This is your first endpoint! Edit this page to start documenting your API.

## Headers

- `Topview-Uid` string, required
- `Authorization` string, required

## Request body

- object
  - `videoProcessTaskId` string, required — The video processing task ID obtained in the first step
  - `inputInfo` object, required
    - `index` string, required — The index of the selected frame
    - `modifyPoints` number[] — Modify regional point information Note: modifyPoints and protectPoints cannot be empty at the same time. Example: "modifyPoints": [ [ 624.2696629213483, 627.2320675105485 ], [ 624.2696629213483, 699.915611814346 ] ]
    - `protectPoints` number[] — Protection area location information. Example: "protectPoints": [ [ 233.25842696629212, 411.873417721519 ] ]
  - `noticeUrl` string — NoticeUrl. Please refer to the **[API documentation for details NoticeUrl](https://docs.topview.ai/reference/post_notice-notice-url-check#/)**

## Response `200`

- object
  - `code` string, required — 200:success Other:fail
  - `message` string, required
  - `result` object — When code is 200, the result content will be returned.
    - `taskId` string, required
    - `status` 'success' | 'fail', required
    - `errorMsg` string
    - `noticeUuid` string

---

[API](https://skmtc.net/topview/apis/image-character-swap-apis-editable-in-readme.md) · [All operations](https://skmtc.net/topview/apis/image-character-swap-apis-editable-in-readme/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/topview/image-character-swap-apis-editable-in-readme/revisions/83cd46ca7859/schema)
