Tags API

Tags to digital resources of free and personal assignment.

Untagging a object or collection

DELETE /v1/:type/:id/tagging

Parameters

Name Description
type Represents the type of object, [learning_objects,collections]
id The id of object
tags[name] The name of tag
tags[owner_id] The id of owner
tags[owner_type] Can be [User,Institution]

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: kfDdvZnMKHfLMtEgbwekMw
Client: fhKX1TEDkSIfi9mPR-Pl-A
Uid: jedidiah.farrell@johnston.net
Host: example.org
Cookie: 

Route

DELETE /v1/learning_objects/1071/tagging

Body

{"tags":{"name":"test","owner_id":9690,"owner_type":"User"}}

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/1071/tagging" -d '{"tags":{"name":"test","owner_id":9690,"owner_type":"User"}}' -X DELETE \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: kfDdvZnMKHfLMtEgbwekMw" \
	-H "Client: fhKX1TEDkSIfi9mPR-Pl-A" \
	-H "Uid: jedidiah.farrell@johnston.net"

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=Q3pMVURFYkdNWmw2N2F2Y3ZNcDhyY0JnbWpJMWdFdC9VMnNLQk5VRUd1ZnUreFJmTncwNGYySWtwbkF0dEh0MjNYWEMvc0YwV0UrRk53bkJZa3FhTldxWHJ3eVdScVIyaDBWRVJ5TzlERjNvOGF5Rzh1WTBMS3hlVCt0dzFvRis4bUxqMmZwQjZGR3pJT2JTYlJ6eWJ2d3lDMHlUSXgrVm83K3lQOHhHVElEdW81VzhKUW1CYzlTUUZXR2VBR3FlLS0zKzYveWd2MFlPVkxNZzdTOWt1c3p3PT0%3D--0358f9f78db1129c6f981bb09a02e2939cb4ebe5; path=/; HttpOnly
Vary: Origin
ETag: W/"e55ab179d75462e2cb83bdfd28c20c16"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: e753c416-22cc-466b-a91c-3234c7f0eefe
X-Runtime: 0.109024
Content-Length: 551

Status

200 OK

Body

[binary data]