Request

Response

    Update properties of a Lot
    PATCH

    lots/{lotId}

    Modifies only the specified attributes in the request body for the identified Lot. Attributes not included in the request remain unchanged. When the lot is in use, code and product cannot be changed.

    Resource Information

    Method and URI
    PATCH
    https://api.aps.autodesk.com/fusion-operations/v2/lots/{lotId}
    Authentication Context
    No security required
    Required OAuth Scopes
    data:read data:write
    Data Format
    JSON

    Request

    Headers

    Authorization*
    string
    JWT Access Token
    Content-Type*
    string
    Must be application/json
    * Required

    Request

    URI Parameters

    lotId
    int
    The unique identifier of the Lot to update.

    Request

    Body Structure

    Lot attributes to update. Only provided fields are modified.

    Expand all
    product
    all of
    0
    id
    int
    Unique identifier of the referenced entity.
    code
    string
    Code of the referenced entity.

    Max length: 255

    anyOf
    0
    1
    code
    string
    Max length: 255
    expirationDate
    string
    Expiration date of the lot (e.g. 2025-06-21)
    supplierLot
    string
    Max length: 255

    Response

    HTTP Status Code Summary

    200
    OK
    Lot updated successfully.
    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
    product
    all of
    0
    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
    id
    int
    Unique identifier of the lot.
    code
    string
    Max length: 255
    expirationDate
    string
    Expiration date of the lot (e.g. 2025-06-21)
    supplierLot
    string
    Max length: 255