| PUT | /users/2fa/enable |
|---|
export class PutOperationUnTenanted<TResponse> implements IPut
{
public constructor(init?: Partial<PutOperationUnTenanted<TResponse>>) { (Object as any).assign(this, init); }
}
export class EnableTwoFactorAuthenticationResponse
{
public responseStatus?: ResponseStatus;
public bearerToken?: string;
public refreshToken?: string;
public constructor(init?: Partial<EnableTwoFactorAuthenticationResponse>) { (Object as any).assign(this, init); }
}
export class EnableTwoFactorAuthenticationRequest extends PutOperationUnTenanted<EnableTwoFactorAuthenticationResponse>
{
public code?: string;
public constructor(init?: Partial<EnableTwoFactorAuthenticationRequest>) { super(init); (Object as any).assign(this, init); }
}
TypeScript EnableTwoFactorAuthenticationRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /users/2fa/enable HTTP/1.1
Host: staging-api.foundrylab.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
code: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
},
bearerToken: String,
refreshToken: String
}