Just as you can export all of the documents in an app via the Documents page, you can also accomplish the same function programmatically. The export function sends the document list data to a CSV, so we do not run a GraphQL mutation for this task: GraphQL returns a JSON response. Instead, we need to use a HTTP endpoint.
For the All Data endpoint:
GET: /app/api/v0/apps//documents.csv Content-Type: application/json Authorization: Bearer
Custom columns and sorting rules can be added as URI parameters to your endpoint. An example of the Current View is shown below:
GET: /app/api/v0/apps//documents.csv?columns={field}&sort={field} Content-Type: application/json Authorization: Bearer
Comments
0 comments
Article is closed for comments.