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 .jsv suffix or ?format=jsv

HTTP + JSV

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/jsv
Content-Type: text/jsv
Content-Length: length

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

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