Educational Stages API

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

Removing Educational Stages

DELETE /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: JjOGpO_MRk9Da3aaL6bS8Q
Client: 54prGmknrxvoTQCGnkUqdA
Uid: jose_simonis@price.io
Host: example.org
Cookie: 

Route

DELETE /v1/learning_objects/672/educational_stages

Body

{"educational_stages":[1]}

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/672/educational_stages" -d '{"educational_stages":[1]}' -X DELETE \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: JjOGpO_MRk9Da3aaL6bS8Q" \
	-H "Client: 54prGmknrxvoTQCGnkUqdA" \
	-H "Uid: jose_simonis@price.io"

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=YjNBUm4rM3QwdjlxWmE3VkdIUmE3VG04Wmc1V3NYRHpIMTRZTEE4QW4zVWhPZVhZSE9rMUh3QTRsRzZhSDJEdFZ4eFlQcWY5ZVZMTktxK1NZQ1NxRUM4Qy9HZW9NakQwcWtKd0hwM3hTNHRQU2RWTWpiOGFlWXJNYVRKOVUwaGV1bllBaERKQkhNWjc0UzVqaCsycURsR2VrNElwWDU1UG9xb1BIR2ZDZ2swSnh1M3hpRlpWNlIwTHBrU2ZGdnlhLS1rdFlReHBMWWxBeFR6VG9nR3RqeXpBPT0%3D--6b1ab8795009c5088056ed34ed655e25a9851af7; path=/; HttpOnly
Vary: Origin
ETag: W/"a4d0c9b6f2d7d6d0f16622d1d62a52cd"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 48c4ba26-4a8d-4ab7-bd1f-0c4983f702dd
X-Runtime: 0.105240
Content-Length: 106

Status

200 OK

Body

[
  {
    "id": 6,
    "name": "Outros",
    "created_at": "2019-03-08T13:42:18.200Z",
    "updated_at": "2019-03-08T13:42:18.200Z"
  }
]