Request

POST https://api.eloomi.com/v3/goals/evaluations

Request headers

Parameter name Value Description Additional
ClientId string

Provided by eloomi

Required
Authorization string

Look in the documentation for the authentication endpoint on how to construct this

Required

Request body

[
    {
        "data": "number",
        "date": "YYYY-MM-DD HH:MM:SS",
        "subgoal_id": "integer",
        "user_id": "integer"
    }
]

Properties

Name Example Description Additional
data 1000000

The number that the user managed to get for the given subgoal

Required
date "2015-02-13 20:22:22"

The time the evaluation was made. Defaults to now

Optional
subgoal_id 23

The eloomi id of the subgoal that should be evaluated

Required
user_id 501

The eloomi id of the user that should be evaluated

Required

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

Evaluation created

GoalEvaluationSuccess
400 Bad Request

Request contained invalid data

GenericSuccess
401 Unauthorized

Not allowed

ErrorSuccess