Method: legacyPublisher.upload

Full name: projects.locations.instances.legacyPublisher.upload

Legacy endpoint for updating a task result.

HTTP request


Path parameters

Parameters
instance

string

Required. The instance of the legacy publisher. Format: projects/{project}/locations/{location}/instances/{instance}/legacyPublisher

Request body

The request body contains data with the following structure:

JSON representation
{
  "media": {
    object (Media)
  },
  "mediaInfo": {
    object (MediaRequestInfo)
  },
  "task_id": string
}
Fields
media

object (Media)

Required. The media object to be uploaded containing the task result.

mediaInfo

object (MediaRequestInfo)

Required. The media request info.

task_id

string (int64 format)

Optional. The task id to update the result for.

Response body

Response message for legacyPublisher.upload.

If successful, the response body contains data with the following structure:

JSON representation
{
  "mediaInfo": {
    object (MediaResponseInfo)
  }
}
Fields
mediaInfo

object (MediaResponseInfo)

Required. Scotty properties (won't be visible in exposed API)

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.