Skip to main content
PUT
/
api
/
servers
/
{server_id}
Update MCP server
curl --request PUT \
  --url https://{organization_id}.platform.barndoor.ai/api/servers/{server_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My Salesforce Instance",
  "slug": "<string>",
  "client_id": "<string>",
  "client_secret": "<string>",
  "meta": {}
}
'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "Salesforce Production",
  "slug": "salesforce",
  "connection_status": "connected",
  "provider": "salesforce",
  "url": "https://api.salesforce.com/mcp"
}

Authorizations

Authorization
string
header
required

JWT token obtained through Auth0 OAuth 2.0 flow with PKCE.

The token should be included in the Authorization header: Authorization: Bearer <your-jwt-token>

Use the Barndoor SDK's loginInteractive() function to obtain tokens automatically.

Path Parameters

server_id
string<uuid>
required

Server UUID

Body

application/json
name
string

Human-readable name for the server

Example:

"My Salesforce Instance"

slug
string

URL-friendly identifier

client_id
string

OAuth client ID (provide actual value, not obfuscated)

client_secret
string

OAuth client secret (provide actual value, not obfuscated)

meta
object

Additional metadata for the server

Response

Server updated successfully

id
string<uuid>
required

Unique identifier for the server

Example:

"123e4567-e89b-12d3-a456-426614174000"

name
string
required

Human-readable name of the server

Example:

"Salesforce Production"

slug
string
required

URL-friendly identifier used in API paths

Example:

"salesforce"

connection_status
enum<string>
required

Current connection status:

  • available: Server is available but not connected
  • pending: Connection is in progress or credentials missing
  • connected: Server is connected and ready to use
  • error: Connection failed or encountered an error
Available options:
available,
pending,
connected,
error
Example:

"connected"

provider
string | null

Third-party provider name

Example:

"salesforce"

url
string<uri> | null

MCP base URL from the server directory

Example:

"https://api.salesforce.com/mcp"