v1

latestOpenAPI 3.1.0raw.githubusercontent.com2024-09-27192307552.2 KB
services

Update Service

Updates a service.

Args: service_id: The ID of the service to update. update: The model containing the attributes to update.

Returns: The updated service object.

put/api/v1/services/{service_id}

Path parameters

service_idstring uuid required

Request body

namestring nullable
admin_state'inactive' | 'active' | 'pending_startup' | 'pending_shutdown' | 'error' | 'scaled_to_zero'

Possible states for the service and service endpoint.

service_sourcestring nullable

The fully qualified class name of the service implementation.

statusobject nullable
endpointobject nullable
prediction_urlstring nullable
health_check_urlstring nullable
labelsobject nullable
model_version_idstring uuid nullable

Response

Successful Response

resourcesServiceResponseResources

Class for all resource models associated with the service entity.

idstring uuid required
permission_deniedboolean
namestring required