PUT
/
organisations
/
{organisationId}
/
credentials
/
{credentialId}
curl --request PUT \
  --url https://platform.versori.com/api/switchboard/v1alpha1/organisations/{organisationId}/credentials/{credentialId} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "data": {},
  "type": "<string>",
  "redactFields": [
    "<string>"
  ],
  "expiresAt": "2023-11-07T05:31:56Z"
}'
{
  "id": "<string>",
  "organisationID": "<any>",
  "name": "<string>",
  "data": {},
  "type": "<string>",
  "redactFields": [
    "<string>"
  ],
  "expiresAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Path Parameters

organisationId
string
required
credentialId
string
required

Body

application/json

UpdateCredentialRequest is the request definition for updating an existing credential.

UpdateCredentialRequestBody is the request body to update a credential. The ID and OrganisationID fields are taken from the URL path.

Response

200
application/json

UpdateCredentialResponse is the response containing the updated credential.

Credential holds sensitive data not owned by Versori. Users can create credentials so that Versori systems can authenticate to external services on behalf of the user.