> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Stores (or rotates) this workspace's credentials for a live adapter…

> Connection saved; metadata only

### Path parameters

**name** `string` *required*

Live adapter name (shopify or netsuite)

### Request body

`AdapterConnectionInput`

**admin\_token** `string` *required*

Custom-app Admin API access token (`shpat_…`). Write-only.

**api\_version** `string,null`

Admin API version, `YYYY-MM`; defaults to the platform default.

**shop\_domain** `string` *required*

`&#123;shop&#125;.myshopify.com`.

### Response

`AdapterConnectionView`

**adapter** `string` *required*

**created\_at** `string (date-time)` *required*

**id** `string` *required*

**metadata** `object` *required*

Non-secret connection facts (shop domain, API version, account id, RESTlet host, auth type).

**updated\_at** `string (date-time)` *required*

**updated\_by** `string` *required*

### Status codes

| Code | Meaning |
| - | - |
| `200` | Connection saved; metadata only |
| `403` | Organization administrator required |
| `422` | Invalid input, non-HTTPS / non-vendor host, or storage not enabled |

### Using this contract

Read the [source OpenAPI document](/spec/edi.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

```bash cURL theme={null}
curl --silent --show-error --fail-with-body --request PUT \
  --url 'https://api.edi.stateset.com/v1/adapters/{name}/connection' \
  --header "Authorization: Bearer $EDI_API_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
  "admin_token": "YOUR_API_KEY",
  "api_version": "2026-08-01",
  "shop_domain": "string"
}'
```

```json 200 theme={null}
{
  "adapter": "string",
  "created_at": "2026-08-31T14:22:05Z",
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "metadata": {},
  "updated_at": "2026-08-31T14:22:05Z",
  "updated_by": "string"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.