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: s4nathKGNAdJGcz7KpWoFQ
Client: yIjLbuE3Klxwlq3GTYKDZg
Uid: daphne@cormier.co
Host: example.org
Cookie: 

Route

DELETE /v1/learning_objects/983/tagging

Body

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

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/983/tagging" -d '{"tags":{"name":"test","owner_id":8833,"owner_type":"User"}}' -X DELETE \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: s4nathKGNAdJGcz7KpWoFQ" \
	-H "Client: yIjLbuE3Klxwlq3GTYKDZg" \
	-H "Uid: daphne@cormier.co"

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=TTdBdSt2VU51clI1aUdPR1lHN0wxdmJOMUV5eHplL29zMlJYVVBqZ2owa1pLaTJNU3RCVmN6U3lYQlNNRGVLRlZZTnJuMmg2K0EzTkxSV0VjK2xnRXVJMXRwZ1lLcWduV0hVdSs4N3BaTkVteWlGRXFTcHphWDcrSmRHVm10M2h5R0FFaXVvUnRwWldZcmk5Sm5VWE5Gb2pkWnFiZjdBZURONkdlVURWemR1MXJ6eUdRREJNZEE0a09keit1dGdFLS1sQ2l4SG1DV2wrZXRCU3dXVWYydmZnPT0%3D--4e6278564e57ec16e093e335761199e23245e5de; path=/; HttpOnly
Vary: Origin
ETag: W/"7fe0b36933d6fb3082a40e7c5578137b"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: ab3b7ed2-57b1-4b07-9105-5133e5fa419f
X-Runtime: 0.126244
Content-Length: 551

Status

200 OK

Body

[
  {
    "id": 5533,
    "name": "Tag 5531",
    "created_at": "2019-03-08T13:48:55.896Z",
    "updated_at": "2019-03-08T13:48:55.896Z"
  },
  {
    "id": 5534,
    "name": "Tag 5532",
    "created_at": "2019-03-08T13:48:55.924Z",
    "updated_at": "2019-03-08T13:48:55.924Z"
  },
  {
    "id": 5535,
    "name": "Tag 5533",
    "created_at": "2019-03-08T13:48:55.953Z",
    "updated_at": "2019-03-08T13:48:55.953Z"
  },
  {
    "id": 5536,
    "name": "Tag 5534",
    "created_at": "2019-03-08T13:48:55.986Z",
    "updated_at": "2019-03-08T13:48:55.986Z"
  },
  {
    "id": 5537,
    "name": "Tag 5535",
    "created_at": "2019-03-08T13:48:56.019Z",
    "updated_at": "2019-03-08T13:48:56.019Z"
  }
]