Request

Response

    Retrieve Task Durations from an Operation of a Product
    GET

    products/{productId}/operations/{operationId}/task-durations

    Retrieves a paginated list of Task Durations associated with the specified Product and operation, optionally filtered and sorted. When additional results are available, the pagination object in the response payload provides a “nextUrl” that links to the next page of results.

    Resource Information

    Method and URI
    GET
    https://api.aps.autodesk.com/fusion-operations/v2/products/{productId}/operations/{operationId}/task-durations
    Authentication Context
    No security required
    Required OAuth Scopes
    data:read data:write
    Data Format
    JSON

    Request

    Headers

    Authorization*
    string
    JWT Access Token
    * Required

    Request

    URI Parameters

    productId
    int
    Unique identifier of the Product.
    operationId
    int
    Unique identifier of the Operation.

    Request

    Query String Parameters

    filter[id]
    int
    Filter Task Durations matching the specified id.
    offset
    int
    Page offset. Default value is 0.
    limit
    int
    Maximum number of results returned. Defaults to 25.
    sort
    string
    Comma separated fields to sort items by. Fields: “id”, “validSince”. Default: “validSince desc”.
    filter[validSince]
    string
    Filter Task Durations by validSince. Accepts an ISO-8601 date or an inclusive date range in the format lowerValue..upperValue, lowerValue.., or ..upperValue. Returns Task Durations whose validSince matches the provided date or range.

    Response

    HTTP Status Code Summary

    200
    OK
    A list of Task Durations for this operation.
    400
    Bad Request
    Bad request due to invalid data.
    401
    Unauthorized
    The access token is invalid. It may have either expired or may not be a three-legged access token. Please verify the token and retry the request.
    403
    Forbidden
    The request was successfully validated but lacked required permission. Please verify your token permissions and retry the request.
    404
    Not Found
    The resource in the path does not exist.
    429
    Too Many Requests
    Rate limit exceeded; wait some time before retrying.
    500
    Internal Server Error
    An unknown server-side error occurred. Please try again later. If the problem persists, please contact support.

    Response

    Header (429)

    Retry-After
    integer
    The number of seconds to wait before retrying the request.

    Response

    Body Structure (200)

    Expand all
    results
    array: object
    id
    int
    Unique identifier of the Task Duration.
    validSince
    string
    Valid Since date (e.g. 2017-06-21)
    cycleTime
    string
    Cycle Time (ISO 8601 duration, e.g. PT3H15M30S)
    customerTime
    string
    Customer Time (ISO 8601 duration, e.g. PT3H15M30S)
    quantityRatio
    number
    Quantity Ratio
    pagination
    object
    limit
    int
    Maximum number of results returned in this page.
    offset
    int
    Number of results skipped before this page.
    nextUrl
    string
    URL for the next page of results. Null when there are no additional pages.

    Example

    A list of Task Durations for this operation.

    Request

    curl -v 'https://developer.api.autodesk.com/fusion-operations/v2/products/:productId/operations/:operationId/task-durations' \
      -H 'Authorization: '
    

    Response

    {
      "results": [
        {
          "id": 1,
          "validSince": "2021-04-03",
          "cycleTime": "PT3H15M30S",
          "customerTime": "PT2H55M10S",
          "quantityRatio": 1.25
        },
        {
          "id": 2,
          "validSince": "2022-02-10",
          "cycleTime": "PT2H05M25S",
          "customerTime": "PT1H50M00S",
          "quantityRatio": 1.2
        }
      ],
      "pagination": {
        "limit": 2,
        "offset": 0,
        "nextUrl": "https://fusionoperations.autodesk.com/products/1/operations/2/task-durations?limit=2&offset=2"
      }
    }
    
    Show More