curl --request POST \
--url https://api.rootfi.dev/sync \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"company_id": 1,
"data_models_to_sync": ["ACCOUNTS"],
"integration_type": "ZOHO_BOOKS",
"full_sync": true
}'
{
"data": {
"status": "success"
},
"request_timestamp": "2021-01-01T00:00:00Z",
"response_timestamp": "2021-01-01T00:00:00Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}
Sync a company to the platform.
curl --request POST \
--url https://api.rootfi.dev/sync \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"company_id": 1,
"data_models_to_sync": ["ACCOUNTS"],
"integration_type": "ZOHO_BOOKS",
"full_sync": true
}'
{
"data": {
"status": "success"
},
"request_timestamp": "2021-01-01T00:00:00Z",
"response_timestamp": "2021-01-01T00:00:00Z",
"request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b"
}
curl --request POST \
--url https://api.rootfi.dev/sync \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"company_id": 1,
"data_models_to_sync": ["ACCOUNTS"],
"integration_type": "ZOHO_BOOKS",
"full_sync": true
}'
Request body for creating an Sync
The response is of type object
.