ServicesConnectionsHTTP APIUnknown

Update_credential

PUT
/api/connections/{connection_id}/credential

Replace the entire credential with one for the same provider. Include every required secret.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Path Parameters

connection_id*string
Formatuuid

Request Body

application/json
  1. body
credential*||||||||||

A complete replacement credential, including every required secret. OIDC credentials contain no stored secret.

Response Body

Success

application/json
  1. response
connection*
curl -X PUT 'https://api.spiraldb.dev/api/connections/497f6eca-6276-4993-bfeb-53cbbbba6f08/credential' \  -H 'Content-Type: application/json' \  -d '{  "credential": {    "awsAccessKey": {      "accessKeyId": "string",      "secretAccessKey": "string"    },    "type": "awsAccessKey"  }}'
{  "connection": {    "allowedAccess": "read",    "connectionId": "84b500d7-71c8-4b1f-adf4-f1eb0000973d",    "createdAtMicros": "string",    "createdBy": "string",    "credential": {      "awsAccessKey": {        "accessKeyId": "string",        "region": "string"      },      "type": "awsAccessKey"    },    "credentialUpdatedAtMicros": "string",    "description": "string",    "dropped": {      "droppedAtMicros": "string",      "droppedBy": "string"    },    "identity": {      "audience": "string",      "issuer": "string",      "subject": "string",      "trustPolicy": "string"    },    "projectId": "string",    "uri": "string"  }}