Questions to API Reference (/operators/{operator_id}/token)

Asked 2 years ago, Updated 2 years ago, 79 views

Understanding API Reference,

/operators/{operator_id}/token may contain the following information:

For StatusCode==400,

API Token Disabled (Requires Reauthentication)

It says
Token is already disabled due to Token timeout setting or
If Token itself is invalid (for example, deleting some strings),

StatusCode==403 and

{
  "code": "AUM0013",
  "message": "Invalid JWT."
}

The request body is returned with the following information:
Are the above specifications correct?

The response with StatucCode== 400 is
Returns if OperatorId is not set to path.

soracom

2022-09-30 21:02

1 Answers

Status Code==403 is returned when the token has expired or is invalid, but the original specification is 400.I will correct it.
The contents of the response body are as designed.

In addition to the above, 400 will also be returned if the request is incorrect, such as the URL Path does not have the necessary information.


2022-09-30 21:02

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.