Skip to main content
PUT
/
plants
/
{id}
/
location
cURL
curl --request PUT \
  --url http://sandbox.mintlify.com/plants/{id}/location \
  --header 'Content-Type: application/json' \
  --header 'bearerAuth: Bearer <token>' \
  --data '{
  "room": "Living Room",
  "position": "Near the window",
  "lightLevel": "low",
  "humidity": 65,
  "temperature": 22
}'
{
  "room": "Living Room",
  "position": "Near the window",
  "lightLevel": "low",
  "humidity": 65,
  "temperature": 22
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

ID of the plant

Body

application/json

Location combining base location info with environmental details

Complete location information combining base location and environment

room
string
required

Room where the plant is located

Example:

"Living Room"

position
string
required

Position within the room

Example:

"Near the window"

lightLevel
enum<string>
required

Amount of light the location receives

Available options:
low,
medium,
high,
direct
humidity
number
required

Humidity percentage

Required range: 0 <= x <= 100
Example:

65

temperature
number

Average temperature in Celsius

Example:

22

Response

Location updated

Complete location information combining base location and environment

room
string
required

Room where the plant is located

Example:

"Living Room"

position
string
required

Position within the room

Example:

"Near the window"

lightLevel
enum<string>
required

Amount of light the location receives

Available options:
low,
medium,
high,
direct
humidity
number
required

Humidity percentage

Required range: 0 <= x <= 100
Example:

65

temperature
number

Average temperature in Celsius

Example:

22