This article outlines a use case you can support and provides a sample flow to help guide your implementation.
By default, all services are connected to the site's default category.
To add an additional category and connect an existing service to it:
name
.
Save the returned category ID.service.category.id
.