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: oQsSmhuIO1DzgA1o50sHhA
Client: z47xKhV8qo6XtiCpawqXvA
Uid: aileen@breitenberg.co
Host: example.org
Cookie: 

Route

DELETE /v1/learning_objects/899/attachment/2

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/899/attachment/2" -d '' -X DELETE \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: oQsSmhuIO1DzgA1o50sHhA" \
	-H "Client: z47xKhV8qo6XtiCpawqXvA" \
	-H "Uid: aileen@breitenberg.co"

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=YzIzQU1PeTNNRUZOSkZleWNqSTdKa1k5UlVFWC9wNUhiSkFsWVpUckU4L3dWc20yZmNvOFNOeVlxWDVNQmc1RUYvT1piU3huMGtUR0RXVDRZTVdsbWx1anZtdEFYMUtlZ1FNQksrVjFMMXFBY0M0cnJpMGhtQjJHUWF2aW04amlvcFVmV1NvWCsvTlhzVDJOd0kvQVBUQndaclJ5YkNUK3VxaThQL1JRb3pwSmZmTVY2OTFUZnhUb0ZVR2dWL21kLS1vV1JSYm5Td3lQRzV2dWIxUzhkNFJRPT0%3D--02c1044e62c8bd2d0235f8d7c5bd5c7926475ef1; path=/; HttpOnly
Vary: Origin
ETag: W/"36a9e7f1c95b82ffb99743e0c5c4ce95"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: a10541d2-d412-4240-84f3-6dc6a506e2b0
X-Runtime: 0.121392
Content-Length: 1

Status

200 OK

Body