novinzodevelopers
Your store's APIApps referenceReseller connections

Rotate Connection Credentials

PUT/admin/connections/{connectionId}/credentials

Path Parameters

connectionId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

token?string
Length4 <= length <= 512
signingSecret?string
Length4 <= length <= 512
eventsSecret?|null

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/admin/connections/string/credentials" \  -H "Content-Type: application/json" \  -d '{}'
{  "connection": {    "id": "string",    "kind": "hamilton",    "name": "string",    "baseUrl": "string",    "status": "active",    "manifest": {      "protocolVersion": 1,      "capabilities": [        "catalog.read"      ],      "constraints": {        "maxBatch": 1,        "hwidResetMinIntervalMinutes": 1,        "trialMaxMinutes": 1,        "rateLimitPerMinute": 1      }    },    "products": [      {        "id": "string",        "name": "string",        "durations": {          "_tag": "Fixed",          "minutes": [            1          ]        },        "trialMaxMinutes": 1,        "status": {          "key": "string",          "label": "string",          "tone": "success",          "message": "string"        }      }    ],    "manifestFetchedAt": "string",    "lastError": "string",    "acceptsEvents": true,    "eventsPath": "string",    "createdAt": "string",    "updatedAt": "string"  },  "ok": true,  "error": "string"}