Create or Update Export Configuration
Changed onCreate or replace the authenticated user's enterprise export configuration.
Each user has one configuration. A later call replaces it entirely. runInterval defaults to WEEKLY when omitted. enabled, collectionIds, targetIds, perspectiveIds, and includeComponents are required. collectionIds and targetIds may be empty arrays. An empty perspectiveIds list is accepted and saved, but the job then produces no scores.
Access to collections, targets, and perspectives is checked when the job runs, not when this request is saved. Use GET /public/v1/enterprise-export/scores and GET /public/v1/enterprise-export/scores/errors after a successful execution.
Required permission: access_enterprise_export_api
Request
- Base URLhttps://api.prewave.com
- AuthAPI key in header X-Auth-Token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"runInterval": "WEEKLY",
"enabled": true,
"collectionIds": [
123,
456,
789
],
"targetIds": [
101,
202,
303,
102006215
],
"perspectiveIds": [
1,
2,
3
]
}Response
Configuration saved. The response body is empty. Read it back with GET scores/config.
Changes
- breaking
removed the media type
application/jsonfor the response with the status
- breaking