# Allow to assign a cronjob via API

**Project:** API | **Board:** Planned | **Votes:** 5
**URL:** https://roadmap.ploi.io/projects/6-api-level-requests/items/435-allow-to-assign-a-cronjob-via-api

---

Creating a Cronjob via API only allows 3 parameter
    $command,
    $frequency,
    $user = 'ploi'

In the Ploi UI, you can assign the site so that it appears under Site->Cronjobs and not just Server->conjobs.

Idea would be to allow a 4th parameter SiteID.


---

## Comments

**Gävle Ops** (2025-04-08T06:19:38+00:00):
Hey, any updates on this? 

We already have this feature in Ploi panel so please allow us to use it in API as well!

**Gävle Ops** (2025-04-08T06:22:59+00:00):
It would be also good to update the documentation related to CRONs in here: https://developers.ploi.io/35-crontabs/105-create-crontab

Instead of `/home/ploi/domain.com/php artisan schedule:run` it should be `php /home/ploi/domain.com/artisan schedule:run`


**Arne** (2025-12-12T08:29:36+00:00):
Is there any eta or info on this?

