Store Asset Part Unit API (1.0.0)

Download OpenAPI specification:Download

API for managing asset part unit storage operations

Store Asset Part Unit

Operations related to storing asset part units

Get all asset part unit storage records

Retrieve a list of all asset part unit storage records with optional filtering and pagination

Authorizations:
ApiKeyAuth
query Parameters
limit
integer [ 1 .. 100 ]
Default: 50

Maximum number of records to return

offset
integer >= 0
Default: 0

Number of records to skip for pagination

sort
string

Field to sort by

order
string
Default: "desc"
Enum: "asc" "desc"

Sort order (asc or desc)

filter
string

Filter conditions in JSON format

search
string

Search term for text fields

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": [
    ],
  • "total": 0
}

Create a new asset part unit storage record

Create a new asset part unit storage record with the provided data

Authorizations:
ApiKeyAuth
Request Body schema: application/json
storageNumber
required
string

Unique storage number

assetPartUnit
required
string

Asset part unit ID being stored

serialNumber
string

Serial number of the part unit

storageType
required
string
Enum: "inventory" "spare" "buffer" "quarantine" "maintenance"

Type of storage

storageReason
string

Reason for storage

storedBy
required
string

User who stored the part

authorizedBy
string

User who authorized the storage

storageDate
string <date-time>

Date when the part was stored

expectedRetrievalDate
string <date-time>

Expected retrieval date

required
object
status
string
Default: "stored"
Enum: "stored" "reserved" "allocated" "picked" "expired"

Current storage status

condition
string
Enum: "new" "good" "fair" "poor" "damaged"

Condition when stored

object
preservationMethod
string
Default: "none"
Enum: "none" "plastic-wrap" "desiccant" "vacuum-seal" "oil-coating"

Preservation method used

lastInspectionDate
string <date-time>

Last inspection date

nextInspectionDate
string <date-time>

Next scheduled inspection date

object
tags
Array of strings

Storage tags for categorization

barcode
string

Storage barcode

qrCode
string

Storage QR code

weight
number <double> >= 0

Weight of the stored item

object
notes
string

Additional notes

object

Additional metadata

Responses

Request samples

Content type
application/json
{
  • "storageNumber": "STR-2023-001",
  • "assetPartUnit": "60f7b1b3e4b0e8b3f8b3f8b4",
  • "serialNumber": "SN-EP001-2023-001",
  • "storageType": "inventory",
  • "storageReason": "New inventory received",
  • "storedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
  • "authorizedBy": "60f7b1b3e4b0e8b3f8b3f8b6",
  • "storageDate": "2023-01-15T10:00:00Z",
  • "expectedRetrievalDate": "2023-06-15T10:00:00Z",
  • "location": {
    },
  • "status": "stored",
  • "condition": "new",
  • "storageEnvironment": {
    },
  • "preservationMethod": "none",
  • "lastInspectionDate": "2019-08-24T14:15:22Z",
  • "nextInspectionDate": "2019-08-24T14:15:22Z",
  • "reservedFor": {
    },
  • "tags": [
    ],
  • "barcode": "string",
  • "qrCode": "string",
  • "weight": 0,
  • "dimensions": {
    },
  • "notes": "string",
  • "metadata": { }
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Get asset part unit storage record by ID

Retrieve a specific asset part unit storage record by its ID

Authorizations:
ApiKeyAuth
path Parameters
id
required
string

Asset part unit storage record ID

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Update asset part unit storage record

Update an existing asset part unit storage record with new data

Authorizations:
ApiKeyAuth
path Parameters
id
required
string

Asset part unit storage record ID

Request Body schema: application/json
storageNumber
required
string

Unique storage number

assetPartUnit
required
string

Asset part unit ID being stored

serialNumber
string

Serial number of the part unit

storageType
required
string
Enum: "inventory" "spare" "buffer" "quarantine" "maintenance"

Type of storage

storageReason
string

Reason for storage

storedBy
required
string

User who stored the part

authorizedBy
string

User who authorized the storage

storageDate
string <date-time>

Date when the part was stored

expectedRetrievalDate
string <date-time>

Expected retrieval date

required
object
status
string
Default: "stored"
Enum: "stored" "reserved" "allocated" "picked" "expired"

Current storage status

condition
string
Enum: "new" "good" "fair" "poor" "damaged"

Condition when stored

object
preservationMethod
string
Default: "none"
Enum: "none" "plastic-wrap" "desiccant" "vacuum-seal" "oil-coating"

Preservation method used

lastInspectionDate
string <date-time>

Last inspection date

nextInspectionDate
string <date-time>

Next scheduled inspection date

object
tags
Array of strings

Storage tags for categorization

barcode
string

Storage barcode

qrCode
string

Storage QR code

weight
number <double> >= 0

Weight of the stored item

object
notes
string

Additional notes

object

Additional metadata

Responses

Request samples

Content type
application/json
{
  • "storageNumber": "STR-2023-001",
  • "assetPartUnit": "60f7b1b3e4b0e8b3f8b3f8b4",
  • "serialNumber": "SN-EP001-2023-001",
  • "storageType": "inventory",
  • "storageReason": "New inventory received",
  • "storedBy": "60f7b1b3e4b0e8b3f8b3f8b5",
  • "authorizedBy": "60f7b1b3e4b0e8b3f8b3f8b6",
  • "storageDate": "2023-01-15T10:00:00Z",
  • "expectedRetrievalDate": "2023-06-15T10:00:00Z",
  • "location": {
    },
  • "status": "stored",
  • "condition": "new",
  • "storageEnvironment": {
    },
  • "preservationMethod": "none",
  • "lastInspectionDate": "2019-08-24T14:15:22Z",
  • "nextInspectionDate": "2019-08-24T14:15:22Z",
  • "reservedFor": {
    },
  • "tags": [
    ],
  • "barcode": "string",
  • "qrCode": "string",
  • "weight": 0,
  • "dimensions": {
    },
  • "notes": "string",
  • "metadata": { }
}

Response samples

Content type
application/json
{
  • "success": true,
  • "data": {
    }
}

Delete asset part unit storage record

Delete an existing asset part unit storage record

Authorizations:
ApiKeyAuth
path Parameters
id
required
string

Asset part unit storage record ID

Responses

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "Asset part unit storage record deleted successfully"
}