Object Type API

Object Types are the types of the objects.

Updating an object_type

PUT /v1/object_types/:id

Parameters

Name Description
id The id of the object_type
object_type[name] The name of the object type
object_type[mime_types] Array of mime_types

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: qbNDBVQ730sm3D0PacgTUA
Client: GYYCZtb_GUgnQMZl1vo3gQ
Uid: keagan@larkin.io
Host: example.org
Cookie: 

Route

PUT /v1/object_types/1

Body

{"object_type":{"name":"ea","mime_types":[{"id":110}]}}

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/object_types/1" -d '{"object_type":{"name":"ea","mime_types":[{"id":110}]}}' -X PUT \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: qbNDBVQ730sm3D0PacgTUA" \
	-H "Client: GYYCZtb_GUgnQMZl1vo3gQ" \
	-H "Uid: keagan@larkin.io"

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=MXpmT3VMOTV5OEtER3o2R2pvZWV6UVhCN3lWeTVqQ3JrdExtTWZtUTVFSnJtcWRNSlZVeXp2bE5nR3BtTmRnd0VDQ0hPclkydGN0ZlFzc2IwNjIwSFBsRFo3R1JHVm9TL2tGbWVYNGJoS1hYSGRUUmREenQ4UjVhSzRzZUNvWWMyUTl3UXB3dElIcXV5azN1Y0N3M24rUm5rTWRxdFRUMXV5djZWcThSQjZiSldtSk9VMEo5NysrQ01OOUZqckZVLS1xMjhIM2hyd0JTRnVqMU1JRWNXa0tBPT0%3D--6d717e5835ca4cf8d7f33af0b85da384a92c802e; path=/; HttpOnly
Vary: Origin
ETag: W/"7ce5cead69138d4d24d14318a5848492"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 3ddfb83c-68b0-4211-b35b-059a32308cdf
X-Runtime: 0.103107
Content-Length: 36

Status

200 OK

Body

{
  "id": 1,
  "name": "ea",
  "mime_types": [

  ]
}