Users API

User represents the teacher and students in the system.

Destroying an user by admin

DELETE /v1/users/:id

Parameters

Name Description
id The id of the user to be destroyed

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: z4G0F7YpGHogyjwaHLfmzw
Client: eX9_JdxVlpyYP81fntq95A
Uid: tia@batz.org
Host: example.org
Cookie: 

Route

DELETE /v1/users/9216

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/users/9216" -d '' -X DELETE \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: z4G0F7YpGHogyjwaHLfmzw" \
	-H "Client: eX9_JdxVlpyYP81fntq95A" \
	-H "Uid: tia@batz.org"

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=NHRNZDlsTU1XWkdMdkxQOE5wcG5kYnl1Skt5bWVYM3RtN1pBMC9XeG0yMmtnM0pKUjlYUm56a2p5WXByMlRvQ0tZTktWRk9JYTVzellrNVN3U05SQUFXWlZjNXZVYVN5TjEwRlJPcnRlMjErV2FMVXdWWkxwSGIzY2NNU29XTEZiWkErUUo0eEpoelVCcjgwcUh2U1V5RVR3TlhYQ2FNRmtEM2lqRDZIOHE2bUFlZjRJTk5KZEtPa3dtYXdEUnN3LS1rcWtiR3JXb2pTZFlCQ21XUHk4NGl3PT0%3D--7dfc85f8d34192d85fcff8aee0f82d728b5c2656; path=/; HttpOnly
Vary: Origin
ETag: W/"4df20f95e824b2af44a61642d88daaf0"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 301fd9d1-bb08-4bc5-97bc-0aacc67e2880
X-Runtime: 0.115782
Content-Length: 20

Status

200 OK

Body

{
  "status": "deleted"
}