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

# POST /v1/{+parent}/dataLabelingJobs

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

Creates a DataLabelingJob.

## Path parameters

- `parent` string, required

## Request body

- GoogleCloudAiplatformV1DataLabelingJob — DataLabelingJob is used to trigger a human labeling job on unlabeled data from the following Dataset:
  - `inputsSchemaUri` string — Required. Points to a YAML file stored on Google Cloud Storage describing the config for a specific type of DataLabelingJob. The schema files that can be used here are found in the https://storage.googleapis.com/google-cloud-aiplatform bucket in the /schema/datalabelingjob/inputs/ folder.
  - `encryptionSpec` GoogleCloudAiplatformV1EncryptionSpec — Represents a customer-managed encryption key specification that can be applied to a Vertex AI resource.
    - `kmsKeyName` string — Required. Resource name of the Cloud KMS key used to protect the resource. The Cloud KMS key must be in the same region as the resource. It must have the format `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
  - `annotationLabels` object — Labels to assign to annotations generated by this DataLabelingJob. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable.
  - `displayName` string — Required. The user-defined name of the DataLabelingJob. The name can be up to 128 characters long and can consist of any UTF-8 characters. Display name of a DataLabelingJob.
  - `instructionUri` string — Required. The Google Cloud Storage location of the instruction pdf. This pdf is shared with labelers, and provides detailed description on how to label DataItems in Datasets.
  - `labelingProgress` integer — Output only. Current labeling job progress percentage scaled in interval [0, 100], indicating the percentage of DataItems that has been finished.
  - `specialistPools` string[] — The SpecialistPools' resource names associated with this job.
  - `name` string — Output only. Resource name of the DataLabelingJob.
  - `labelerCount` integer — Required. Number of labelers to work on each DataItem.
  - `error` GoogleRpcStatus — The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
    - `code` integer — The status code, which should be an enum value of google.rpc.Code.
    - `message` string — A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    - `details` object[] — A list of messages that carry the error details. There is a common set of message types for APIs to use.
  - `datasets` string[] — Required. Dataset resource names. Right now we only support labeling from a single Dataset. Format: `projects/{project}/locations/{location}/datasets/{dataset}`
  - `labels` object — The labels with user-defined metadata to organize your DataLabelingJobs. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable. Following system labels exist for each DataLabelingJob: * "aiplatform.googleapis.com/schema": output only, its value is the inputs_schema's title.
  - `updateTime` string, google-datetime — Output only. Timestamp when this DataLabelingJob was updated most recently.
  - `currentSpend` GoogleTypeMoney — Represents an amount of money with its currency type.
    - `nanos` integer — Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
    - `units` string, int64 — The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
    - `currencyCode` string — The three-letter currency code defined in ISO 4217.
  - `state` 'JOB_STATE_UNSPECIFIED' | 'JOB_STATE_QUEUED' | 'JOB_STATE_PENDING' | 'JOB_STATE_RUNNING' | 'JOB_STATE_SUCCEEDED' | 'JOB_STATE_FAILED' | 'JOB_STATE_CANCELLING' | 'JOB_STATE_CANCELLED' | 'JOB_STATE_PAUSED' | 'JOB_STATE_EXPIRED' | 'JOB_STATE_UPDATING' | 'JOB_STATE_PARTIALLY_SUCCEEDED' — Output only. The detailed state of the job.
  - `activeLearningConfig` GoogleCloudAiplatformV1ActiveLearningConfig — Parameters that configure the active learning pipeline. Active learning will label the data incrementally by several iterations. For every iteration, it will select a batch of data based on the sampling strategy.
    - `sampleConfig` GoogleCloudAiplatformV1SampleConfig — Active learning data sampling config. For every active learning labeling iteration, it will select a batch of data based on the sampling strategy.
      - `initialBatchSamplePercentage` integer — The percentage of data needed to be labeled in the first batch.
      - `followingBatchSamplePercentage` integer — The percentage of data needed to be labeled in each following batch (except the first batch).
      - `sampleStrategy` 'SAMPLE_STRATEGY_UNSPECIFIED' | 'UNCERTAINTY' — Field to choose sampling strategy. Sampling strategy will decide which data should be selected for human labeling in every batch.
    - `maxDataItemPercentage` integer — Max percent of total DataItems for human labeling.
    - `trainingConfig` GoogleCloudAiplatformV1TrainingConfig — CMLE training config. For every active learning labeling iteration, system will train a machine learning model on CMLE. The trained model will be used by data sampling algorithm to select DataItems.
      - `timeoutTrainingMilliHours` string, int64 — The timeout hours for the CMLE training job, expressed in milli hours i.e. 1,000 value in this field means 1 hour.
    - `maxDataItemCount` string, int64 — Max number of human labeled DataItems.
  - `inputs` unknown
  - `createTime` string, google-datetime — Output only. Timestamp when this DataLabelingJob was created.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/aiplatform.md) · [All operations](https://skmtc.net/google/apis/aiplatform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/aiplatform/versions/b608d71b91f0/schema)
