cURL
curl --request POST \ --url https://api.example.com/api/v1/spaces/{space_id}/session/patch \ --header 'Content-Type: application/json' \ --data ' { "target_version": 123, "operations": [ {} ] } '
Apply a state patch to a space.
curl -X POST https://api.ama2.me/api/v1/spaces/{space_id}/session/patch \ -H "Authorization: Bearer YOUR_JWT_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "target_version": 5, "operations": [ {"op": "move", "path": "/actors/uuid/position", "value": {"x": 10, "y": 20}} ] }'