• This function creates an AddRemoveService operation using the specified Honeycomb instance and the provided arguments. The operation is used to add or remove a service in a HoneycombProject. The service is represented by a Service object with a name and an optional URL.


    Returns Promise<{
        operation: Operation;

    An object containing the operation.


    const honeycomb = new Honeycomb(connection);
    const project = new HoneycombProject(projectPublicKey, honeycomb);

    // Define the AddRemoveService arguments.
    const args = {
    service: { __kind: 'Assembler', assemblerId }
    remove: false, // Set to true to remove the service instead of adding it.

    // Create AddRemoveService operation.
    const operationArgs = {
    args: args,
    project: project,
    const { operation } = await createAddRemoveServiceOperation(honeycomb, operationArgs);
    operation.send(); // The generated AddRemoveService operation.

Generated using TypeDoc