# Can't create a variant via the API

**URL:** <https://forum.mautic.org/t/cant-create-a-variant-via-the-api/30241>\
**Category:** Product Support\
**Created:** [December 17, 2023, 3:58pm UTC](https://forum.mautic.org/t/cant-create-a-variant-via-the-api/30241 "2023-12-17T15:58:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lasse](https://avatars.discourse-cdn.com/v4/letter/l/96bed5/32.png) [@lasse](https://forum.mautic.org/u/lasse)\
**Post date:** [December 17, 2023, 3:58pm UTC](https://forum.mautic.org/t/cant-create-a-variant-via-the-api/30241/1 "2023-12-17T15:58:09Z")

</div>

**Your software**  
My Mautic version is: 4.4.10  
My PHP version is: 7.4.33  
My Database type and version is: mysql

**Your problem**

I want to create an email variant via the API.

- The docs say something about passing “variantParent” and “variantSettings” though these are not specified
- I already know that the same docs for translationParent don’t work and I haven’t gotten these to work either. In case of the translationParent, templateTranslationParent can be passed. Passing “templateVariantParent” doesn’t seem to work here though.

Is there something available I can use that is simply undocumented?
