Method: transferJobs.patch

Updates a transfer job. Updating a job's transfer spec does not affect transfer operations that are running already. Updating the scheduling of a job is not allowed.

HTTP request


(This URI uses URI Template syntax.)

Path parameters

Parameter name Type Description
jobName string The name of job to update. Required.

Request body

The request body contains data with the following structure:

JSON representation
  "projectId": string,
  "transferJob": {
  "updateTransferJobFieldMask": string,
Field name Type Description
projectId string The ID of the Google Cloud Platform Console project that owns the job. Required.
transferJob object(TransferJob) The job to update. Required.
updateTransferJobFieldMask string
(FieldMask format)

The field mask of the fields in transferJob that are to be updated in this request. Fields in transferJob that can be updated are: description, transferSpec, and status. To update the transferSpec of the job, a complete transfer specification has to be provided. An incomplete specification which misses any required fields will be rejected with the error INVALID_ARGUMENT.

A comma-separated list of fully qualified names of fields. Example: "transferSpec,description".

Response body

If successful, the response body contains an instance of TransferJob.


Requires the following OAuth scope:


For more information, see the Auth Guide.

Send feedback about...

Cloud Storage Documentation