{
  "opencollection": "1.0.0",
  "info": {
    "name": "Asana Allocations Time Tracking Entries API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Time Tracking Entries",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Asana Get time tracking entries for a task",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.asana.com/api/1.0/tasks/:task_gid/time_tracking_entries",
            "params": [
              {
                "name": "task_gid",
                "value": "321654",
                "type": "path",
                "description": "The task to operate on."
              },
              {
                "name": "opt_pretty",
                "value": "true",
                "type": "query",
                "description": "Provides “pretty” output.\nProvides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging."
              },
              {
                "name": "limit",
                "value": "50",
                "type": "query",
                "description": "Results per page.\nThe number of objects to return per page. The value must be between 1 and 100."
              },
              {
                "name": "offset",
                "value": "eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9",
                "type": "query",
                "description": "Offset token.\nAn offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results.\n*Note: You can only pass in an offset that was returned to you via a previously paginated request.*"
              },
              {
                "name": "opt_fields",
                "value": "created_by,created_by.name,duration_minutes,entered_on,offset,path,uri",
                "type": "query",
                "description": "This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include."
              }
            ]
          },
          "docs": "Returns time tracking entries for a given task."
        },
        {
          "info": {
            "name": "Asana Create a time tracking entry",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.asana.com/api/1.0/tasks/:task_gid/time_tracking_entries",
            "params": [
              {
                "name": "task_gid",
                "value": "321654",
                "type": "path",
                "description": "The task to operate on."
              },
              {
                "name": "opt_pretty",
                "value": "true",
                "type": "query",
                "description": "Provides “pretty” output.\nProvides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging."
              },
              {
                "name": "opt_fields",
                "value": "created_at,created_by,created_by.name,duration_minutes,entered_on,task,task.created_by,task.name,task.resource_subtype",
                "type": "query",
                "description": "This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a time tracking entry on a given task.\n\nReturns the record of the newly created time tracking entry."
        },
        {
          "info": {
            "name": "Asana Get a time tracking entry",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.asana.com/api/1.0/time_tracking_entries/:time_tracking_entry_gid",
            "params": [
              {
                "name": "time_tracking_entry_gid",
                "value": "917392",
                "type": "path",
                "description": "Globally unique identifier for the time tracking entry."
              },
              {
                "name": "opt_pretty",
                "value": "true",
                "type": "query",
                "description": "Provides “pretty” output.\nProvides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging."
              },
              {
                "name": "opt_fields",
                "value": "created_at,created_by,created_by.name,duration_minutes,entered_on,task,task.created_by,task.name,task.resource_subtype",
                "type": "query",
                "description": "This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include."
              }
            ]
          },
          "docs": "Returns the complete time tracking entry record for a single time tracking entry."
        },
        {
          "info": {
            "name": "Asana Update a time tracking entry",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://app.asana.com/api/1.0/time_tracking_entries/:time_tracking_entry_gid",
            "params": [
              {
                "name": "time_tracking_entry_gid",
                "value": "917392",
                "type": "path",
                "description": "Globally unique identifier for the time tracking entry."
              },
              {
                "name": "opt_pretty",
                "value": "true",
                "type": "query",
                "description": "Provides “pretty” output.\nProvides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging."
              },
              {
                "name": "opt_fields",
                "value": "created_at,created_by,created_by.name,duration_minutes,entered_on,task,task.created_by,task.name,task.resource_subtype",
                "type": "query",
                "description": "This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "A specific, existing time tracking entry can be updated by making a `PUT` request on\nthe URL for that time tracking entry. Only the fields provided in the `data` block\nwill be updated; any unspecified fields will remain unchanged.\n\nWhen using this method, it is best to specify only those fields you wish\nto change, or else you may overwrite changes made by another user since\nyou last retrieved the task.\n\nReturns the complete updated time tracking entry record."
        },
        {
          "info": {
            "name": "Asana Delete a time tracking entry",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://app.asana.com/api/1.0/time_tracking_entries/:time_tracking_entry_gid",
            "params": [
              {
                "name": "time_tracking_entry_gid",
                "value": "917392",
                "type": "path",
                "description": "Globally unique identifier for the time tracking entry."
              },
              {
                "name": "opt_pretty",
                "value": "true",
                "type": "query",
                "description": "Provides “pretty” output.\nProvides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging."
              }
            ]
          },
          "docs": "A specific, existing time tracking entry can be deleted by making a `DELETE` request on\nthe URL for that time tracking entry.\n\nReturns an empty data record."
        }
      ]
    }
  ],
  "bundled": true
}