accessory_operations
Checkout and checkin accessories in Snipe-IT, assigning them to users, assets, or locations, and track outstanding checkouts.
Instructions
Perform checkout/checkin operations on accessories.
Accessories can be checked out to a user, asset, or location. Each checkout decrements the available quantity, and checkin increments it back.
Operations:
checkout: Checkout an accessory to a user/asset/location (requires checkout_data with checkout_to_type and assigned_to_id)
checkin: Checkin an accessory (requires checkout_id from the checkout record)
list_checkouts: List all users who have this accessory checked out
Returns: dict: Result of the operation including success status and data
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The operation to perform on the accessory | |
| checkout_id | No | Checkout ID (required for checkin action) | |
| accessory_id | Yes | Accessory ID | |
| checkout_data | No | Checkout data (required for checkout action) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||