---
title: "POST /v1/{+parent}/sources"
method: POST
path: "/v1/{+parent}/sources"
tags: ["projects"]
---

# POST /v1/{+parent}/sources

`POST /v1/{+parent}/sources`

Creates a new source in a given project and location.

## Path parameters

- `parent` string, required

## Query parameters

- `requestId` string
- `sourceId` string

## Request body

- Source — Source represents an object from which asset information is streamed to Migration Center.
  - `state` 'STATE_UNSPECIFIED' | 'ACTIVE' | 'DELETING' | 'INVALID' — Output only. The state of the source.
  - `description` string — Free-text description.
  - `errorFrameCount` integer — Output only. The number of frames that were reported by the source and contained errors.
  - `name` string — Output only. The full name of the source.
  - `createTime` string, google-datetime — Output only. The timestamp when the source was created.
  - `priority` integer — The information confidence of the source. The higher the value, the higher the confidence.
  - `type` 'SOURCE_TYPE_UNKNOWN' | 'SOURCE_TYPE_UPLOAD' | 'SOURCE_TYPE_GUEST_OS_SCAN' | 'SOURCE_TYPE_INVENTORY_SCAN' | 'SOURCE_TYPE_CUSTOM' | 'SOURCE_TYPE_DISCOVERY_CLIENT' — Data source type.
  - `pendingFrameCount` integer — Output only. Number of frames that are still being processed.
  - `managed` boolean — If `true`, the source is managed by other service(s).
  - `updateTime` string, google-datetime — Output only. The timestamp when the source was last updated.
  - `displayName` string — User-friendly display name.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/migrationcenter.md) · [All operations](https://skmtc.dev/google/apis/migrationcenter/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/migrationcenter/revisions/2a8b4eea0432/schema)
