This legacy version of AI Platform Data Labeling is deprecated and will no longer be available on Google Cloud after January 23, 2024. All the functionality of legacy AI Platform Data Labeling and new features are available on the Vertex AI platform. See Migrate to Vertex AI to learn how to migrate your resources.

Method: projects.instructions.create

Creates an instruction for how data should be labeled.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Required. Instruction resource parent, format: projects/{project_id}

Authorization requires the following Google IAM permission on the specified resource parent:

  • datalabeling.instructions.create

Request body

The request body contains data with the following structure:

JSON representation
  "instruction": {
    object (Instruction)

object (Instruction)

Required. Instruction of how to perform the labeling task.

Response body

If successful, the response body contains a newly created instance of Operation.

Authorization Scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.