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

Question about task state update via API

Scheduled Pinned Locked Moved
General
1
1
343
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 May 24, 2018, 5:14 AM

    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
    1 / 1
    • First post
      1/1
      Last post

    219

    Online

    12.1k

    Users

    17.3k

    Topics

    155.4k

    Posts
    Copyright © 2012-2024 FOG Project