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: r8Cy1y61GNseQEYHWM37cQ
Client: x0ovASnqrnN2F7Aj4tgmMw
Uid: donnie@cronin.name
Host: example.org
Cookie: 

Route

POST /v1/learning_objects/659/educational_stages

Body

{"educational_stages":[1]}

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/659/educational_stages" -d '{"educational_stages":[1]}' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: r8Cy1y61GNseQEYHWM37cQ" \
	-H "Client: x0ovASnqrnN2F7Aj4tgmMw" \
	-H "Uid: donnie@cronin.name"

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=d25lcXplMW9WUnVMMW9ndklDWmhiU0QxY1FrOC9CYlh3THZINEJtRjE4U1hqRitXZVFwTUZ1eXR5UlhPMkFPUTNKUTgxSEtrRjBQTkxCU2U2RHE4a1p4QjJnZ3dxdlZoV2NsbkNqM1d2bEtScGd6R2xaNG5kYWRVSGE2bUErcG42di9mYVViOGI5M2d3VnNaWU9iKzh5MmpLL0ZhbHZLSStoejRmTVdUTVdlbXpieTF4QjZXeklyc2xKMFRtUWd1LS00TkpkME5lSFA1WkNyN0ZVSjcxd0VnPT0%3D--ec15f99c2b91798105637d4c905bb3001eb585d6; path=/; HttpOnly
Vary: Origin
ETag: W/"5b36fcea38e08e0bf2c58ae242c90c93"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 420f0511-3178-4c9c-8d6f-5480e2438983
X-Runtime: 0.122499
Content-Length: 264

Status

201 Created

Body

[
  {
    "id": 3,
    "name": "Ensino Fundamental II  (do 6º até o 9º ano)",
    "created_at": "2019-03-08T13:42:18.188Z",
    "updated_at": "2019-03-08T13:42:18.188Z"
  },
  {
    "id": 1,
    "name": "Educação Infantil",
    "created_at": "2019-03-08T13:42:18.179Z",
    "updated_at": "2019-03-08T13:42:18.179Z"
  }
]