- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- ApprovalLinkStatusValue
- ApprovalLinkActionTypeValue
- Try it!
Full name: projects.locations.instances.legacyPlaybooks.legacyApplyApprovalLink
legacyPlaybooks.legacyApplyApprovalLink applies an approval link to a workflow.
HTTP request
Path parameters
Parameters | |
---|---|
instance |
Required. The instance to apply the approval link for. Format: projects/{project}/locations/{location}/instances/{instance} |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "encryptedData": string, "hashedEncryptedData": string, "isApproved": boolean } |
Fields | |
---|---|
encryptedData |
Required. The encrypted data. |
hashedEncryptedData |
Required. The hashed encrypted data. |
isApproved |
Optional. Indicates if the link is approved. |
Response body
LegacyPlaybookApprovalLinkResult represents the result of an approval link.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "status": enum ( |
Fields | |
---|---|
status |
Required. The status of the approval link. |
caseId |
Required. The case id. |
actionName |
Required. The action name. |
approvalLinkActionType |
Required. The type of the approval link action. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
ApprovalLinkStatusValue
ApprovalLinkStatusValue represents the status of an approval link.
Enums | |
---|---|
APPROVAL_LINK_STATUS_VALUE_UNSPECIFIED |
The status is unspecified. |
SUCCESS |
The status is success. |
STEP_NOT_FOUND |
Step not found status. |
STEP_ALREADY_EXECUTED |
Step already executed status. |
STEP_TIME_TO_RESPONSE_EXPIRED |
Step time to response expired status. |
STEP_NOT_PENDING |
Step not pending status. |
CLICK_REQUIRED |
Click required status. |
ApprovalLinkActionTypeValue
ApprovalLinkActionTypeValue represents the type of an approval link action.
Enums | |
---|---|
APPROVAL_LINK_ACTION_TYPE_VALUE_UNSPECIFIED |
The action type is unspecified. |
APPROVE |
The action type is approve. |
DECLINE |
The action type is decline. |
MULTI_CHOICE_ANSWER |
The action type is multi choice answer. |