UpdateDataPackageTableColumn - PUT
|
Path |
/api/projects/{projectId}/metavault/sourcesystems/{sourceNameOrId}/datapackages/{dataPackageNameOrId}/tables/{tableNameOrId}/columns/{columnNameOrId} |
|---|---|
|
Http Method |
PUT |
Overview
Update the hard rule or metadata attributes of a column of a datapackage table.
Required permissions
-
Write access to the Source module. SOURCE WRITE
Request
Path parameters
|
Parameter |
Type |
Required |
Description |
Example |
|---|---|---|---|---|
|
sourceNameOrId |
string |
Yes |
The name of the source or the technical id of the source where the column lives. |
"e605eb83-d483-4738-a56f-f5b848f2f54d" |
|
dataPackageNameOrId |
string |
Yes |
The name or the id of the datapackage where the column lives. |
"f134eb83-d483-4738-a56f-f5b848f2f54d" |
|
tableNameOrId |
string |
Yes |
The name or the id of the table in which the column is. |
"ee55eb83-d483-4738-a56f-f5b848f2f54d" |
|
columnNameOrId |
string |
Yes |
The name or the id of the column |
"aa4ecb83-d483-4738-a56f-f5b848f2f54d" |
Request body
Before 7.0.0 :
{
"name": "page_f",
"dataType": "Boolean",
"length": null,
"precision": null,
"scale": null,
"nullable": true,
"technicalDescription": "the page",
"businessDescription": "The page of the person",
"businessName": "Pages",
"hardRuleDefinition": "{{page_f}} IS NULL"
}
Starting from 7.0.0 (new column/HR types definitions respect the formalism defined in Metavault API - General concepts | Column types):
{
"name": "page_f",
"dataType": "String",
"dataTypeCustom": null,
"length": 10,
"precision": null,
"scale": null,
"nullable": true,
"technicalDescription": "the page",
"businessDescription": "The page of the person",
"businessName": "Pages",
"hardRuleDefinition": "{{page_f}} IS NULL"
}
Field descriptions
|
Field |
Type |
Required |
Description |
Constraints |
|---|---|---|---|---|
|
name |
string |
Yes |
The name of the column. |
|
|
dataType |
string |
Yes |
The database type of the output of the hard rule. (based on https://learn.microsoft.com/en-us/dotnet/api/system.data.dbtype?view=net-10.0 ) |
|
|
dataTypeCustom |
string |
No |
Applies to the hard rule. |
|
|
length |
integer |
No |
The length of the output of the hard rule. |
|
|
precision |
integer |
No |
The precision of the output of the hard rule. |
|
|
scale |
integer |
No |
The scale of the output of the hard rule. |
|
|
technicalDescription |
string |
No |
The technical description of the column. |
|
|
businessDescription |
string |
No |
The business description of the column. |
|
|
businessName |
string |
No |
The business name of the column. |
|
|
hardRuleDefinition |
string |
No |
The hard rule to apply to the underlying data when moving the data from L1 to L2 staging tables. If this is NULL, remove the hard rule. In the text SQL expression the column should be referenced between two curly brackets: |
|
Response
Success response (200 OK)
The full list of columns. See: Metavault API - Get datapackage table column list