Get Policy By Id
GET/v1/product/:product_id/policy/:policy_id
Get a policy by ID, requires policies:config:view permission
Request
Path Parameters
Policy ID
Product ID
Responses
- 200
- 400
- 404
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
Enable Client Credential Authentication. This is recommended for services, automated processes, or third-parties.
Default value: true
Enable User Authentication (e.g. Steam, Xbox, PSN, Epic, Anon, etc). This is recommended for Game Clients and first-party websites.
Default value: true
Enable Refresh tokens for authentications using this policy. If true, the refresh_token_lifetime_days field is used to limit how long the tokens remain valid.
Possible values: >= 600
Default value: 600
Access token lifetime in seconds
Possible values: >= 7
Default value: 7
Refresh token lifetime in days. If empty, refresh tokens will not expire.
{
"policy_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"permissions": [
"string"
],
"description": "string",
"default_policy": true,
"client_auth_enable": true,
"user_auth_enable": true,
"refresh_token_enable": true,
"access_token_lifetime_seconds": 600,
"refresh_token_lifetime_days": 7
}
Bad Request
Not Found
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}