The user model in Trayn offers a few points to integrate with other services
User
To retrieve information related to a user, query the user identity endpoint
curl -X GET /s/user/{userId}/identity
In order to update individual fields on the user, use PATCH
curl -X PATCH /s/user/{userId}/identity \
-H "content-type: application/json" \
--data-raw '{"birthday":"2004-01-04"}'
This sets the birthday to January 4, 2004.
externalId
type: string
length: 64 characters
Use this field to store your internal ID or the ID of another service.
ext
type: object
You can use this field to store JSON data related to the user. If there is information on a user that you might need but does not fit in any other of the current fields on the user model, you may want to use this field.