createOrUpdateDepot

@POST(value = "api/v2/depots/{depot}")
abstract fun createOrUpdateDepot(@Path(value = "depot") depotName: String, @Body request: DatasetRequest, @Header(value = "dataos-correlation-id") correlationId: String = UUID.randomUUID().toString()): Call<DepotResponse>

Makes a POST request to create or update a depot.

Return

a Call object with a response of type DepotResponse

Parameters

depotName

the name of the depot to create or update

request

the dataset request containing the depot information

correlationId

the correlation ID to use in the request header (optional, defaults to a new UUID if not provided)