declineHandshake
Declines a handshake request. This sets the handshake state to DECLINED
and effectively deactivates the request.
This operation can be called only from the account that received the handshake. The originator of the handshake can use CancelHandshake instead. The originator can't reactivate a declined request, but can reinitiate the process with a new handshake request.
After you decline a handshake, it continues to appear in the results of relevant APIs for only 30 days. After that, it's deleted.
Samples
fun main() {
//sampleStart
// The following example shows Susan declining an invitation to join Bill s organization. The
// DeclineHandshake operation returns a handshake object, showing that the state is now DECLINED
val resp = organizationsClient.declineHandshake {
handshakeId = "h-examplehandshakeid111"
}
//sampleEnd
}