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: rNa3PJVEs8I0nB92ETCV7A
Client: EVy1RTxohfJZ-utqEJFKqQ
Uid: kelton@stark.info
Host: example.org
Cookie: 

Route

DELETE /v1/learning_objects/895/attachment/2

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/895/attachment/2" -d '' -X DELETE \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: rNa3PJVEs8I0nB92ETCV7A" \
	-H "Client: EVy1RTxohfJZ-utqEJFKqQ" \
	-H "Uid: kelton@stark.info"

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=aE8yREUyRDNIVjFQMGpBVS9jcEd2MkcyQjlkaXF0Uk1VVzZiNlhWMHpueTE0VjR4T2wyZmdKZmNiNjZBeUhUbGNwWTV1allxZUJRZGo5emVQMEpjY3ZIbzd5ZzB4a25yekFJbWtzZjIxYXlEL0l5MDBmRWVjVjdFZHBBNFFHcm5rbTNoRDNZS2txT0phTHVkUU5FaWtHREF5d2FmWkVRS2Z3SDYwQ1FETmdHNCsyVDZTSFpVRkFxaEswZFp4TE9pLS16ek5KOWtGVEVGVXVqSWFiOEtLQVlRPT0%3D--377c51ac877b6869c42b1922ebfc48f6b5c2f52a; path=/; HttpOnly
Vary: Origin
ETag: W/"36a9e7f1c95b82ffb99743e0c5c4ce95"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 55edf374-f4d4-47f5-ba20-4eecf375c958
X-Runtime: 0.110402
Content-Length: 1

Status

200 OK

Body

[binary data]