Skip to main content
PATCH
/
consumers
/
{consumer_id}
/
connections
/
{connectionid}
Update an existing connection
curl --request PATCH \
  --url https://api.chift.eu/consumers/{consumer_id}/connections/{connectionid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "redirect": true,
  "name": "<string>",
  "credentials": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ]
}'
{
"url": "<string>"
}

Authorizations

Authorization
string
header
required

This access token needs to be included in each of your request to the Chift API.

Path Parameters

consumer_id
string<uuid>
required
connectionid
string<uuid>
required

Body

application/json
redirect
boolean | null
default:false

Indicates whether you want to return to the consumer's redirectUrl after update (true) or whether you want to return on the connection page (false)

name
string | null

Can be used to update the name of an existing connection

credentials
CredentialItem · object[] | null

Can be used to update the credentials of an existing connection. Please use the getIntegrations route to see the available credentials for each integration

Response

Successful Response

url
string
required
I