Skip to main content
PUT
/
api
/
management
/
goals
/
{goal}
Atualizar informações de uma meta
curl --request PUT \
  --url https://api.olie.ai/api/management/goals/{goal} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "children": [
    []
  ],
  "comparison_mode": "sample_text",
  "description": "sample_text",
  "end_date": "sample_text",
  "periodicity": 72,
  "start_date": "sample_text",
  "status": "sample_text",
  "target": 10,
  "title": "sample_text",
  "type": "sample_text",
  "type_options": {
    "0": [],
    "step_id": 0,
    "user_id": "sample_text"
  }
}
'

Authorizations

Authorization
string
header
required

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

Path Parameters

goal
string
required

Body

application/json
children
any[][]
Example:
[]
Example:
[[]]
comparison_mode
string
Example:

"sample_text"

description
string
Example:

"sample_text"

end_date
string
Example:

"sample_text"

periodicity
number
Example:

72

start_date
string
Example:

"sample_text"

status
string
Example:

"sample_text"

target
number
Example:

10

title
string
Example:

"sample_text"

type
string
Example:

"sample_text"

type_options
object

Response

200

200