ETL

Plans created by POST /etl/v1/plans are deleted right away (in any status) together with their staged data (204); their table disappears with the next ETL run. Plans uploaded as SFTP files get status deleting (202): the next ETL run deletes their files from the SFTP server, no longer loads the plan and then removes it. This is refused (409 plan_shares_files, details.sharedWith) while one of the plan's files also contains other plans, because files are only deleted as a whole. A plan's name can be used again once it is gone.

delete/etl/v1/plans/{key}

Request

  • Base URL
    https://api.minubo.com
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

keystring required

Plan key (name)

Response

Deletion scheduled; the plan has status deleting

idinteger required
keystring required

The plan name as it appears in the plan data (planName); identifies the plan in the URL.

displayNamestring
descriptionstring
status'staged' | 'loaded' | 'failed' | 'deleting' required

staged: created by POST /etl/v1/plans, not yet loaded by an ETL run. loaded: in the ClickHouse table since the last completed ETL run. failed: staged, but still not loaded 36 hours after its creation (statusMessage says why); becomes loaded if it arrives later, delete it to reuse the name. deleting: deletion requested; the next ETL run deletes its files and then the plan.

statusMessagestring
source'sftp' | 'api' required

Where the plan comes from: sftp (generic plan files uploaded via SFTP) or api (this API).

measuresstring[] required
attributesstring[] required
startDatestring date

First day with planned values (ISO date).

endDatestring date

Last day with planned values (ISO date).

Example response

{
  "startDate": "2027-01-01",
  "endDate": "2027-12-31"
}

Changes