How to set API ContactType parent_id NULL or how to rename label?
Rename ContactType label 

$result = civicrm_api3('ContactType', 'create', array(
  'sequential' =&gt; 1,
  'id' =&gt; 1,
  'label' =&gt; "test",
));


This example will rename ContactType Label 

I guess this helps !!!!