Educational Stages API

Educational stages to digital resources, like Ensino Médio, Ensino Fundamental.

Adding Educational Stages

POST /v1/:type/:id/educational_stages

Parameters

Name Description
id The id of object
type Represents the type of object, [learning_objects, collection]
educational_stages array with the educational_stages ids

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: AnY60PZe19ggXkAtxw-I6w
Client: kqblsyboX0Lx2T5ylmhmoA
Uid: precious@padberg.co
Host: example.org
Cookie: 

Route

POST /v1/learning_objects/756/educational_stages

Body

{"educational_stages":[1]}

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/756/educational_stages" -d '{"educational_stages":[1]}' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: AnY60PZe19ggXkAtxw-I6w" \
	-H "Client: kqblsyboX0Lx2T5ylmhmoA" \
	-H "Uid: precious@padberg.co"

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
Set-Cookie: _session_id=Sm1iZHU3cnJIQjUxR1AvSXZieW9GNVphRjBUeUFQZEN3TkpZUDdjOG45SG93NGNrNExHNkthQklnaUxhTzlBR1NXVGZtZ1RpWWNkTWM5U25VYUpObTRuOWJYbjZFU2QzS1lUcC8vblpBTnUvWjRWRk1LS2xSUHJJNlBEQWcyRmkyZjVKZjQvVHlvalExNlo0MDh5SUxrMFh4QjhqRDllemZBSU1pcXdvSnF5emVJdXczRHJNTGM5TTkrRTNvbjA0LS1RQ3U4emQ4SDFrVS9SNXVFZGVnbEtnPT0%3D--fa7685cf13e25ccb8033fae8d8c35f005473dc21; path=/; HttpOnly
Vary: Origin
ETag: W/"6574a923666a5cabff394c84ca568638"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 17d41af3-1437-4a18-9ed3-fd574de756ef
X-Runtime: 0.122034
Content-Length: 238

Status

201 Created

Body

[
  {
    "id": 1,
    "name": "Educação Infantil",
    "created_at": "2021-02-25T14:03:43.230Z",
    "updated_at": "2021-02-25T14:03:43.230Z"
  },
  {
    "id": 24,
    "name": "EducationalStage 18",
    "created_at": "2021-02-25T14:09:43.084Z",
    "updated_at": "2021-02-25T14:09:43.084Z"
  }
]