User represents the teacher and students in the system.
Name | Description |
---|---|
id | The user id |
name | The name of the user |
The email of user | |
description | The user description |
education | The user education |
password | The password of user |
password_confirmation | The password confirmation of user |
terms_of_service | Checks if user agreed with terms of service |
avatar | The user avatar |
user[role_ids] | The user roles |
user[subjects] | Array with subjects ids |
Accept: application/json Content-Type: application/json Access-Token: BwwYLPlhDLbjv47GyvLHUA Client: 1nc_NlE631cinyfbOCjRUw Uid: lenna_botsford@yost.com Host: example.org Cookie:
PUT /v1/users/8897
{"name":"Meire Araújo","email":"syble_ankunding@padberghauck.biz","description":"Fuga sit expedita illo est alias.","education":"Officiis architecto consequatur fuga cupiditate repellat.","password":"12345678","password_confirmation":"12345678","terms_of_service":true,"avatar":"","user":{"role_ids":[],"subjects":[1]}}
curl "https://api.portalmec.c3sl.ufpr.br/v1/users/8897" -d '{"name":"Meire Araújo","email":"syble_ankunding@padberghauck.biz","description":"Fuga sit expedita illo est alias.","education":"Officiis architecto consequatur fuga cupiditate repellat.","password":"12345678","password_confirmation":"12345678","terms_of_service":true,"avatar":"","user":{"role_ids":[],"subjects":[1]}}' -X PUT \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "Access-Token: BwwYLPlhDLbjv47GyvLHUA" \ -H "Client: 1nc_NlE631cinyfbOCjRUw" \ -H "Uid: lenna_botsford@yost.com"
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=LzVsMHFoaURrSnVtOHdFZEVJWSthcmpjVllybDZaY0xUNHVlZnNnMVFGdTA1QWFFOUx1ajYyalZONkhBRk1ZZXFjVUZlTjQ3VzFBK3k5UVA5ZkdMc1V0RzEwVndWaWdONFpXaUpKTnVYRWVNWGVGL2Urb0l1ZTUvbHhrUlIvMnFIV3VTTWJRQXE0ZWlNSDNISlp1eUt6OUsxWjc2ejVtTnVJNDNhbno0V3lMOWtHcGRoSjJ1VkM4ODJPLzNlSGtaLS1uRTdSeWIvQUpTVU1CQk5SdW80d1JBPT0%3D--ba8558cfda6cfe53fecf3b0eeb49ec3af9dfa811; path=/; HttpOnly Vary: Origin ETag: W/"643bbe2230f594285cc37aafcb78a353" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: ff7d7e11-a83d-47e3-bb15-77557d41b962 X-Runtime: 0.134250 Content-Length: 1144
200 OK
{ "id": 8897, "email": "lenna_botsford@yost.com", "provider": "email", "cpf": null, "name": "Silas Duarte Jr.", "description": "Nisi soluta pariatur occaecati magni sit non.", "submitter_request": "default", "education": "Rerum deserunt iste et et.", "score": 0.0, "cover": "", "role_ids": [ 1, 1 ], "institution_ids": [ ], "avatar": "", "dspace_url": null, "dspace_handle": null, "dspace_sets": [ ], "likes_count": 0, "followed": false, "complained": false, "follows_count": 0, "learning_objects_count": 0, "collections_count": 0, "created_at": "2019-03-08T13:49:02.138Z", "updated_at": "2019-03-08T13:49:02.233Z", "terms_accepted_at": null, "school": { "id": 8895, "name": "Isadora Nascimento", "phone": "(39) 44667-8540", "uf": "PR", "city": "Cruz do Sul", "inep_id": "339-47-7447", "created_at": "2019-03-08T13:49:02.130Z", "updated_at": "2019-03-08T13:49:02.130Z" }, "subjects": [ { "id": 1, "name": "Língua Espanhola", "created_at": "2019-03-08T13:42:18.041Z", "updated_at": "2019-03-08T13:42:18.041Z", "theme": false } ], "roles": [ { "id": 1, "name": "teacher", "description": "This role represents a Teacher in Portal MEC." }, { "id": 1, "name": "teacher", "description": "This role represents a Teacher in Portal MEC." } ], "institutions": [ ] }