Update Configuration Template
1 min
PUT
https://api.upstartcommerce.com/v1/tenants/cfg/templates/{templateId}
templateIdstringUnique identifier for a given template.
acceptstringGenerated from available response content types
x-upstart-tenantstringTenant identifier associated with the site this call is for.
bodyobject<p>Request payload for updating an existing configuration template. Use this to evolve schemas, add/modify fields, change validation rules, or update template metadata. All fields are required - provide current values for fields that should not change. Template version is automatically incremented.</p>
200<p>Success-template updated successfully. Version automatically incremented.</p>
400The request contained information that the server was unable to process. Appropriate errors are provided in the response body.
401The provided credentials were not valid for this endpoint. It may be that they are expired or that the user's roles are insufficient.
404The requested resource was not found in the NoChannel system.
422<p>The request was well-formed but contains semantic errors or violates business rules that prevent processing.</p>
500<p>An unexpected internal server error occurred. The request may be retried, and if the problem persists, contact support with the traceId from the error response.</p>
curl --request PUT \
--url https://api.upstartcommerce.com/v1/tenants/cfg/templates/{templateId} \
--header 'accept: text/plain' \
--header 'content-type: application/json' \
--header 'x-upstart-tenant: string' \
--data '{
"name": "Cybersource Payment Gateway Configuration v2",
"propertiesDec": "{\"type\":\"object\",\"properties\":{\"merchantId\":{\"type\":\"string\",\"description\":\"Merchant identifier from Cybersource\",\"pattern\":\"^[a-zA-Z0-9_-]+$\"},\"apiKey\":{\"type\":\"string\",\"description\":\"API key for authentication\",\"format\":\"password\",\"minLength\":32},\"apiSecret\":{\"type\":\"string\",\"description\":\"NEW FIELD: API secret for enhanced security\",\"format\":\"password\",\"minLength\":32},\"apiUrl\":{\"type\":\"string\",\"format\":\"uri\",\"default\":\"https://api.cybersource.com\",\"description\":\"Cybersource API base URL\"},\"currency\":{\"type\":\"string\",\"enum\":[\"USD\",\"EUR\",\"GBP\",\"CAD\"],\"default\":\"USD\",\"description\":\"Default currency\"},\"testMode\":{\"type\":\"boolean\",\"default\":false},\"webhookUrl\":{\"type\":\"string\",\"format\":\"uri\",\"description\":\"NEW FIELD: Optional webhook for payment notifications\"}},\"required\":[\"merchantId\",\"apiKey\"]}",
"enabled": true,
"accessControl": {
"read": true,
"modify": false
}
}'