Updating a Digital Twin Relationship

Update a digital twin relationship for the Internet of Things.

When you update an existing option applied to a digital twin relationship, you change only the value you can not add a new value to a digital twin relationship using this update option.

  • Use the oci iot digital-twin-relationship update command and required parameters to update a digital twin relationship's description, free form tags, defined tags, or the display name.

    Replace the <digital-twin-relationship-OCID> with the OCID of the digital twin relationship you want to update. Replace the <updated-description> to update the digital twin relationship's description:

    oci iot digital-twin-relationship update --digital-twin-relationship-id <digital-twin-relationship-OCID> --description "<updated-description>"

    To update a digital twin relationship's free form tags:

    oci iot digital-twin-relationship update --digital-twin-relationship-id <digital-twin-relationship-OCID> --freeform-tags

    To update a digital twin relationship's defined tags:

    oci iot digital-twin-relationship update --digital-twin-relationship-id <digital-twin-relationship-OCID> --defined-tags

    To update a digital twin relationship's display name:

    oci iot digital-twin-relationship update --digital-twin-relationship-id <digital-twin-relationship-OCID> --display-name "<updated-display-name>"

    For a complete list of parameters and values for CLI commands, see CLI Command Reference.

  • Run the UpdateDigitalTwinRelationship operation to update a digital twin relationship.