Managers API

Overview

This API provides an entry point to handle Manager import. This task is asynchronous, so the import may not be ready when you get the response from the API. To see the import status, you’ll have to log on the platform and browse the status of your imports.

Import Managers

URL

POST /api/managers/import/
    Accept: application/json
    Content-Type: multipart/form-data"
    X-API-KEY: xxxxxxxxxxxxxxxxxxxxxxxxxxx

Parameters

There’s only one parameter, and it’s mandatory: input_file must be provided to upload the content of the file to import.

Use it as you’d do with an HTML file input field.

Response

Success

If the call is successful, you’ll get a HTTP/1.1 201 CREATED response, along with the following text/plain body.

"Import processing..."

Errors

HTTP 400 Bad Request: Invalid or missing parameters.

HTTP 403 Forbidden: Authentication failed.

Sample cURL call

curl -X POST "https://peopleask.net/api/managers/import/" \
    -H "Content-type: multipart/form-data" \
    -H "Accept: application/json" \
    -H "X-API-KEY: xxxxxxxxxxxxxxxxxxxxxxxxxxx" \
    -F "input_file=@full/path/to/import/file.csv"