Auth.Api

<back to all web services

UserTokensRegisterWebsocketPostDto

The following routes are available for this service:
POST/admin/v1/user_tokens/register_websocketGenerate a one time token for registering websocket.
UserTokensRegisterWebsocketPostDto Parameters:
NameParameterData TypeRequiredDescription
ApplicationsIdbodyint?No
UserTokensResponse Parameters:
NameParameterData TypeRequiredDescription
UserTokensformList<UserTokens>No
ResponseBase Parameters:
NameParameterData TypeRequiredDescription
StatusformApiResponseStatusNo
CodeformintNo
apiVersionformstringNo
appVersionformstringNo
ApiResponseStatus Enum:
OK
FAIL
Default
UserTokens Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
ApplicationsIdformintNo
UsersIdformintNo
UserTokenActionsIdformintNo
TokenformstringNo
UsedAtformDateTime?No
ActiveTillformDateTimeNo
RecordStatusIdformintNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /admin/v1/user_tokens/register_websocket HTTP/1.1 
Host: auth.mepis.si 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"applicationsId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"appVersion":"String","userTokens":[{"id":0,"applicationsId":0,"usersId":0,"userTokenActionsId":0,"token":"String","usedAt":"0001-01-01T00:00:00.0000000Z","activeTill":"0001-01-01T00:00:00.0000000Z","recordStatusId":0}],"status":"OK","code":0,"apiVersion":"String"}