Learning Objects API

Learning objects are educational contents (movie, odf, file, sound, etc) which an user can show, create, update and destroy.

Destroy an attachment (file) of a learning object

DELETE /v1/learning_objects/:learning_object_id/attachment/:attachment_id

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: JVDos53e64kmF0pKcuIbmQ
Client: s91xh9TaCt5naVVdLt_FPA
Uid: mavis_kozey@kirlin.biz
Host: example.org
Cookie: 

Route

DELETE /v1/learning_objects/901/attachment/2

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/901/attachment/2" -d '' -X DELETE \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: JVDos53e64kmF0pKcuIbmQ" \
	-H "Client: s91xh9TaCt5naVVdLt_FPA" \
	-H "Uid: mavis_kozey@kirlin.biz"

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: text/plain; charset=utf-8
Set-Cookie: _session_id=ZzZyNE40cThEeTBQYWlYd240RlZPc3FOOWFlR1J1WTJLRXV6Lyt3Qy83WUlwa1MveU9RaDdUdms2REJydVkwSVp5OEl0ZlF1N1Q3MHVSd0dLSGVvUFVubEYydjV5ZlRuendxeEZvZHZzMzhNS3BNd3ZteG5TT0dJYktIUEpMMXBlRG5yay9vVlp3b2YvVmpCK1VjcGNGYjQ2bVExTmtvdXNmUWdIazBiMks5eHJ4dGRHWTRDOURoSkhNTUplMnNkLS15Zk9sZGhVVEJFV0lhNDNybW1sTEd3PT0%3D--b0e2d9872450bbef5926065ac495c4e474c50979; path=/; HttpOnly
Vary: Origin
ETag: W/"36a9e7f1c95b82ffb99743e0c5c4ce95"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: b176eb67-cda0-4265-b2d6-01ac016deafc
X-Runtime: 0.111011
Content-Length: 1

Status

200 OK

Body

[binary data]