Update a service class.

Details

Update a service class.

The service class name must be explicitly specified using the ecosystem ID which contains that class.

An account token or server token may be used to run this endpoint.

Parameters

path

  • ecosystemId (required): The ID of the ecosystem.
  • name (required): The unique name of a service class.

body

  • service (required): The definition of a service class.

Responses

200

400

  • No Query String Allowed: The standard error structure defines this error as invalid parameters, with additional parameters in the query string. In this context, it means that no query string is allowed at all when calling this endpoint.
  • Ecosystem Invalid: The standard error structure defines this error as invalid parameters, with an invalid ID linked to the parameter that designates the ecosystem ID. In this context, it means that the ID given for an ecosystem was not valid.
  • Body Parameters Missing: The standard error structure defines this error as invalid parameters, and contains all required body parameters. If this error occurs when the JSON structure of the body parameters is syntactically correct, this means that the “content-type” header is incorrectly specified. The content-type header should be “application/json.”

404

  • Ecosystem Not Found: This error means that an ecosystem with the given ID was not found. This is distinct from an invalid ecosystem ID being specified; this means that the ecosystem ID once existed, but no longer does.
  • Service Not Found: This error means that a service by the given name and/or format was not found.

Examples

HTTP

PUT https://ioe.droplit.io/api/serviceclasses/ECOSYSTEM-ID;SERVICE-CLASS-NAME HTTP/1.1
authorization: TOKEN
content-type: application/json
{
    "name": "SERVICE-CLASS-NAME",
    "properties": {},
    "methods": {},
    "events": {}
}

Droplit Console

droplit serviceclass update SERVICE-CLASS-NAME PROPERTY-NAME PROPERTY-VALUE --ecosystemId ECOSYSTEM-ID

Droplit SDK

droplit.serviceClasses.update("ECOSYSTEM-ID", "SERVICE-CLASS-NAME", { "name" : "SERVICE-CLASS-NAME", ... });
Language
Authentication
Header
Click Try It! to start a request and see the response here!