@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.
- package/lunch-money-api-v2.yaml +7 -2
- package/package.json +1 -1
package/lunch-money-api-v2.yaml
CHANGED
|
@@ -400,7 +400,7 @@ components:
|
|
|
400
400
|
children:
|
|
401
401
|
type: array
|
|
402
402
|
nullable: false
|
|
403
|
-
description:
|
|
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
|
|
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