Function updateResourceMetadata

  • Update the metadata of a resource by its ARID.

    Parameters

    • arid: ArchonResourceId

      The ARID of the resource to update.

    • metadata: Record<string, unknown>

      The new metadata to associate with the resource.

    • merge: boolean = true

      If true, merge the new metadata with the existing metadata. If false, replace the existing metadata.

    Returns Promise<Resource>

    A promise resolving to the updated resource.