- Dev notes
- soil-pest-resource-controller
- volunteer-controller
- volunteer-activity-controller
- resource-exchange-controller
- plot-controller
- local-partner-controller
- knowledge-resource-controller
- crop-plan-controller
- community-garden-controller
- user-controller
- role-controller
- weather-controller
- auth-controller
Create a new plot
POST
/api/admin/plots
plot-controller
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
plotName
string
optional
sunlight
string
optional
soilType
string
optional
Example
{
"plotName": "string",
"sunlight": "string",
"soilType": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/admin/plots' \
--header 'Content-Type: application/json' \
--data-raw '{
"plotName": "string",
"sunlight": "string",
"soilType": "string"
}'
Responses
🟢200Plot created successfully
application/json
Body
plotName
string
optional
sunlight
string
optional
soilType
string
optional
Example
{
"plotName": "string",
"sunlight": "string",
"soilType": "string"
}
🟠400Invalid input data
🟠404Not Found
🔴500Internal server error
Modified at 2024-06-11 16:24:49