-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating a new TrackingOption on an existing TrackingCategory #920
Comments
To further prove there is an issue, I instead made the requests through the I managed to get it to work using this method instead. |
Hey, so judging by the xero docs - https://developer.xero.com/documentation/api/accounting/trackingcategories/#put-trackingcategories If you have an existing tracking category, you supposed to use the option endpoint to create them PUT https://api.xero.com/api.xro/2.0/TrackingCategories/{TrackingCategoryID}/Options The docs are awful for this area. It doesn't list whether creating a new TrackingCategory allows Options to be added at the same time To update one option's name |
Hi,
I'm trying to create tracking options and add them to an existing tracking category (that has tracking options) like this:
Each time I do so, apart from adding the FIRST tracking option to a tracking category, I get the following exception:
The value of
$name
does not exist in the tracking category before this, but it still says it must be unique?It only happens when I try to add a new one. I also notice that it does actually create the tracking option, but the error means that when I try adding the tracking variable to a line item and save it for an invoice - it does not save the line item as there has been an error.
Thanks
The text was updated successfully, but these errors were encountered: