approvals

POST /files/{fileId}/approvals/{approvalId}:reassign

Changed on

Reassigns the reviewers on an approval. For more information, see Manage approvals. Adds or replaces reviewers in the ReviewerResponse of the approval. This can be called by any user with the writer permission on the file while the approval Status is IN_PROGRESS and the Response for the reviewer being reassigned is NO_RESPONSE. A user with the reader permission can only reassign an approval that's assigned to themselves. Removing a reviewer isn't allowed.

Request

  • Base URL
    https://www.googleapis.com/drive/v3
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/drive
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/drive
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/drive.file
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/drive.file
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/drive.metadata
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/drive.metadata

Path parameters

fileIdstring required

Required. The ID of the file that the approval is on.

approvalIdstring required

Required. The ID of the approval to reassign.

Request body

messagestring

Optional. A message to send to the new reviewers. This message is included in notifications for the action and in the approval activity log.

Response

Successful response

approvalIdstring

The approval ID.

approvedRevisionIdstring

The revision ID of the file when the approval completed successfully. This is only set when the approval status is APPROVED.

completeTimestring google-datetime

The time the approval was completed.

createTimestring google-datetime

The time the approval was created.

dueTimestring google-datetime

The time that the approval is due.

fileContentChangeBehavior'FILE_CONTENT_CHANGE_BEHAVIOR_UNSPECIFIED' | 'RESET_APPROVAL' | 'NO_APPROVAL_ACTION'

The behavior of the approval when the file content changes.

kindstring

This is always drive#approval.

modifyTimestring google-datetime

The most recent time the approval was modified.

status'STATUS_UNSPECIFIED' | 'IN_PROGRESS' | 'APPROVED' | 'CANCELLED' | 'DECLINED'

The status of the approval at the time this resource was requested.

targetFileIdstring

Target file id of the approval.

Changes

    • info

      the security scope https://www.googleapis.com/auth/drive was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/drive was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/drive.metadata was removed from the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/drive.metadata was removed from the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/drive was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/drive was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/drive.metadata was removed from the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/drive.metadata was removed from the endpoint's security scheme Oauth2c