Update data standard SKILL

Updated at:

You can use natural language commands to instruct code agents, such as Qoder and CodeX, to update the property values, description, owner, and monitoring configuration of an existing data standard. This document describes the SKILL's functionality, prerequisites, and usage examples, and includes an appendix of input parameters.

Overview

The Update data standard SKILL lets you use natural language commands to modify an existing data standard. You can adjust its description, owner, and effective time, or add, modify, or delete its monitoring configuration (metadata monitoring and quality monitoring). You can also switch between monitoring types. Use this SKILL to continuously revise the content and check rules of a standard after it has been created.

Use cases:

  • Modify the description, owner, or effective time of an existing data standard.

  • Add, modify, or delete metadata monitoring or quality monitoring rules for an existing data standard.

  • Adjust the quality monitoring thresholds, or switch between monitoring types.

Note

Limitations: Updates are based on the standard's current configuration. Updates fully overwrite standard property values. Even when modifying only a single property, you must include all other property values in your request; otherwise, required properties might be cleared, causing an error. For monitoring configurations, actions are determined by each rule's ID (not providing an ID adds a rule; providing an existing ID updates a rule; omitting an existing ID from the list deletes a rule). Omitting an existing ID by mistake results in an unintended deletion. Property values such as the standard code and name can only be provided through the property value list of the referenced standard template; they are ignored if included in the monitoring configuration.

Prerequisites

  • Your account has the necessary permissions to manage data standards.

  • The target data standard must exist, and you must know its standard ID and current status.

  • You have prepared the property values or monitoring configuration you want to modify. Because updates are based on the current configuration, you must also provide any parts that you do not want to change.

Examples

You can describe your requirements to the code agent in natural language. The following are example commands that you can copy and use directly:

  • "Change the description of the customer code standard to 'Customer Unique Code Specification'."

  • "For the order amount standard, change its quality monitoring upper threshold from 10000 to 50000."

  • "Add a metadata monitoring rule to the customer code standard to ensure the description field is filled in."

Procedure:

  1. After you issue an update command, the code agent confirms the target standard and the content to be modified.

  2. The code agent retrieves the standard's current configuration and then applies your changes. This approach prevents the accidental data loss that can occur with full-overwrite operations.

  3. Before submitting the update, the code agent presents the complete configuration and its scope of impact for your confirmation.

  4. After you confirm, the code agent submits the update and then verifies that the standard's configuration matches the expected result.

Appendix: Input parameters

The following table lists the parameters for updating a data standard. The code agent automatically identifies required information from your command and prompts you for any missing details.

Parameter

Required

Description

Example

tenant ID

Yes

The 19-digit ID of the target Dataphin tenant.

1234567890123456789

standard ID

Yes

The ID of the data standard to be updated.

--

Standard status

Yes

The current status of the standard, such as Effective or Draft. If you are unsure of the status, query the standard first.

Effective

Standard template and property values

Yes

The standard's referenced template and its property values (such as standard code, name, and data type). Because updates perform a full overwrite, you must include all property values, even those that are unchanged.

Basic Field standard template, standard code CUSTOMER_CODE

Standard set

Yes

The standard set to which the standard belongs.

Customer Information standard set

Monitoring configuration

No

The metadata monitoring or quality monitoring rules for the standard. The action performed on a rule (add, update, or delete) is determined by its ID: not providing an ID adds a new rule, providing an existing ID updates that rule, and omitting a rule's ID from the list deletes that rule.

Amount is greater than or equal to 0 and less than 10000

Effective time configuration

No

The effective time for the standard. If the standard is effective for a specific period, you must provide both a start and end time.

--

Description

No

Additional information about the data standard.

Customer Unique Code Specification

Owner

No

The owner of the standard. If not specified, this defaults to the current user.

--

Regenerate standard code

No

Specifies whether the platform regenerates the standard code based on encoding rules. If this is enabled, any provided standard code is ignored.

No