Create Policy
POST /v1/product/{product_id}/policy
Create a new policy, requires policies:config:edit permission
Authorizations
Parameters
Path Parameters
Product ID
Product ID
Request Body required
object
Policy name
List of permissions applied to the policy
Policy description
Enable Client Credential Authentication. This is recommended for services, automated processes, or third-parties.
Enable User Authentication (e.g. Steam, Xbox, PSN, Epic, Anon, etc). This is recommended for Game Clients and first-party websites.
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.
Access token lifetime in seconds
Refresh token lifetime in days. If empty, refresh tokens will not expire.
Responses
200
Successful Response
object
Enable Client Credential Authentication. This is recommended for services, automated processes, or third-parties.
Enable User Authentication (e.g. Steam, Xbox, PSN, Epic, Anon, etc). This is recommended for Game Clients and first-party websites.
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.
Access token lifetime in seconds
Refresh token lifetime in days. If empty, refresh tokens will not expire.
400
Bad Request
404
Not Found
422
Validation Error