Update Module
Endpoint: PUT /api/v1/modules/{id}
Prerequisites: The caller must provide a module id.
Authorization: API key (via the X-API-KEY header)
Input parameters:
| Field name | Description | Format |
|---|---|---|
| id | Module id | UUID |
Request body:
| Field name | Description | Format |
|---|---|---|
| name | The name of a module | String |
| description | The description of a module | String |
Output parameters:
| Field name | Description | Format |
|---|---|---|
| id | Module id | UUID |
| name | Module name | String |
| modifiedAt | Date-time module was modified | Instant |
| modifiedBy | User who modified the module | String |
| description | Description text | String |
| config | Container - see below | Config |
| createdAt | Date-time module was created | Instant |
| type | Module type | String |
| profiles | Container - see below | Profiles |
Config:
| Field name | Description | Format |
|---|---|---|
| connectorName | Connector name | String |
| connectorVersion | Connector version | String |
Profiles:
| Field name | Description | Format |
|---|---|---|
| url | URL | URL |
| password | User password | String |
| username | User name | String |
| driverClassName | Driver |
Example (placeholder values; never publish real host names or credentials):
{
"id": "2f2fe37f-01f2-4ffb-9a97-3fd7d60ada5e",
"name": "new_name",
"modifiedAt": "2021-07-18T13:35:34.273894Z",
"modifiedBy": "local dev",
"description": "Sample module description",
"config": {
"connectorName": "oracle-db",
"connectorVersion": "latest"
},
"createdAt": "2021-07-18T12:54:22.139933Z",
"type": "oracle_db",
"profiles": {
"$default": {
"url": "jdbc:oracle:thin:@//<db-host>:1521/ORCL",
"password": "<password>",
"username": "<username>",
"driverClassName": "oracle.jdbc.driver.OracleDriver"
}
}
}
See also update module in the Public APIs - backend reference.