---
raw: true
search:
  tags:
    - Spaces
    - PUT
seo:
  description: >-
    Binds a live capsule role to an eligible connection… Reference for the PUT
    /v1/spaces/{spaceRef}/connectors/{role} endpoint in the Spacefast Partner
    API.
sidebar:
  label: Bind a connector role
  badge: PUT
title: Bind a connector role
type: openapi-operation
---
Binds a live capsule role to an eligible connection owned by the team or caller.

`PUT /v1/spaces/{spaceRef}/connectors/{role}`

**Request body** (`application/json`, required)

- `connectionId` (string, required)

Request body example:

```json
{
  "connectionId": "string"
}
```

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "role": "string",
    "as": "team",
    "connector": "string",
    "connection": {
      "id": "string",
      "connector": "string",
      "owner": "team",
      "serving": false,
      "displayName": "string",
      "description": "string",
      "status": "pending_authorization",
      "identityLabel": "string",
      "credentialConfigured": true,
      "authMethod": "string",
      "scopes": [
        "string"
      ],
      "scopesKnown": true,
      "isDefault": true,
      "toolCount": -9007199254740991,
      "createdBy": "string",
      "lastCheckedAt": "2019-08-24T14:15:22Z",
      "revokedAt": "2019-08-24T14:15:22Z",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    },
    "visitorConnections": {
      "count": 0
    },
    "boundByUserId": "string",
    "createdAt": "2019-08-24T14:15:22Z"
  }
}
```
