Companies
Export the company's roles in other companies as CSV
Returns a CSV (semicolon separated, UTF-8) of every company in which this company holds a registered position today: the rows of POST /companies/{id}/assignments without paging, newest position first. Ended positions: GET /companies/{id}/assignments/history/export. The response carries a Content-Disposition header with the file name.
Pro+ tier
GEThttps://lens-api.tic.io/companies/{id}/assignments/export
Every row of roles in other companies as one CSV file, without paging, newest position first. The positions that have ended are in the ended roles export.
The file is UTF-8 with semicolons between the fields, and the Content-Disposition header gives its name.
curl "https://lens-api.tic.io/companies/12345/assignments/export" \
-H "x-api-key: YOUR_API_KEY" \
-o roles.csvAuthorization
x-api-keystringheaderrequiredYour API key, sent in the x-api-key header.
Path parameters
idintegerrequiredInternal company ID
Responses
CSV download · text/csv
string
Company not found or not accessible