Tags API

Tags to digital resources of free and personal assignment.

Adding a tag

POST /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: RczCaukFwTFgML1LvVWICA
Client: 1V2siYfmgz1JeV5wF5JdJA
Uid: christiana@rath.info
Host: example.org
Cookie: 

Route

POST /v1/learning_objects/1065/tagging

Body

{"tags":{"name":"accusantium","owner_id":9635,"owner_type":"User"}}

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/1065/tagging" -d '{"tags":{"name":"accusantium","owner_id":9635,"owner_type":"User"}}' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: RczCaukFwTFgML1LvVWICA" \
	-H "Client: 1V2siYfmgz1JeV5wF5JdJA" \
	-H "Uid: christiana@rath.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=UnBwUUk2QVZYbDBzWi8reFN3eVhuYjlBSFg4dU5rYnlvUituOGdMayt1SjVKOWhEQVRoMUVWSkU3Y1IrejVra1FwMWhiVnluMTQ0eGFtcG95OEtRbDBERWw2UkNHUWNSYlRUNHlXc1VCaCsvL0VyeUFPTlJXQ0xSNDR5OEhXWWc0MWVETlR1SVdZVlBUeklBRlUvbURybVo4TzV3Nk1wWEpqN3FmdW1GMk9FVmJDZTd2eUFuRFJseTRBVmNNS05GLS1aTStUVGVCeGdlNTBNdjlTZUNPYkhBPT0%3D--fd2efa4724b667cd77aacf1052e71079ade8f5e6; path=/; HttpOnly
Vary: Origin
ETag: W/"7948a9b77bf1081b5d81dd913efc96e3"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: f8594707-586a-40f5-be05-5da74f91bcbf
X-Runtime: 0.136579
Content-Length: 664

Status

201 Created

Body

[binary data]