# שליטה ברכיבי ערכת נושא באמצעות API?

**URL:** <https://meta.discourse.org/t/controlling-theme-components-via-api/256511>\
**Category:** Development\
**Created:** [28 בפברואר,‏ 2023,‏ 4:16pm UTC](https://meta.discourse.org/t/controlling-theme-components-via-api/256511 "2023-02-28T16:16:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [28 בפברואר,‏ 2023,‏ 4:49pm UTC](https://meta.discourse.org/t/controlling-theme-components-via-api/256511/2 "2023-02-28T16:49:49Z")

</div>

My guess is ChatGPT just made it all up. 🤣

So as you can see, we aren’t all out of a job yet. 😛

~~There’s no concept of “enabling” or “disabling” a Theme Component, you simply add or remove it from a parent theme.~~ EDIT: incorrect, see @Canapin’s post below!

ChatGPT ~~made it all up.~~ got the wrong end point and body.

Using the browsers network tab, I can see that adding a Theme Component to a parent theme called a

`PUT /admin/themes/<id>`

(id of component)

With payload something like:

`parent_theme_ids: [<parent_id>]`

I didn’t make that up, I just looked at the Network tab on my browser 🤓

You are welcome

---

_[View the full topic](https://meta.discourse.org/t/controlling-theme-components-via-api/256511)._
