Automic Workload Automation

 View Only
  • 1.  Add task to a schedule with REST API

    Posted Dec 13, 2024 08:49 AM

    Hi,

    is it possible to add a task in a schedule with the AE REST API ? 



    ------------------------------
    Best regards,

    Sabine
    ------------------------------


  • 2.  RE: Add task to a schedule with REST API

    Broadcom Employee
    Posted Dec 16, 2024 01:09 AM

    Hi Sabine,

    I believe updating the schedule with the additional task using the REST API below will clear out the remaining tasks in the schedule.

    PATCH /{client_id}/objects/{object_name} - This can be used to update an existing object.

    It's better to export the schedule, update the additional task, and then import it back using the commands below.

    GET /{client_id}/objects/{object_name} - This can be used to export a single object by name.

    POST /{client_id}/objects - This is used to import or create an object.

    Thanks & Regards,

    Aravindan Thambiraj




  • 3.  RE: Add task to a schedule with REST API

    Broadcom Employee
    Posted Dec 16, 2024 01:09 AM
    Edited by Aravindan Thambiraj Dec 16, 2024 01:24 AM

    While importing back, Make sure you are enabling overwrite_existing_objects as true for overwriting the existing objects.