{"openapi":"3.0.1","info":{"title":"Api","version":"1.0.2"},"servers":[{"url":"/isos-data-purge-tool"}],"paths":{"/healthcheck":{"get":{"tags":["Api"],"responses":{"200":{"description":"OK"}}}},"/api/purge":{"post":{"tags":["Api"],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"string","format":"binary"}}},"required":true},"responses":{"200":{"description":"OK"}}},"get":{"tags":["Api"],"parameters":[{"name":"requestId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/purge/requests":{"get":{"tags":["Api"],"parameters":[{"name":"SalesforceAccountId","in":"query","schema":{"type":"string"}},{"name":"ServiceCloudCaseId","in":"query","schema":{"type":"string"}},{"name":"RequestName","in":"query","schema":{"type":"string"}},{"name":"ClientName","in":"query","schema":{"type":"string"}},{"name":"JobType","in":"query","schema":{"type":"string"}},{"name":"ProcessType","in":"query","schema":{"type":"string"}},{"name":"Status","in":"query","schema":{"type":"string"}},{"name":"SortBy","in":"query","schema":{"type":"string"}},{"name":"SortDir","in":"query","schema":{"type":"string"}},{"name":"PageSize","in":"query","schema":{"type":"integer","format":"int32"}},{"name":"Cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/purge/tripdata/start":{"post":{"tags":["Api"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartNonProfilePurgeRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/purge/pmmprofile/start":{"post":{"tags":["Api"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartPmmProfilePurgeRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/bespoke/purge":{"post":{"tags":["Api"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertBespokePurgeConfigDto"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/bespoke/purge/{sfid}":{"delete":{"tags":["Api"],"parameters":[{"name":"sfid","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/purge/{purgeRequestId}/cancel":{"put":{"tags":["Api"],"parameters":[{"name":"purgeRequestId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/purge/{purgeRequestId}/rollback":{"put":{"tags":["Api"],"parameters":[{"name":"purgeRequestId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/purge/qdltrips/start":{"post":{"tags":["Purge"],"operationId":"StartQdlTripsPurge","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartQdlTripsPurgeCommand"}}},"required":true},"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"type":"string","format":"uuid"}}}},"400":{"description":"Bad Request"},"404":{"description":"Not Found"}}}}},"components":{"schemas":{"RetentionPolicyType":{"enum":[1,2],"type":"integer","format":"int32"},"StartNonProfilePurgeRequest":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"salesforceAccountId":{"type":"integer","format":"int64"},"s3Key":{"type":"string","nullable":true},"batchSize":{"type":"integer","format":"int32","nullable":true}},"additionalProperties":false},"StartPmmProfilePurgeRequest":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"salesforceAccountId":{"type":"integer","format":"int64"},"s3Key":{"type":"string","nullable":true},"batchSize":{"type":"integer","format":"int32","nullable":true}},"additionalProperties":false},"StartQdlTripsPurgeCommand":{"type":"object","properties":{"requestId":{"type":"string","format":"uuid"},"salesforceAccountId":{"type":"integer","format":"int64"},"batchSize":{"type":"integer","format":"int32"}},"additionalProperties":false},"UpsertBespokePurgeConfigDto":{"type":"object","properties":{"salesforceAccountId":{"type":"integer","format":"int64"},"clientName":{"type":"string","nullable":true},"retentionPolicy":{"$ref":"#/components/schemas/RetentionPolicyType"},"retentionPeriodInMonths":{"type":"integer","format":"int32","nullable":true},"createdBy":{"type":"string","nullable":true}},"additionalProperties":false}}}}