Hi. I am trying to add an object in one-to-one relationship in users table using REST API from PHP. These are the request and response:
Request:
PUT /v1/users/1763D7F3-4FD4-E1D7-FF01-62BE79D9B400 HTTP/1.1
Host: api.backendless.com
User-Agent: Guzzle/3.8.0 curl/7.28.1 PHP/5.4.10
application-id: XXXXXXXXXXXXXXXX
secret-key: XXXXXXXXXXXXXXXX
application-type: REST
Content-Type: application/json
user-token: 16CC82B7-CF50-C112-FFD6-295F048E2700
Content-Length: 48
{“local”:“BD599A4C-EE35-C40C-FF07-EAD474D79D00”} [] []
Response:
HTTP/1.1 200 OK
Server: nginx/1.4.2
Date: Mon, 24 Feb 2014 08:44:20 GMT
Content-Type: application/octet-stream
Content-Length: 434
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: origin, application-id, application-type, content-type, secret-key, request, user-token
Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE
Expires: Thu, 01 Jan 1970 00:00:01 GMT
Cache-Control: no-cache, : no-store, no-cache, must-revalidate, private
Pragma: : no-cache
But i do not see anything in the related column in admin console. I do not know if im doing it right (maybe i am missing something in the request?) or if there is a problem with admin console that does not refresh changes.