Sample Records
Changed onReturns a sample of records from a model.
Synchronous requests must complete within 10 seconds. If the source query or enrichment step can exceed that budget, use the asynchronous option so the work runs as a background job.
Request
- Base URLhttps://app.polytomic.com
- Auth
- HTTP bearer
- or HTTP basic
Path parameters
Model ID
Query parameters
Run in the background and return a job instead of the result.
Headers
Response
OK
Example response
{
"data": {
"records": [
{
"enricher-uuid": {
"name": "James"
},
"model-uuid": {
"name": "Jim"
}
}
],
"warnings": [
"Enrichment failed for 4 records: you have ran out of credits"
]
},
"job": {
"error": "error message",
"job_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
"type": "createmodel"
}
}Changes
- breaking
the
response's property type changed fromobjectto no type for status - breaking
the
response's property type changed fromobjectto no type for status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
added to the
response propertyallOflist for the response status - info
added to the
response propertyallOflist for the response status
- breaking