IntelliGrow: Users
The users resources lets you access your user profile data on demand and in JSON format.
Resources
GET /intelligrow/users/profile
PUT /intelligrow/users/profile/alerting
PUT /intelligrow/users/profile/language
PUT /intelligrow/users/profile/units
Retrieve your User Profile
GET /intelligrow/users/profile
Request your Autogrow user profile data
Request Headers
Content-Type: application/json
Authorization: <token>
Parameters
username: "string"
Example Request
curl https://api.autogrow.com/v1/intelligrow/users/profile?username=<username>
HTTP/1.1 200 OK
Response Object
{
"profile": {
"created": 0,
"updated": 0,
"language": "ENG",
"confirmed": "timestamp",
"trial_period": 30,
"alerting": {
"emails": [
{
"email": "string",
"confirmed": true
},
{
"email": "string",
"confirmed": true
}
],
"email_alert": true,
"mobiles": [
{
"mobile": "string",
"confirmed": true
},
{
"mobile": "string",
"confirmed": true
}
],
"mobile_alert": true
},
"units": {
"date_format": "dd/mm/yy",
"temperature": "C",
"ec": {
"ec_unit": "CF",
"tdscs": 0
}
},
"marketing": {
"first_name": "string",
"last_name": "string ",
"country": "string"
}
}
}
Error Response
{
"error_message": "string",
"error_type": "string"
}
Response Codes
Code | Description |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
503 | Service Unavailable |
Set your User Alerts
PUT /intelligrow/users/profile/alerting
Request to set your alert notifications
Request Headers
Content-Type: application/json
Authorization: <token>
Request Body
{
"username": "string",
"alerting": {
"email": ["string"],
"email_alert": true,
"mobile": ["string"],
"mobile_alert": true
}
}
Example Request
curl -X PUT https://api.autogrow.com/v1/intelligrow/users/profile/alerting
HTTP/1.1 200 OK
Error Response
{
"error_message": "string",
"error_type": "string"
}
Response Codes
Code | Description |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
Set your Language Preference
PUT /intelligrow/users/profile/language
Request to set your user profile language
Request Headers
Content-Type: application/json
Authorization: <token>
Request Body
{
"username": "string",
"language": "string"
}
Example Request
curl -X PUT https://api.autogrow.com/v1/intelligrow/users/profile/language
HTTP/1.1 200 OK
Error Response
{
"error_message": "string",
"error_type": "string"
}
Response Codes
Code | Description |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
Set your Measurement Unit Preference
PUT /intelligrow/users/profile/units
Request to set your user measurement unit preference
Request Headers
Content-Type: application/json
Authorization: <token>
Request Body
{
"username": "string",
"units": {
"date_format": "dd/mm/yy",
"temperature": "C",
"ec": {
"ec_unit": "CF",
"tdscs": 0
}
}
}
Example Request
curl -X PUT https://api.autogrow.com/v1/intelligrow/users/profile/units
HTTP/1.1 200 OK
Error Response
{
"error_message": "string",
"error_type": "string"
}
Response Codes
Code | Description |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |