Skip to content
OpenPostDocs
OpenPostDocs
Analytics

Prepare a fresh local repurpose handoff

Resolves bounded stored source fields and private evidence without creating or changing a Publication, Rendition, provider item, or AI build.

POST/analytics/repurpose

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/analytics/repurpose" \  -H "Content-Type: application/json" \  -d '{    "range": {      "days": 7    },    "reference": {      "account_content_id": "string",      "type": "external"    },    "workspace_id": "string"  }'
{  "$schema": "https://example.com/api/v1/schemas/RepurposeSource.json",  "content_profile": "string",  "destination_account_ids": [    "string"  ],  "evidence": [    {      "collected_at": "2019-08-24T14:15:22Z",      "metadata": {        "aggregation": "current_snapshot",        "period_end": "2019-08-24T14:15:22Z",        "period_start": "2019-08-24T14:15:22Z",        "scale": 1,        "source": "string",        "unit": "count"      },      "metric": "string",      "scope": "requested_range",      "value": 0    }  ],  "handoff_id": "string",  "provenance": {    "origin": "openpost",    "platform": "string",    "published_at": "2019-08-24T14:15:22Z",    "reference": {      "account_content_id": "string",      "type": "external"    }  },  "range": {    "days": 7  },  "source_text": "string",  "title": "string",  "workspace_id": "string"}