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: dyNceGoYD4r1pTwMZ9fgWg
Client: K98R6gswGkJUtXOzf9oTUQ
Uid: hosea.grimes@anderson.com
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: dyNceGoYD4r1pTwMZ9fgWg" \
	-H "Client: K98R6gswGkJUtXOzf9oTUQ" \
	-H "Uid: hosea.grimes@anderson.com"

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=b3g3QVhpRWVMUloxUHltS29nOHhMTFkxVE5zWWdOcVJYNS9TYlNEN1dWK20rQ1ZvR1RjeWl1NlZ5VTRHYm14aWFLaXRzV1hZOE1Ec3B0cUpxQ281S3pFeHVBdWhtakE2Ry9yY05xUkFuSnFUY0x5QUJQNldYalIvTWwyWjU1WnA2amsxV2pBMnNnYisrY2JFV3ZiUm4yNGpGdDducWExZ3hLai90MEJDRGd5VEczWEJubVFobVRMbEloaGtzbEMyLS1MdllpeVA5ZVdGSUkrVW9OUjVhQUFRPT0%3D--89a25313d4e873b418c95c09c70a66c1d6f401ab; path=/; HttpOnly
Vary: Origin
ETag: W/"4df20f95e824b2af44a61642d88daaf0"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: f48ee045-6c09-49cb-ad7b-61324c0a1b37
X-Runtime: 0.341701
Content-Length: 20

Status

200 OK

Body

{
  "status": "deleted"
}