Users API

Endpoints to manage user records

Update a user's rig settings

PUT /api/v1/users/:id

Parameters

Name Description
user[rig_ui_settings] any json data related to rig ui

Request

Headers

Accept: application/json
Content-Type: application/json
Authorization: fd15c23e-f2a1-4266-9750-482b51e39aa8
Host: example.org
Cookie: 

Route

PUT /api/v1/users/lopaizq

Body

{"user":{"rig_ui_settings":{"button":{"x":0.9,"y":0.9}},"id":0}}

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
Vary: Accept, Origin
ETag: W/"6cf9a91387f467b07ebe1109528df527"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: token=2d63e515-5e1a-463e-89f5-0dd47210ecdd; path=/api; expires=Fri, 27 Oct 2023 03:53:15 GMT; HttpOnly; SameSite=Lax
_geocam_pm_session=1%2FBqrIBHi%2BjYbTkAwCIdbaDI2tyJHzPF2LhBJDOpJQBiEqzzeGrtXqNX5v%2BP1Zw2e%2FYKY5LqtnmlJ0UrWlCwoYhiYiss3UvLoMzKP2QPIitxCvps49tomjUlt5IXtHT%2BXi0XI%2FqiwQOIgaTbkq20N2v9b5YfdY7XJ80s8IZLAK4Mg0qTEUGrX5HzajK%2BeFvFWZFvZDWKUeylFP3Wgb88e782KdGzHAf%2BxUOqA8T6dRFv5czWayhl2sYH236KJe5wDQbKGDJMCjkYNjycKoLmZCG1RTtSVH7fGSY%3D--0almDzN9BSix0oGO--4dGD9N%2F2OwzkERAFMgpROA%3D%3D; path=/; HttpOnly; SameSite=Lax
X-Request-Id: 71b58e43-673b-4fba-bddf-83f93eb7cfbe
X-Runtime: 0.008212
Content-Length: 172

Status

200 OK

Body

{
  "token": "2d63e515-5e1a-463e-89f5-0dd47210ecdd",
  "data": {
    "success": true,
    "user": {
      "email": "[email protected]",
      "username": "auser",
      "rigUISettings": {
        "button": {
          "x": 0.9,
          "y": 0.9
        }
      }
    }
  }
}