Skip to navigation

Add an API

View as Markdown
This is a sample endpoint. If you've added your OpenAPI spec, your API reference is building now. Check GitHub Actions and refresh when complete.

Request

Plant to add
namestringRequired
Display name for the plant
speciesstringRequired
Scientific name of the plant
wateringFrequencyenumOptional
How often the plant needs water
Allowed values:
sunlightenumOptional
Sunlight requirements
Allowed values:

Response

Plant successfully added
idstringOptional
Unique identifier for the plant
namestringOptional
Display name for the plant
speciesstringOptional
Scientific name of the plant
wateringFrequencyenumOptional
Allowed values:
sunlightenumOptional
Allowed values:
createdAtdatetimeOptional
When the plant was added

Errors

400
Bad Request Error