# datacube.index._products.ProductResource.update_document¶

ProductResource.update_document(definition, allow_unsafe_updates=False, allow_table_lock=False)[source]

Update a Product using its definition

Parameters: allow_unsafe_updates (bool) – Allow unsafe changes. Use with caution. definition (dict) – product definition document allow_table_lock – Allow an exclusive lock to be taken on the table while creating the indexes. This will halt other user’s requests until completed. If false, creation will be slower and cannot be done in a transaction. DatasetType