CorebanqCorebanq Developer Docs
Usersv1Credentials

Update Credential

Update existing credential

PUT/v1/users/credentials/{cred_id}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

cred_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PUT "https://example.com/v1/users/credentials/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
  "credential_type": "email",
  "credential_value": "string",
  "active": true,
  "verified": true,
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}
{
  "code": "common.user_not_found",
  "message": "User not found"
}