Create or update a user relationship. If a relationship already exists, it will be updated.
cURL
curl --request POST \ --url https://public.api.serval.com/v2/user-relationships \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "userId": "<string>", "relatedUserId": "<string>", "relationshipType": "USER_RELATIONSHIP_TYPE_UNSPECIFIED" } '
{ "data": { "userId": "<string>", "relatedUserId": "<string>", "relationshipType": "USER_RELATIONSHIP_TYPE_UNSPECIFIED", "createdAt": "2023-11-07T05:31:56Z" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
USER_RELATIONSHIP_TYPE_UNSPECIFIED
USER_RELATIONSHIP_TYPE_MANAGER
Success
Show child attributes
Was this page helpful?