• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Question about task state update via API

    Scheduled Pinned Locked Moved
    General
    1
    1
    338
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fishfox
      last edited by

      Hi all,

      Wondering exactly what json I need to put in my PUT request to /fog/task/<IDOFOBJECT>/edit to update it.

      Do I need to to include the full JSON object for the task? IE:

      #!psuedocode
      $original_task=$(curl http://fog.home/fog/task/119)
      #...
      #edit $starting task into $updated_task
      #...
      curl -X PUT -d $updated_task http://fog.home/fog/task/119
      

      Or can I just send the updated values? E.g:

      curl -X PUT -d {"stateID": "1"} http://fog.home/fog/task/119
      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post

      201

      Online

      12.0k

      Users

      17.3k

      Topics

      155.2k

      Posts
      Copyright © 2012-2024 FOG Project