f0f28319e448
Create a service
Create a new service. Depending on whether an active service with the same name already exists, the endpoint behaves differently:
- If is_active is False, creates an inactive new service.
- If is_active is True and no active service with the given name exists, creates a new active service.
- If is_active is True and an active service with the given name exists, this endpoint throws an error.
The new service will automatically contain an edge version set that uses the latest Agent and ServiceHierarchicalStateMachine versions with no LLM model preference. It will also create a release version set, that will equal to what's specified in the request if the release_version_set is specified, or equal to edge if not.
Permissions
This endpoint requires the following permissions:
- Service:CreateService for the service to create.
- Service:CreateVersionSet for the edge and release version sets.
Path parameters
Headers
The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.
The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.
Request body
Response
Succeeded.