Update_credential
PUT
Replace the entire credential with one for the same provider. Include every required secret.
bearerAuthheader
AuthorizationBearer <token>connection_id*stringFormat
uuidapplication/json- body
credential*||||||||||A complete replacement credential, including every required secret. OIDC credentials contain no stored secret.
Success
application/json- 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" }}