Create a transformation

Creates a new transformation.

Usage

1
2
3
4
5
6
7
8
9
10
11
12
import com.algolia.api.IngestionClient;
import com.algolia.config.*;

IngestionClient client = new IngestionClient("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY", "ALGOLIA_APPLICATION_REGION");

client.createTransformation(
  new TransformationCreate()
    .setInput(new TransformationCode().setCode("foo"))
    .setType(TransformationType.CODE)
    .setName("bar")
    .setDescription("baz")
);
Did you find this page helpful?