Request

Response

    Retrieve Downtime Record by id
    GET

    downtime-records/{downtimeRecordId}

    Fetches a single downtime record identified by the specified unique downtime record id.

    Resource Information

    Method and URI
    GET
    https://api.aps.autodesk.com/fusion-operations/v2/downtime-records/{downtimeRecordId}
    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

    downtimeRecordId
    int
    Unique identifier of the downtime record.

    Response

    HTTP Status Code Summary

    200
    OK
    Downtime record details retrieved successfully.
    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
    id
    Unique identifier of the downtime.
    startTime
    datetime: ISO 8601
    Begin of the downtime (e.g. 2017-06-21T14:07:17Z)
    endTime
    datetime: ISO 8601
    End of the downtime (e.g. 2017-06-21T16:07:17Z). This value can be null when the downtime is finished, indicating that the downtime was closed automatically by the system.
    reasonCode
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    anyOf
    0
    1
    machines
    array: object
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    name
    string
    Name of the referenced entity.

    Max length: 255

    anyOf
    0
    1
    workers
    array: object
    id
    int
    number
    int
    name
    string
    Max length: 255
    anyOf
    0
    1
    startedBy
    id
    int
    number
    int
    name
    string
    Max length: 255
    anyOf
    0
    1
    endedBy
    id
    int
    number
    int
    name
    string
    Max length: 255
    anyOf
    0
    1
    component
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    name
    string
    Name of the referenced entity.

    Max length: 255

    anyOf
    0
    1
    product
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    name
    string
    Name of the referenced entity.

    Max length: 255

    anyOf
    0
    1
    notes
    string
    Max length: 5000
    anyOf
    Unique identifier of the downtime.
    0
    1

    Example

    Downtime record details retrieved successfully.

    Request

    curl -v 'https://developer.api.autodesk.com/fusion-operations/v2/downtime-records/:downtimeRecordId' \
      -H 'Authorization: '
    

    Response

    {
      "id": 3,
      "startTime": "2024-06-21T12:07:17Z",
      "endTime": "2024-06-21T14:07:17Z",
      "reasonCode": {
        "id": 7,
        "code": "Mold cleaning"
      },
      "machines": [
        {
          "id": 3,
          "code": "M2",
          "name": "Machine 2"
        },
        {
          "id": 4,
          "code": "M5",
          "name": "Machine 52"
        }
      ],
      "workers": [
        {
          "id": 3,
          "number": 66,
          "name": "Peter"
        }
      ],
      "startedBy": {
        "id": 2,
        "number": 4,
        "name": "John"
      },
      "endedBy": {
        "id": 2,
        "number": 4,
        "name": "John"
      },
      "component": {
        "id": 2,
        "code": "MC1",
        "name": "MC1"
      },
      "product": {
        "id": 5,
        "code": "Product2",
        "name": "Product2"
      },
      "notes": "My wonderful note with less than 5000 characters"
    }
    
    Show More