declineInvitation


SoftLayer_User_Customer_OpenIdConnect_TrustedProfile::declineInvitation

Sets a customer invitation as declined.

Description

Declines an invitation to link an OpenIdConnect identity to a SoftLayer (Atlas) identity and account. Note that this uses a registration code that is likely a one-time-use-only token, so if an invitation has already been processed (accepted or previously declined) it will not be possible to process it a second time.

Parameters

Name Type Description
providerType string A value representing the OpenID Connect provider type. Currently “IBMid” is the only supported provider.
registrationCode string The registration code or token received from the system where the user identity

Required Headers

Optional Headers

  • None

Return Values

  • void

Error Handling

  • Throw the exception “Failed to decline registration.” if the endpoint failed to decline the invitation.
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [string, string]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_User_Customer_OpenIdConnect_TrustedProfile/declineInvitation'