post https://{hostname}/papi/v1/cpcodes
To create a new CP code, you need to associate it with a product. You can assign any CP code within a property's rule tree as detailed in the Rule Trees section. You should match the same productId
that's assigned to properties that invoke the CP code to the one assigned to the CP code, otherwise you may get a warning.