How to change dataset name after duplicating agent policy

I've created an agent policy with 13 integrations, each specifying one of 2 "qa" datasets. I want to duplicate this policy and want to change the datasets to "prod" names, but they are grey and won't let me change.

How can they be changed?

Thanks

Dataset or namespace? it is not clear what you are trying to change, please share some screenshots with evidences.

The dataset is part of the integration name and apart of some generic integrations like custom logs or cloudwatch, you cannot change it.

The namespace can be customized and can be set in the policy to be applied to all integrations or per integration in the policy as well.

The agent policy default namespace is "default".

Using a Custom Logs integration as an example, the namespace is default and can't be changed

In the custom log options, the dataset name is gray and the cursor turns into a red circle slash when the field is entered.

The current value was set to the custom value when the integration was created, shouldn't it allow it to be changed when duplicated?

Yeah, not sure why it is grey.

Which version are you using? Do you have anything configured in Kibana or is everything managed by Fleet?