Skip to content

Commit

Permalink
feat: Added restricted spender user IDs field in POST categories APIs…
Browse files Browse the repository at this point in the history
… for admin persona (#351)

* feat: Added restricted spender user IDs field in POST categories APIs for admin persona

* Auto generate API docs

---------

Co-authored-by: Siva <[email protected]>
  • Loading branch information
satyamyesj and snarayanank2 authored Aug 31, 2023
1 parent 4f7c2e9 commit a4dab0f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
17 changes: 17 additions & 0 deletions reference/admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,23 @@ components:
- 1221
description: |
List of project ids for which this category can be used. If project_ids is null, then this category can be used for any project
restricted_spender_user_ids:
type: array
nullable: true
items:
type: string
nullable: false
maxLength: 15
description: |
This id is provided by Fyle to identify an object.
example: uswoirwlwwg
example:
- uswoirwlwwg
- uswlgwkgw42
description: |
- List of IDs of users who can access this category. Default value is `[]`.
- `null` value indicates that all users in the org can access this category.
- `[]` value indicates that no users in the org can access this category.
system_category_out:
type: object
additionalProperties: false
Expand Down
15 changes: 15 additions & 0 deletions src/components/schemas/category.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,21 @@ category_in:
example: [2222, 1221]
description: |
List of project ids for which this category can be used. If project_ids is null, then this category can be used for any project
restricted_spender_user_ids:
type: array
nullable: True
items:
type: string
nullable: False
maxLength: 15
description: |
This id is provided by Fyle to identify an object.
example: 'uswoirwlwwg'
example: [ 'uswoirwlwwg', 'uswlgwkgw42' ]
description: |
- List of IDs of users who can access this category. Default value is `[]`.
- `null` value indicates that all users in the org can access this category.
- `[]` value indicates that no users in the org can access this category.
system_category_out:
type: object
Expand Down

0 comments on commit a4dab0f

Please sign in to comment.