Update a service
const url = 'https://pie.streamline.enterprises/v2/clients/client-1/domains/south_australia/service/service-1';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"departure_datetime":"2026-04-15T12:00:00Z","static_features":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://pie.streamline.enterprises/v2/clients/client-1/domains/south_australia/service/service-1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "departure_datetime": "2026-04-15T12:00:00Z", "static_features": {} }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Example
client-1Example
south_australiaExample
service-1Request Body
Section titled “Request Body ”object
object
Example generated
{ "departure_datetime": "2026-04-15T12:00:00Z", "static_features": {}}Responses
Section titled “ Responses ”Service updated
object
Raw features the caller sent at init time (may be a subset)
object
Full features after applying domain defaults (what was used for inference)
object
Example
{ "domain_id": "south_australia", "service_id": "service-1", "status": "available", "departure_datetime": "2025-07-01T12:00:00Z", "provided_features": { "route": "Adelaide to Sydney" }, "resolved_features": { "route": "Adelaide to Sydney", "on_demand": true }, "created_at": "2025-01-15T10:00:00Z", "updated_at": "2025-01-16T08:00:00Z"}Validation error — malformed input, invalid path parameters, or request that fails syntactic validation.
object
Human-readable error message
Example
{ "success": false}Missing or invalid Authorization bearer token, expired token, or token rejected by the
authorization layer (e.g. API Gateway JWT authorizer or application validation).
object
Human-readable error message
Example
{ "success": false}Authenticated caller lacks the permission required for this operation.
object
Human-readable error message
Example
{ "success": false}Requested resource was not found.
object
Human-readable error message
Example
{ "success": false}Semantically invalid request — e.g. domain not active, no model assigned, feature contract mismatch, or invalid feature definitions.
object
Human-readable error message
Example
{ "success": false}