Update login link

Prev Next
Patch
/ds/login/link/{link_id}

Update a login link. You can only update link details that do not affect any ongoing authentication attempts.

Security
HTTP
Type bearer

Bearer token authentication. Include the token in the Authorization header: Authorization: Bearer <your-token>

Path parameters
link_id
stringRequired

Supermetrics login link ID

Body parameters
object
description
string

Internal description for the link. Not shown during the authentication attempt.

Responses
200

Login link updated successfully

Expand All
object
meta
object
request_id
string

API request ID

data
object (LoginLink)
link_id
string

Supermetrics login link ID

status_code
string

Current link status

Valid values[ "OPEN", "CLOSED", "EXPIRED" ]
description
string

Internal link description. Not shown during authentication attempt.

ds_id
string

Data source ID

ds_name
string

Data source name

require_username
string

Data source username that must be used in authentication attempt

redirect_url
string

Custom URL to redirect to after successful authentication, if any

redirect_verifier
string

Internal verifier string that is passed to redirect_url

user_id
string

Supermetrics user ID of the user who will be marked as the primary owner of the login credentials

user_email
string

Supermetrics user email

login_url
string

Full URL to initiate an authentication attempt. Can be accessed multiple times while link is open.

created_time
string (date-time)

ISO 8601 datetime for when login link was created

expiry_time
string (date-time)

ISO 8601 datetime for when login link will expire

login_id
string | null

Supermetrics login ID for a successful authentication

login_time
string (date-time) | null

ISO 8601 datetime for when authentication occurred

login_username
string | null

Username used to authenticate to data source

404

Login Link Not Found

object
error
string
Valid values[ "LINK_NOT_FOUND" ]
message
string
500

Login Link Update Failed

object
error
string
Valid values[ "LINK_UPDATE_FAILED" ]
message
string