Skip to main content
PATCH
/
users
/
{username}
/
idp-link
Enable or disable a federated identity link for a user.
curl --request PATCH \
  --url https://test.didxtech.com/consumer-onboarding/api/users/{username}/idp-link \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": true
}
'
{
  "data": {
    "username": "johndoe",
    "idpAlias": "acme-idp",
    "linked": true
  },
  "links": {
    "self": "<string>",
    "first": "<string>",
    "last": "<string>",
    "prev": "<string>",
    "next": "<string>",
    "related": "<string>"
  },
  "meta": {},
  "errors": [
    {
      "detail": "<string>",
      "id": "<string>",
      "status": "<string>",
      "code": "<string>",
      "title": "<string>",
      "source": {
        "pointer": "<string>",
        "parameter": "<string>"
      },
      "meta": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

username
string
required

Body

application/json

Enable or disable a federated identity link for a user.

enabled
boolean
required

Response

IDP link updated successfully.

data
object
required
Example:
{
"username": "johndoe",
"idpAlias": "acme-idp",
"linked": true
}
meta
object
errors
object[]