Create_connection
POST
Create a Connection scoped to one Project.
bearerAuthheader
AuthorizationBearer <token>application/json- body
credential*||||||||||A complete replacement credential, including every required secret. OIDC credentials contain no stored secret.
description?string|nullprojectId*stringuri*stringSuccess
application/json- response
connection*versionId*stringFormat
uuidcurl -X POST 'https://api.spiraldb.dev/api/connections' \ -H 'Content-Type: application/json' \ -d '{ "credential": { "awsAccessKey": { "accessKeyId": "string", "secretAccessKey": "string" }, "type": "awsAccessKey" }, "projectId": "string", "uri": "string"}'{ "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" }, "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7"}