Drop this profile's work published before now until the drain expires; repair afterward
POST
jwtheader
AuthorizationBearer <JWT>profileId*stringMatch
^[a-z0-9]+(?:-[a-z0-9]+)*$Length
3 <= length <= 64application/json- response
orgId*stringMatch
^[a-z0-9]+(?:-[a-z0-9]+)*$Length
length <= 63profileId*stringMatch
^[a-z0-9]+(?:-[a-z0-9]+)*$Length
3 <= length <= 64cutoff*stringAn ISO 8601 date time string
Match
^(?:\d+(?:\.\d+?)?|(?:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z))$Format
date-timeexpiresAt*stringAn ISO 8601 date time string
Match
^(?:\d+(?:\.\d+?)?|(?:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z))$Format
date-timenotification*stringValue in
"published""deferred"coverage*stringValue in
"marked""deferred"curl -X POST 'https://ai-search.your-tenant-id.my.contextual.io/api/v1/profiles/string/drain'Example Response
{ "orgId": "string", "profileId": "string", "cutoff": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "notification": "published", "coverage": "marked"}