Contacts API

Are the contact forms of the API.

Updating contacts

PUT /v1/contacts/:id

Parameters

Name Description
contact[name] The name of the contact
contact[email] The email of the contact
contact[message] The message of the contact

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: xl_KGYMI2vIRLtPyFckHNA
Client: GVV2qJxnlPOxbNa1hMU0bQ
Uid: martin@runolfsdottir.co
Host: example.org
Cookie: 

Route

PUT /v1/contacts/38

Body

{"contact":{"name":"Eduarda Duarte","email":"genevieve_ebert@hageneslittle.net","message":"Non rem quasi quia temporibus error."}}

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/contacts/38" -d '{"contact":{"name":"Eduarda Duarte","email":"genevieve_ebert@hageneslittle.net","message":"Non rem quasi quia temporibus error."}}' -X PUT \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: xl_KGYMI2vIRLtPyFckHNA" \
	-H "Client: GVV2qJxnlPOxbNa1hMU0bQ" \
	-H "Uid: martin@runolfsdottir.co"

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=T1RqbDNxSnJGa0I1K3RGT21TNVFNa25QMVNPaHZOQUkrR2VwZ2Q4eU1pMEJ4cHlsak9EWWVmVFI0Y2UySUVZMFBLclhFY213c05CeDhlV3ZlRWhMN2EwRnJYSHpzSUVxSnlZa0lRK1huaFNLdzZoeTFEdmc3T2ZDaTZ5UTA1T1RMWEI1MDZFOTgweXJuQmRVbDBXZ1Z5MnZaS2R6amRQdldlTFVjTmljTGYxeHlrWGcxWG8rTnRTYUg2emlwZW1uLS1rWmZvUlAzTklWK00xT2Q0YmZsTzlRPT0%3D--32e8e23343c5608f227fe8a19504270f045322a9; path=/; HttpOnly
Vary: Origin
ETag: W/"009ad5b711e3517a03074ca1aa2318cd"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 291aae41-7052-4576-9c33-eb7bbd661702
X-Runtime: 0.109072
Content-Length: 126

Status

200 OK

Body

{
  "id": 38,
  "name": "Eduarda Duarte",
  "email": "genevieve_ebert@hageneslittle.net",
  "message": "Non rem quasi quia temporibus error."
}