Update a credential configuration
Last update: Fri Sep 29 2023 00:00:00 GMT+0000 (Coordinated Universal Time)
API endpoint: platform.adobe.io/data/core/activation/authoring/credentials
This page exemplifies the API request and payload that you can use to update an existing credential configuration, using the /authoring/credentials
API endpoint.
When to use the /credentials
API endpoint when-to-use
In most cases, you do not need to use the /credentials
API endpoint. Instead, you can configure the authentication information for your destination via the customerAuthenticationConfigurations
parameters of the /destinations
endpoint.
Use this API endpoint to create a credential configuration only if there is a global authentication system between Adobe and your destination platform, and the Platform customer does not need to provide any authentication credentials to connect to your destination. In this case, you must create a credential configuration using the /credentials
API endpoint.
When using a global authentication system, you must set "authenticationRule":"PLATFORM_AUTHENTICATION"
in the destination delivery configuration, when creating a new destination configuration.
All parameter names and values supported by Destination SDK are case sensitive. To avoid case sensitivity errors, please use the parameters names and values exactly as shown in the documentation.
Getting started with credentials API operations get-started
Before continuing, please review the getting started guide for important information that you need to know in order to successfully make calls to the API, including how to obtain the required destination authoring permission and required headers.
Update a credential configuration update
You can update an existing credential configuration by making a PUT
request to the /authoring/credentials
endpoint with the updated payload.
To obtain an existing credential configuration and its corresponding {INSTANCE_ID}
, see the article about retrieving a credential configuration.
API format
PUT /authoring/credentials/{INSTANCE_ID}
{INSTANCE_ID}
The ID of the credential configuration that you want to update. To obtain an existing credential configuration and its corresponding
{INSTANCE_ID}
, see
Retrieve a credential configuration.
The following requests update existing credential configurations, defined by the parameters provided in the payload.
Select each tab below to view the corresponding payload.
Basic
Update a basic credential configuration
accordion |
Request |
code language-shell |
curl -X PUT https://platform.adobe.io/data/core/activation/authoring/credentials/{INSTANCE_ID} \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'Content-Type: application/json' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-d '
{
"basicAuthentication":{
"url":"string",
"username":"string",
"password":"string"
}
}
|
table 0-row-3 1-row-3 2-row-3 3-row-3 layout-auto |
|
|
Parameter |
Type |
Description |
url |
String |
URL of authorization provider |
username |
String |
Credentials configuration login username |
password |
String |
Credentials configuration login password |
|
accordion |
Response |
A successful response returns HTTP status 200 with the details of your updated credential configuration. |
Amazon S3
Update an Amazon S3 credential configuration
accordion |
Request |
code language-shell |
curl -X PUT https://platform.adobe.io/data/core/activation/authoring/credentials/{INSTANCE_ID} \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'Content-Type: application/json' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-d '
{
"s3Authentication":{
"accessId":"string",
"secretKey":"string"
}
}
|
table 0-row-3 1-row-3 2-row-3 layout-auto |
|
|
Parameter |
Type |
Description |
accessId |
String |
Amazon S3 access ID |
secretKey |
String |
Amazon S3 secret key |
|
accordion |
Response |
A successful response returns HTTP status 200 with the details of your updated credential configuration. |
SSH
Update an SSH credential configuration
accordion |
Request |
code language-shell |
curl -X PUT https://platform.adobe.io/data/core/activation/authoring/credentials/{INSTANCE_ID} \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'Content-Type: application/json' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-d '
{
"sshAuthentication":{
"username":"string",
"sshKey":"string"
}
}
|
table 0-row-3 1-row-3 2-row-3 layout-auto |
|
|
Parameter |
Type |
Description |
username |
String |
Credentials configuration login username |
sshKey |
String |
SSH key for SFTP with SSH authentication |
|
accordion |
Response |
A successful response returns HTTP status 200 with the details of your updated credential configuration. |
Azure Data Lake Storage
Update an Azure Data Lake Storage credential configuration
accordion |
Request |
code language-shell |
curl -X PUT https://platform.adobe.io/data/core/activation/authoring/credentials/{INSTANCE_ID} \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'Content-Type: application/json' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-d '
{
"azureAuthentication":{
"url":"string",
"tenant":"string",
"servicePrincipalId":"string",
"servicePrincipalKey":"string"
}
}
|
table 0-row-3 1-row-3 2-row-3 3-row-3 4-row-3 layout-auto |
|
|
Parameter |
Type |
Description |
url |
String |
URL of authorization provider |
tenant |
String |
Azure Data Lake Storage tenant |
servicePrincipalId |
String |
Azure Service Principal ID for Azure Data Lake Storage |
servicePrincipalKey |
String |
Azure Service Principal Key for Azure Data Lake Storage |
|
accordion |
Response |
A successful response returns HTTP status 200 with the details of your updated credential configuration. |
Azure Blob Storage
Update an Azure Blob credential configuration
accordion |
Request |
code language-shell |
curl -X PUT https://platform.adobe.io/data/core/activation/authoring/credentials/{INSTANCE_ID} \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'Content-Type: application/json' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-d '
{
"azureConnectionStringAuthentication":{
"connectionString":"string"
}
}
|
table 0-row-3 1-row-3 layout-auto |
|
|
Parameter |
Type |
Description |
connectionString |
String |
Azure Blob Storage connection string |
|
accordion |
Response |
A successful response returns HTTP status 200 with the details of your updated credential configuration. |
API error handling error-handling
Destination SDK API endpoints follow the general Experience Platform API error message principles. Refer to API status codes and request header errors in the Platform troubleshooting guide.
Next steps next-steps
After reading this document, you now know how to update a credential configuration using the /authoring/credentials
API endpoint. Read how to use Destination SDK to configure your destination to understand where this step fits into the process of configuring your destination.