drive.approvals.decline
Declines a Drive approval for a file, records the reviewer's DECLINED response, and completes the approval with status DECLINED.
Instructions
Declines an approval. For more information, see Manage approvals. This is used to update the ReviewerResponse of the requesting user with a Response of DECLINED. This also completes the approval and sets the approval Status to DECLINED [HTTP POST] — creates or triggers a change; refused under --readonly safety profiles. Returns the API's response resource as JSON — request body is a JSON DeclineApprovalRequest object accepting message; pass it via params or whole via body_file Siblings over the same resource: approve, cancel, comment, get, list, reassign, start.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| fileId | Yes | [URL path segment] Required. The ID of the file that the approval is on. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. The body is a JSON DeclineApprovalRequest object. | |
| approvalId | Yes | [URL path segment] Required. The ID of the approval to decline. | |
| request_body | No | Request body of type DeclineApprovalRequest: pass it via `params` (merged into the built body) or whole via `body_file`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| status | No | ||
| dueTime | No | ||
| initiator | No | ||
| approvalId | No | ||
| createTime | No | ||
| modifyTime | No | ||
| completeTime | No | ||
| targetFileId | No | ||
| reviewerResponses | No | ||
| fileContentChangeBehavior | No |