Skip to main content
PATCH
/
connections
/
{connectionId}
Rename a connection
curl --request PATCH \
  --url https://api.onecli.sh/v1/connections/{connectionId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>"
}
'
{
  "id": "<string>",
  "provider": "<string>",
  "status": "<string>",
  "label": "<string>"
}

Authorizations

Authorization
string
header
required

API key obtained from the dashboard or GET /user/api-key

Path Parameters

connectionId
string
required

Body

application/json
label
string
required
Minimum string length: 1

Response

Connection renamed

id
string
provider
string
status
string
label
string | null