Update a data object

Update data object metadata.

Request Method Service URL
PUT /api-metadata/{access-key}/metadata/tables/{tableId}
Request Headers

Content-Type=application/json

Example

Update the "order" data object's partition strategy to monthly:

Request URL

PUT http://{accountURL}/api-metadata/v1/<tenantAccessKey>/metadata/tables/order

Request body

{
  "name": "Order",
  "tenantId": 0,
  "tableId": "Order",
  "tablePrimaryKey": "ID",
  "sourceAttribute": "SourceOrderD",
  "insertOnly": true,
  "resourceName": "orders",
  "scope": "DW",
  "categoryId": "Transactional",
  "partitions": [
    {
      "partitionStrategy": "DATE",
      "partitionFields": [
        {
          "ptype": ".PartitionDateField",
          "targetFieldName": "OrderDate",
          "format": "yyyyMM",
          "referenceField": "OrderTS"
        }
      ]
    }
  ]
}

 

Learn more

Data Objects API