Update Credential

Update Credential

Update an existing Credential Instance

Request
URI
PUT
https://{api_host}/suite-api/api/credentials
COPY
Request Body

The Credential Instance information to update

credential of type(s) application/json
Required

Show optional properties

{
    "name": "string",
    "adapterKindKey": "string",
    "credentialKindKey": "string"
}
"{\n  \"id\" : \"58cfbedf-352f-4e38-8f15-856f8d9880fd\",\n  \"name\" : \"My VC Credential\",\n  \"adapterKindKey\" : \"VMWARE\",\n  \"credentialKindKey\" : \"PRINCIPALCREDENTIAL\",\n  \"fields\" : [ {\n    \"name\" : \"USER\",\n    \"value\" : \"root\"\n  }, {\n    \"name\" : \"PASSWORD\"\n  } ]\n}"
string As uuid As uuid
id
Optional

Credential Instance identifier.
This should be null for credential instance creation requests and must have a value for all other requests.

string
name
Required
Constraints: minLength: 3 maxLength: 200

The name of the Credential

string
adapterKindKey
Required

The Adapter Kind key of the Credential

string
credentialKindKey
Required

The credential kind of the credential

array of object
fields
Optional

Collection of name,value pairs that capture the credential specific data

boolean
editable
Optional

Is credential editable or not

Authentication
This operation uses the following authentication methods.
Responses
200

The Updated Credential Instance

Returns credential of type(s) application/json
"{\n  \"id\" : \"2d9ccbe9-6644-40e5-ad4e-be60fd390b85\",\n  \"name\" : \"My VC Credential\",\n  \"adapterKindKey\" : \"VMWARE\",\n  \"credentialKindKey\" : \"PRINCIPALCREDENTIAL\",\n  \"fields\" : [ {\n    \"name\" : \"USER\",\n    \"value\" : \"root\"\n  }, {\n    \"name\" : \"PASSWORD\"\n  } ]\n}"
string As uuid As uuid
id
Optional

Credential Instance identifier.
This should be null for credential instance creation requests and must have a value for all other requests.

string
name
Required
Constraints: minLength: 3 maxLength: 200

The name of the Credential

string
adapterKindKey
Required

The Adapter Kind key of the Credential

string
credentialKindKey
Required

The credential kind of the credential

array of object
fields
Optional

Collection of name,value pairs that capture the credential specific data

boolean
editable
Optional

Is credential editable or not


400

The operations is not allowed for the credential

Operation doesn't return any data structure

404

The Credential Instance does not exist

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"adapterKindKey:"string","credentialKindKey:"string","name:"string"}' https://{api_host}/suite-api/api/credentials