Institutions can be schools, universities, or any other institution.
Name | Description |
---|---|
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 |
Accept: application/json Content-Type: application/json Access-Token: GalEt-KFYT5a53qDUuqQqg Client: zJ__FTvLVfGBVA_Je_oF0g Uid: ava_dietrich@metz.org Host: example.org Cookie:
POST /v1/institutions
{"name":"Sra. Sara Cruz","description":"Qui vero pariatur eos tempora necessitatibus iure. Voluptatibus enim dolor. Similique aut minima. Amet tenetur labore ea voluptatem voluptatem voluptas.","address":"194 Ponte Emanuelly Moura","city":"Município de Laura do Sul","country":"Guernsey"}
curl "https://api.portalmec.c3sl.ufpr.br/v1/institutions" -d '{"name":"Sra. Sara Cruz","description":"Qui vero pariatur eos tempora necessitatibus iure. Voluptatibus enim dolor. Similique aut minima. Amet tenetur labore ea voluptatem voluptatem voluptas.","address":"194 Ponte Emanuelly Moura","city":"Município de Laura do Sul","country":"Guernsey"}' -X POST \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "Access-Token: GalEt-KFYT5a53qDUuqQqg" \ -H "Client: zJ__FTvLVfGBVA_Je_oF0g" \ -H "Uid: ava_dietrich@metz.org"
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=Tlg0SXpqbEgrRXIwWVlJSDRscTJ3YVFVSkxsYXdWUk10czVWTWRpRDJUMnVrZ2ZRc1pHUlFOa0k0Vkk0SGRRdUMrRlpBSi9YQVVNblJzQjUwb1JLc1RWMEkxbi9FRnR1eVZNNmx1ayttbWF2cGdtZDI0cy8xUkc1KzRoUERwYTNuUWVvUU1uWThmRnNmTmo0RnFYdVRDVkpucVFKcGpVMzZXSzloUDRLTndDU0ZibjJvMWFiaUNNWVlIZE4zaXRCLS1RYXZGMjNLU1Y1VUorNEU0cGliQ3BRPT0%3D--2d04342d9775842c90e99ed8bceff1371070bc5a; path=/; HttpOnly Vary: Origin ETag: W/"fbefbb4e1867da4e0e59bd1e3bde6ec9" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 91286397-c9ec-4372-8715-c67d2410b043 X-Runtime: 0.107111 Content-Length: 389
201 Created
{ "id": 43, "name": "Sra. Sara Cruz", "description": "Qui vero pariatur eos tempora necessitatibus iure. Voluptatibus enim dolor. Similique aut minima. Amet tenetur labore ea voluptatem voluptatem voluptas.", "address": "194 Ponte Emanuelly Moura", "city": "Município de Laura do Sul", "country": "Guernsey", "avatar": "", "created_at": "2021-02-25T14:09:52.829Z", "updated_at": "2021-02-25T14:09:52.829Z" }