{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google/json-schema/google-google-apps-drive-labels-v2-publish-label-request-schema.json",
  "title": "GoogleAppsDriveLabelsV2PublishLabelRequest",
  "description": "Request to publish a label.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-labels-api-openapi.yml#/components/schemas/GoogleAppsDriveLabelsV2PublishLabelRequest",
  "properties": {
    "languageCode": {
      "description": "The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used.",
      "type": "string"
    },
    "useAdminAccess": {
      "description": "Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the Label before allowing access.",
      "type": "boolean"
    },
    "writeControl": {
      "$ref": "#/$defs/GoogleAppsDriveLabelsV2WriteControl",
      "description": "Provides control over how write requests are executed. Defaults to unset, which means last write wins."
    }
  },
  "type": "object",
  "$defs": {
    "GoogleAppsDriveLabelsV2WriteControl": {
      "description": "Provides control over how write requests are executed. When not specified, the last write wins.",
      "properties": {
        "requiredRevisionId": {
          "description": "The revision_id of the label that the write request will be applied to. If this is not the latest revision of the label, the request will not be processed and will return a 400 Bad Request error.",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}