View Source ProdopsEx.DataCenter (ProdopsEx v0.1.0)

Handles data center operations for the ProdOps API.

The Data Center is used for:

  • uploading documents
  • managing collections of documents
  • connecting external Data Sources (GitHub, Jira, Notion, etc.)

Not all of these items are currently supported by the ProdOps API, so there is additional functionality in the UI not yet available in this SDK.

Summary

Functions

Uploads a document to the ProdOps data center.

Functions

Link to this function

upload_document(path_to_file, config \\ [])

View Source
@spec upload_document(map(), Keyword.t()) :: {:ok, map()} | {:error, any()}

Uploads a document to the ProdOps data center.

Parameters

  • path_to_file: the full path to the file that will be uploaded
  • config (optional): a configuration map used to override default config values

Examples

iex> ProdopsEx.DataCenter.upload_document("/path/to/file.txt")
{:ok, %{status: "ok", response: %{"id" => 4}}}