Method: projects.annotationSpecSets.create

Creates an annotation spec set by providing a set of labels.

HTTP request

POST https://datalabeling.googleapis.com/v1beta1/{parent=projects/*}/annotationSpecSets

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

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

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

  • datalabeling.annotationspecsets.create

Request body

The request body contains data with the following structure:

JSON representation
{
  "annotationSpecSet": {
    object (AnnotationSpecSet)
  }
}
Fields
annotationSpecSet

object (AnnotationSpecSet)

Required. Annotation spec set to create. Annotation specs must be included. Only one annotation spec will be accepted for annotation specs with same displayName.

Response body

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

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.