Answers.Body: <p>I think this is how it typically works, but in your same api call just populate one of the fields in each relevant custom data group with a blank '' and that should fill in the rest.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-22T19:36:44.077Z
Answers.LastActivityDate: 2019-08-22T19:36:44.077Z
Answers.UserDisplayName: Demerit
Body: <p>If I use the API to give someone a new contact subtype it doesn't create a row in any relevant custom data tables and populate the default values. Does anyone have a good way to handle this? I have smart groups that hang off the default custom data, but new contacts aren't going into them.</p>
  
  <p>I'm trying to dig through for a handy createRelevantCustomDataFromSubtype function but can't see anything yet.</p>
  
  <p>Cheers,</p>
  
  <p>Andrew</p>
  
Tags: <custom-fields><api><sub-types>
Title: How do I create default custom data when changing contact subtypes via the API?
ThreadText: # How do I create default custom data when changing contact subtypes via the API?
  
  (Asked by: username_0 on 2019-08-22)
  
  If I use the API to give someone a new contact subtype it doesn't create a row in any relevant custom data tables and populate the default values. Does anyone have a good way to handle this? I have smart groups that hang off the default custom data, but new contacts aren't going into them.
  
  I'm trying to dig through for a handy createRelevantCustomDataFromSubtype function but can't see anything yet.
  
  Cheers,
  
  username_0
  
  **Tags:** custom-fields, api, sub-types
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-08-22. Score: 1
  
  I think this is how it typically works, but in your same api call just populate one of the fields in each relevant custom data group with a blank '' and that should fill in the rest.
  
  
  ---
  
  