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.
To view or update certain CP code data, such as name, time zone, and purgeability, use the CP Codes and Reporting Groups API.
Recipes
Create a new CP code
Open Recipe