Skip to content
Docs

Change a connection

PATCH
/api/workspaces/{ws}/connections/{id}

Rename it, or replace some of its values. Secrets you leave out stay as they are. A new key is checked with the tool before it replaces the old one, as when connecting; a key that works clears needs_reconnect.

Authorization

session
cookiebetter-auth.session_token<token>

Set by POST /api/auth/sign-in/email.

Path Parameters

ws*string

The workspace id (from GET /api/me).

id*string

The id of what the path names: a hire, a connection, a skill, a shared file, a department, a position, a goal or an approval.

Request Body

application/json
  1. body
name?string
Length1 <= length <= 80
values?
skipCheck?boolean

Response Body

The connection.

application/json
Example Request
curl -X PATCH 'https://app.useroster.work/api/workspaces/string/connections/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "8d1e5b2c-0f3a-4e7b-9c6d-1a2b3c4d5e6f",  "kind": "tool",  "type": "github",  "name": "GitHub",  "settings": {},  "secretsSet": [    "token"  ],  "status": "connected",  "statusDetail": null,  "account": "acme-studio",  "checkedAt": "2026-11-03T09:00:00.000Z",  "createdAt": "2026-11-03T09:00:00.000Z"}