NoxVR Documentation
Relations

Create relation (server-to-server)

Create a relation on behalf of a server. Used for federated follow requests.

POST
/relations
Authorization<token>

Integrity token authentication (format "Integrity ")

In: header

typestring
Value in"follow" | "unfollow"
initiatorinteger
targetinteger

Response Body

application/json

application/json

curl -X POST "https://nox.hactazia.fr/api/relations" \  -H "Content-Type: application/json" \  -d '{    "type": "follow",    "initiator": 0,    "target": 0  }'
{
  "type": "follow_accepted",
  "retryAfter": 0,
  "note": "string"
}
{
  "error": {
    "message": "You are not logged in.",
    "code": 7,
    "status": 401
  },
  "data": null
}