PUT
/
connections
/
{projectId}
/
{connectionId}
curl --request PUT \
--url https://partner.peaka.studio/api/v1/connections/{projectId}/{connectionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "exampleHubspotConnection",
"type": "hubspot",
"credential": {
"clientId": "15d6b8c5-48ea-4955-8ce5-d04bb9adad25",
"clientSecret": "64d70b56-ae19-4fee-9fa2-3e9113bcb202",
"refreshToken": "eu1-eae3-1af4-583d-91d4-f6414699feea"
}
}'
{
  "id": "<string>",
  "name": "<string>",
  "type": "<string>",
  "url": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

projectId
string
required

ID of the project

connectionId
string
required

ID of the connection

Body

application/json

Connection Request

The body is of type object.

Response

200 - */*

OK

The response is of type object.