Advertisement
Guest User

Untitled

a guest
May 25th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. // Request
  2. [
  3. {
  4. "type": "item_add",
  5. "temp_id": "To130797fc18884b149da4c8a8f76e015c",
  6. "args": {
  7. "content": "hello",
  8. "project_id": "1223498556",
  9. "priority": 1,
  10. "child_order": 24,
  11. "due": {
  12. "date": "2019-05-15T20:00:00",
  13. "timezone": "Europe/Budapest", ⬅⬅⬅ note timezone filled out here
  14. "is_recurring": false,
  15. "string": "May 15 20:00",
  16. "lang": "en"
  17. }
  18. },
  19. "uuid": "9380379b00c84f6cb3d6783f67a848a9"
  20. },
  21. {
  22. "type": "item_complete",
  23. "args": {
  24. "id": "To130797fc18884b149da4c8a8f76e015c",
  25. "date_completed": "2019-05-15T10:46:29Z"
  26. },
  27. "uuid": "f7a554b9444b40429aeee5419cefaef6"
  28. }
  29. ]
  30.  
  31. // Response
  32. {
  33. "projects": [],
  34. "items": [
  35. {
  36. "content": "hello",
  37. "due": {
  38. "date": "2019-05-15T20:00:00",
  39. "timezone": null, // ⬅⬅⬅ note null here
  40. "is_recurring": false,
  41. "string": "May 15 20:00",
  42. "lang": "en"
  43. },
  44. "checked": true,
  45. "priority": 1,
  46. "responsible_uid": null,
  47. "child_order": 24,
  48. "day_order": -1,
  49. "parent_id": null,
  50. "section_id": null,
  51. "labels": [],
  52. "assigned_by_uid": "5210211",
  53. "sync_id": null,
  54. "project_id": "1223498556",
  55. "date_added": "2019-05-15T10:46:33+00:00",
  56. "date_completed": "2019-05-15T10:46:29+00:00",
  57. "collapsed": false,
  58. "in_history": true,
  59. "id": "3199492756",
  60. "is_deleted": false
  61. }
  62. ],
  63. "temp_id_mapping": {
  64. "To130797fc18884b149da4c8a8f76e015c": "3199492756",
  65. "Reb6b403745aa74e8bbdb541ac2bcb6d87": "2248575572"
  66. },
  67. "sync_status": {
  68. "f7a554b9444b40429aeee5419cefaef6": "ok",
  69. "9380379b00c84f6cb3d6783f67a848a9": "ok",
  70. "7ea8b1a540b94cafac1484824a1d6cd2": "ok"
  71. },
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement