refresh
post
/ccstore/v1/refresh
Refresh. Refresh an oauth token.
Request
Supported Media Types
- application/json
Root Schema : refresh_request
Type:
Show Source
object
-
refresh_token:
string
The refresh token if external token is enabled.
Example:
POST /ccagent/v1/refresh
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : refresh_response
Type:
Show Source
object
-
access_token:
string
Refreshable OAuth token.
-
expires_in:
integer
Time in seconds until token expires.
-
refresh_token:
string
The refresh token from IDP only available when external token is enabled.
-
token_type:
string
OAuth token type.
Example Response (application/json)
{
"access_token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0MTQxNDk5NTYsInN1YiI6IjExMDU1OCIsImlzcyI6InN0b3JlZnJvbnRVSSIsImlhdCI6MTQxNDE0OTAyNn0=.B9qM0/VKpCNKvjCmOnUPv4RS7mkIDgKcP8RJPaVQGYU=",
"token_type":"bearer",
"expires_in":"930"
}
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code