Update Schema Configuration

Update the configuration of a schema. Currently, the only modification supported is the password reset.

Request

URI: http://persistence-service.sap-iot-persistence:8080/persistence/v1/context/schema/{name}/config

HTTP Method: POST

Request Parameters

Parameter Required Data Type Description Parameter Type
name Yes String Name of the schema to modify. Maximum length is 63 characters. Path
resetPassword Optional Boolean Whether to reset the schema user’s password. Default value is false. Request body

Request Example

POST /persistence/v1/context/schema/serviceA/config 

{ 

  "resetPassword": true 

}

Response

See Common Error Codes and Common Parameters.

Code Description
200 Successfully updated the schema configuration

Response Body Example

{ 

  "name": "serviceA", 

  "config": { 

    "host": "persistence-service.persistence-service.svc.cluster.local", 

    "port": 5432, 

    "database": "persistence_service", 

    "user": "838dcd0e-c1d0-4d94-8e16-269b19b41930", 

    "password": "O-}4UW1=;Neca<[<", 

    "uri": "jdbc:postgresql://persistence-service.persistence-service.svc.cluster.local:5432/persistence_service", 

    "sslcert": "-----BEGIN CERTIFICATE-----\n... -----END CERTIFICATE-----", 

    "sslcacert": "-----BEGIN CERTIFICATE-----\n... -----END CERTIFICATE-----" 

  } 

}