Institutions API

Institutions can be schools, universities, or any other institution.

Updating an institution

PUT /v1/institutions/:id

Parameters

Name Description
id The id of the institution
name The name of the institution
description The description of the institution
address The address of the institution
city The city of the institution
country The country of the institution

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: WVNH5FyS8fpekqMjpdbsQQ
Client: kSaS5Mz4gGumVaKw-2trIA
Uid: elnora@hackettturner.biz
Host: example.org
Cookie: 

Route

PUT /v1/institutions/1

Body

{"name":"Margarida Teixeira","description":"Rerum rerum error qui voluptate provident expedita. Placeat non enim mollitia. Fuga quia dolorem sint aliquid. Ut dolores facilis repellendus est deserunt.","address":"345 Viela Valentina Nogueira","city":"Isabela de Nossa Senhora","country":"África do Sul"}

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/institutions/1" -d '{"name":"Margarida Teixeira","description":"Rerum rerum error qui voluptate provident expedita. Placeat non enim mollitia. Fuga quia dolorem sint aliquid. Ut dolores facilis repellendus est deserunt.","address":"345 Viela Valentina Nogueira","city":"Isabela de Nossa Senhora","country":"África do Sul"}' -X PUT \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: WVNH5FyS8fpekqMjpdbsQQ" \
	-H "Client: kSaS5Mz4gGumVaKw-2trIA" \
	-H "Uid: elnora@hackettturner.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=Y0hLNG9BKzhrOE1pWlJvaCtDUEFMdFBUK3FQL0hGVkZ0UE5RU005MjVuUlRSYVFxRmdBYnY0L1NGZG9sVTROb2RDUk8ySmkySzRwbnQ0c2luMGRwRTRiODNtdWd6cmhmcVkrVUJ1WDVHMnA5YjNqTkkyUGN4RjgrY0o5U3JEK3JEakZXRVc2OVFOOGl4VzdKSkFURkduemtPU29kT3dmTkxROVRvN0Q2eFZYUlBiNW1pb0pyV0dIZjkrNzBjTWRtLS0vQkMvNTRmVDREWU1ocCttTlFKY2tBPT0%3D--f5662c6fc8843d6f2dab839573b4126146a56c0e; path=/; HttpOnly
Vary: Origin
ETag: W/"609ae5648a0c4497e200cefaa8dbbe84"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 6b4d9780-fa08-47a5-8ac1-7d9b71ec2f6e
X-Runtime: 0.113395
Content-Length: 402

Status

200 OK

Body

{
  "id": 1,
  "name": "Margarida Teixeira",
  "description": "Rerum rerum error qui voluptate provident expedita. Placeat non enim mollitia. Fuga quia dolorem sint aliquid. Ut dolores facilis repellendus est deserunt.",
  "address": "345 Viela Valentina Nogueira",
  "city": "Isabela de Nossa Senhora",
  "country": "África do Sul",
  "avatar": "",
  "created_at": "2019-03-08T13:42:17.186Z",
  "updated_at": "2019-03-08T13:46:46.118Z"
}