Plant Catalog Management Guide
Step-by-step tutorial for creating, updating, tagging, and filtering plant inventory.
This guide walks you through managing the plant inventory catalog using the REST API endpoints.
1. Adding a New Plant
To add a plant item to the inventory catalog, send a POST request to /plant with the required metadata schema.
Request Payload (POST /v3/plant)
Code Example
2. Searching & Filtering Plants
Search by Status
Retrieve all plants matching specific inventory statuses (available, pending, sold):
Response Payload (200 OK)
Search by Tags
Find plants based on one or more category tags:
3. Uploading Plant Images
Attach high-resolution product photographs to an existing plant record via POST /plant/{plantId}/uploadImage:
Upload Image via multipart/form-data
Response Payload
4. Updating & Deleting Plants
- Update Existing Plant:
PUT /plant(updates all plant attributes). - Update Status via Form Data:
POST /plant/{plantId}(updatesnameandstatusvia URL-encoded form data). - Delete Plant:
DELETE /plant/{plantId}(requires validapi_keyorwrite:plantsscope).
Deleting a plant that has active pending orders will result in a 409 Conflict error. Ensure all orders are completed or cancelled prior to deleting plant inventory.