Mime Types API

Mime Types are the types/extentions which an Object Type can have.

Updating mime_types

PUT /v1/mime_types/:id

Parameters

Name Description
mime_type[extension] The name of the mime_type
mime_type[mime_type] The mime_type

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: hK9rAE_T3msRPkZ2yxo91A
Client: lI2i3qJSY8LNyHLSe6gXug
Uid: cyril_treutel@torp.biz
Host: example.org
Cookie: 

Route

PUT /v1/mime_types/38

Body

{"mime_type":{"extension":"gif","mime_type":"application/soap+xml"}}

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/mime_types/38" -d '{"mime_type":{"extension":"gif","mime_type":"application/soap+xml"}}' -X PUT \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: hK9rAE_T3msRPkZ2yxo91A" \
	-H "Client: lI2i3qJSY8LNyHLSe6gXug" \
	-H "Uid: cyril_treutel@torp.biz"

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=NUU3S0dMQ1VXQjA3aTZoZU8yMytNY3lVSWRTcW1BZytqZGw5aEMzVDhsVGRKZUUxZ3FSNzFTUU5BUFJrRGM0OEw3NFRlVlo3K0JQWHd3RUlvVHN4Q01rWGlaZmJ4bitWU1lpQzZLRkdMV20zT280bUw1eG1jU1dtTE03VmpKczZQZEdiWEhIMCt5LzBjVGtpUDVvbUZDdWMxamE4cThyZVY2d3doYTVaYVBoQldPemRqODlGbG9MRm05Z0xwcG4vLS10VHNuMkZBUk8vS2JqT2ptTVJaRzR3PT0%3D--19130015dc3e6d5cb4da3e356c03c9925230cc2a; path=/; HttpOnly
Vary: Origin
ETag: W/"c75c5f14f53f10843d8a1b5e6a7eb5dc"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: e602e102-6bfa-4cc7-bf04-b02bf2ab7b97
X-Runtime: 0.103385
Content-Length: 62

Status

200 OK

Body

{
  "id": 38,
  "extension": "gif",
  "mime_type": "application/soap+xml"
}