Collections API

Collection is a group of educational content or another collection, which an user can show, create, update and destroy.

Destroying a collection

DELETE /v1/collections/:id

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: YvbmPT3W0JjNY3cchMuoPA
Client: 36UGGTCyOrNgOTgnpLeMaA
Uid: sigurd_treutel@wilkinson.info
Host: example.org
Cookie: 

Route

DELETE /v1/collections/50

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/collections/50" -d '' -X DELETE \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: YvbmPT3W0JjNY3cchMuoPA" \
	-H "Client: 36UGGTCyOrNgOTgnpLeMaA" \
	-H "Uid: sigurd_treutel@wilkinson.info"

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=K3o4N1hGMndCNVhpTUlBZTFvS21McjhGb1BPYXlveWFQR2o3NUFjMXRlaiswanZzUnF1UDFLbVFLcitxb1hhemlWb0tIRi9uMmF3R2tLdWtuRDE0aTRGZGsrRGdjYXZaZmcyT0d2SVgrYUlZQ2dremN5bEFWUy9rWjdvVXN3WDdraWQxU0FoaTBtMlFLeFJvVkxabjZ1WnRaSHlDWkI0c2JiSXFoZkdkK2ZhU0FhUGs3OUlQOEhYNlpjektvalI0LS1Vc0hrTVJVQmM1bGhjeDlGTzduejlBPT0%3D--26ac98177bbb0a534ba4b3e8a1e2ce304d8478f2; path=/; HttpOnly
Vary: Origin
ETag: W/"4df20f95e824b2af44a61642d88daaf0"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 51161f98-3657-49e2-a2f0-d79188e4e619
X-Runtime: 0.314088
Content-Length: 20

Status

200 OK

Body

[binary data]