Skip to content

Validate credential

POST
/api/v1/projects/{projectId}/credentials/validate
curl --request POST \
--url https://localhost:10001/api/v1/projects/1/credentials/validate \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "createdAt": "example", "createdBy": "example", "credentials": {}, "description": "example", "id": 1, "isActive": true, "lastUsedAt": "example", "metadata": {}, "name": "example", "projectId": 1, "provider": "example", "type": "AWS_STATIC", "updatedAt": "example" }'

Validate the structure and content of a credential

projectId
required
integer

Project ID

Credential

Media type application/json
object
createdAt
string
createdBy
string
credentials
object
description
string
id
integer
isActive
boolean
lastUsedAt
string
metadata
object
name
string
projectId
integer
provider
string
type
string
Allowed values: AWS_STATIC AWS_ROLE GCP_SERVICE_ACCOUNT AZURE_SP BASIC_AUTH BEARER_TOKEN API_KEY SOAP_WSSE
updatedAt
string

Credential is valid

Media type application/json

Bad request - Invalid request body or credential

Media type application/json
object
key
additional properties
string
Example generated
{
"additionalProperty": "example"
}