diff --git a/idn/beta/schemas/CreatePersonalAccessTokenRequest.yaml b/idn/beta/schemas/CreatePersonalAccessTokenRequest.yaml index ff461093..979090e7 100644 --- a/idn/beta/schemas/CreatePersonalAccessTokenRequest.yaml +++ b/idn/beta/schemas/CreatePersonalAccessTokenRequest.yaml @@ -14,5 +14,16 @@ properties: default: "sp:scopes:all" description: Scopes of the personal access token. If no scope is specified, the token will be created with the default scope "sp:scopes:all". This means the personal access token will have all the rights of the owner who created it. example: [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ] + accessTokenValiditySeconds: + type: integer + format: int32 + minimum: 15 + maximum: 43200 + items: + type: integer + format: int32 + default: 43200 + description: Number of seconds an access token is valid when generated using this Personal Access Token. If no value is specified, the token will be created with the default value of 43200. + example: 36900 required: - name diff --git a/idn/beta/schemas/CreatePersonalAccessTokenResponse.yaml b/idn/beta/schemas/CreatePersonalAccessTokenResponse.yaml index 8bdc412e..c62d1494 100644 --- a/idn/beta/schemas/CreatePersonalAccessTokenResponse.yaml +++ b/idn/beta/schemas/CreatePersonalAccessTokenResponse.yaml @@ -27,6 +27,15 @@ properties: format: 'date-time' description: The date and time, down to the millisecond, when this personal access token was created. example: '2017-07-11T18:45:37.098Z' + accessTokenValiditySeconds: + type: integer + format: int32 + items: + type: integer + format: int32 + default: 43200 + description: Number of seconds an access token is valid when generated using this Personal Access Token. If no value is specified, the token will be created with the default value of 43200. + example: 36900 required: - id - secret @@ -34,3 +43,4 @@ required: - name - owner - created + - accessTokenValiditySeconds diff --git a/idn/v3/schemas/CreatePersonalAccessTokenRequest.yaml b/idn/v3/schemas/CreatePersonalAccessTokenRequest.yaml index 877bb131..b534d983 100644 --- a/idn/v3/schemas/CreatePersonalAccessTokenRequest.yaml +++ b/idn/v3/schemas/CreatePersonalAccessTokenRequest.yaml @@ -14,5 +14,16 @@ properties: default: "sp:scopes:all" description: Scopes of the personal access token. If no scope is specified, the token will be created with the default scope "sp:scopes:all". This means the personal access token will have all the rights of the owner who created it. example: [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ] + accessTokenValiditySeconds: + type: integer + format: int32 + minimum: 15 + maximum: 43200 + items: + type: integer + format: int32 + default: 43200 + description: Number of seconds an access token is valid when generated using this Personal Access Token. If no value is specified, the token will be created with the default value of 43200. + example: 36900 required: - name diff --git a/idn/v3/schemas/CreatePersonalAccessTokenResponse.yaml b/idn/v3/schemas/CreatePersonalAccessTokenResponse.yaml index 8bdc412e..c62d1494 100644 --- a/idn/v3/schemas/CreatePersonalAccessTokenResponse.yaml +++ b/idn/v3/schemas/CreatePersonalAccessTokenResponse.yaml @@ -27,6 +27,15 @@ properties: format: 'date-time' description: The date and time, down to the millisecond, when this personal access token was created. example: '2017-07-11T18:45:37.098Z' + accessTokenValiditySeconds: + type: integer + format: int32 + items: + type: integer + format: int32 + default: 43200 + description: Number of seconds an access token is valid when generated using this Personal Access Token. If no value is specified, the token will be created with the default value of 43200. + example: 36900 required: - id - secret @@ -34,3 +43,4 @@ required: - name - owner - created + - accessTokenValiditySeconds