Changing a Tenant Configuration by using Webservice
You can update a tenant configuration by using the following configuration webservice.
- Send a PUT request to the following URL to update a tenant configuration property:
http://xxxxx/TAFJConfiguration/resources/configuration/{tenant_Id}
Where,
tenant_Id - The configuration ID
- Provide the appropriate key value pair for the property that you want to modify.

To update the tenant configuration identified with tenant2, the temn.tafj.tenant.name property with value My second tenant, use the following PUT request:
curl --request PUT \ --url http://localhost:8080/TAFJConfiguration/resources/configuration/tenant2 \ --data 'key=temn.tafj.tenant.name&value=My%20second%20tenant'
- In case of successful update, an HTTP code 200 is returned with the property value being amended.
{ "key": "temn.tafj.tenant.name", "value": "My second tenant" }
View the Tenant Configuration
A GET request to following URL displays the full set of properties that is making the tenant configuration.
http://xxxxx/TAFJConfiguration/resources/configuration/{tenant_Id}

curl --request GET \ --url http://localhost:8080/TAFJConfiguration/resources/configuration/tenant2
{ "configurationId": "tenant2", "properties": [ { "key": "tenant2-tafj.configuration.version", "value": "2019-04-01T15:48:41.796" }, { "key": "tenant2-temn.tafj.appserver.api.datasource", "value": "java:/jdbc/apiDS-tenant2" }, { "key": "tenant2-temn.tafj.appserver.t24.datasource", "value": "java:/jdbc/t24DS-tenant2" },…
For more information regarding the configuration web service, see Configuration Management – REST API.
In this topic