declineHandshake

Declines a Handshake.

Only the account that receives a handshake can call this operation. The sender of the handshake can use CancelHandshake to cancel if the handshake hasn't yet been responded to.

You can view canceled handshakes in API responses for 30 days before they are 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
}