Use this endpoint to import deploys using a CSV file.
Delete all existing deploys in your Code Deployment and create a new history with only the deploys you specify via a CSV file. This might be useful if you wish to populate more than the default 28-days' worth of data when creating a new Code Deployment in Sleuth, or when you want to only import specific deploys, and don't want to register them individually.
The endpoint path takes 2 slugs which direct the deploys to the correct code deployment:
ORG_SLUG: found in the URL of your Sleuth org, immediately following
DEPLOYMENT_SLUG: found in the URL, following the prefix
Importing deploys into a pre-populated code deployment will delete all existing deploys in that code deployment and create a new history with only the deploys specified in the CSV file.
The deploys should be imported using a CSV file that is uploaded as part of the request. The CSV file should contain the headers
shacolumn should contain the full SHA of the commits at the point of release, and the
datecolumn should contain the date and time of the deploy in the ISO 8601 format.
Example CSV file
Make sure you replace the values surrounded by
>with your own values. Adjust the
csv_filepath accordingly or run the command from the directory that contains the