// CreatePolicy create a data policy
CreatePolicy create a data policy
// CreatePolicy create a data policy
func (c *Client) CreatePolicy(policy DataPolicyRequest) error {
	send, err := json.Marshal(policy)
	if err != nil {
		return err
	}
	resp, err := c.Do(http.MethodPost, policyPath, contentTypeJSON, send)
	if err != nil {
		return err
	}
	return resp.Body.Close()
}
func ( c * Client ) CreatePolicy ( policy DataPolicyRequest ) error { send , err := json . Marshal ( policy ) if err != nil { return err } resp , err := c . Do ( http . MethodPost , policyPath , contentTypeJSON , send ) if err != nil { return err } return resp . Body . Close ( ) }
CreatePolicy create a data policy
CreatePolicy create a data policy