@lunch-money/v2-api-spec 2.11.2-preview.10 → 2.11.2-preview.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -400,7 +400,7 @@ components:
400
400
  children:
401
401
  type: array
402
402
  nullable: false
403
- description: List of categories to include in the new category group. This field should only be set if `is_group` is also set to true.<br> You may provide existing category objects, existing category IDs, or names for new categories to add to the group. Categories or IDs must already exist and cannot be category groups. Categories that already belong to another group will be moved. If strings are provided, they will be used as names for new categories added to the group. The request will fail if any provided name already exists.<br> You may mix category objects, IDs, and new category names in the same request.
403
+ description: Categories to include in the new category group. Set only when `is_group` is `true`.<br> You may provide existing category objects, existing category IDs, or names for new categories. IDs and objects must refer to existing categories and cannot refer to category groups. Existing categories are added to the new group; categories that already belong to another group are moved. Each string is used as the name of a new category, and the request fails if that name already exists.<br> You may mix category objects, IDs, and new category names in the same request. Adding or moving an existing category updates it, so OAuth clients that include at least one existing category ID or object in `children` must have both `categories:create` and `categories:update`; without both scopes, the request returns a `403` `insufficient_scope` error. If every child is specified by name, `categories:create` alone is sufficient.
404
404
  items:
405
405
  oneOf:
406
406
  - type: integer
@@ -5456,12 +5456,15 @@ paths:
5456
5456
  tags:
5457
5457
  - categories
5458
5458
  summary: Create a new category or category group
5459
- description: Creates a new category with the given name.<br> If the `is_group` attribute is set to true, a category group is created. In this case, the `children` attribute may be set to an array of category IDs to add to the newly created category group.
5459
+ description: Creates a new category with the given name.<br> If `is_group` is `true`, creates a category group; use `children` to add categories to it. OAuth clients that set `children` may also need `categories:update`; see the `children` property for the exact requirement.
5460
5460
  operationId: createCategory
5461
5461
  security:
5462
5462
  - bearerSecurity: []
5463
5463
  - oauth2Security:
5464
5464
  - categories:create
5465
+ - oauth2Security:
5466
+ - categories:create
5467
+ - categories:update
5465
5468
  requestBody:
5466
5469
  required: true
5467
5470
  content:
@@ -5554,6 +5557,8 @@ paths:
5554
5557
  - errMsg: Cannot specify a 'group_id' in request body if 'is_group' is also true
5555
5558
  "401":
5556
5559
  $ref: "#/components/responses/unauthorizedToken"
5560
+ "403":
5561
+ $ref: "#/components/responses/insufficientScope"
5557
5562
  "429":
5558
5563
  $ref: "#/components/responses/rateLimited"
5559
5564
  "500":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunch-money/v2-api-spec",
3
- "version": "2.11.2-preview.10",
3
+ "version": "2.11.2-preview.12",
4
4
  "description": "OpenAPI specification and version history for the Lunch Money v2 API",
5
5
  "main": "lunch-money-api-v2.yaml",
6
6
  "exports": {