Skip to main content
POST
/
plants
cURL
curl --request POST \
  --url http://localhost:3001/plants \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Monstera Deliciosa",
  "id": 1,
  "tag": "<string>",
  "related_plants": [
    {
      "name": "<string>"
    }
  ]
}
'
{
  "name": "Monstera Deliciosa",
  "tag": "<string>",
  "related_plants": [
    {
      "name": "<string>"
    }
  ]
}
This is some custom markdown content for the create endpoint.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Plant to add to the store

name
string
default:Monstera Deliciosa
required

The name of the plant

id
integer<int64>
default:1
required

Identification number of the plant

tag

Pure-string tag to specify the type

Related plants

Plant name

Response

plant response

name
string
default:Monstera Deliciosa
required

The name of the plant

tag

Pure-string tag to specify the type

Related plants

Plant name