For specific Cyara 3.0 API Endpoints, you can request a CSV formatted response rather than the default JSON response. This is particularly useful if you intend to use the data returned by the endpoint in other applications such as spreadsheets.
The ability to request CSV responses from Cyara 3.0 API Endpoints is currently in development, and at this stage only the AccountUsers Endpoint supports the CSV response feature. This article will be updated with each supported API Endpoint as they are enabled.
For more information on the Cyara 3.0 API Documentation, Consult the Swagger implementation running on your Cyara Portal (/cyarawebapi/swagger/index.html) e.g : https://www.cyaraportal.us/cyarawebapi/swagger/index.html
AccountUsers CSV Response Example.
By formatting your AccountUsers GET request as follows, the Cyara 3.0 API will return a CSV response, rather than the default JSON.
GET https://https://www.cyaraportal.us/cyarawebapi/v3.0/accounts/{accountId}/users
"Accept: text/csv"
Note: The Content-type does not need to be changed from application/json, only the "Accept" value in the header.
Comments
0 comments
Please sign in to leave a comment.