Request

Response

    Create Lot
    POST

    lots

    Creates a new lot for a Product. The lot code must be unique per Product within the company.

    Resource Information

    Method and URI
    POST
    https://api.aps.autodesk.com/fusion-operations/v2/lots
    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

    Body Structure

    The lot to be created. code and product are required. expirationDate is not derived from product shelf life when omitted.

    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
    * Required

    Response

    HTTP Status Code Summary

    201
    Created
    Lot successfully created.
    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.
    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 (201)

    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