Invite Links
Update Invite Link
General
Server Side SDKs
Core API
- Companies
- Invite Links
- Sync
- Passthrough
- Real Time
- Webhooks
Unified API
- Accounting
- Payments
- Ecommerce
- CRM
Invite Links
Update Invite Link
Update a single invite link from the database.
PUT
/
core
/
invite_links
/
{invite_link_id}
curl --request PUT \
--url https://api.rootfi.dev/v3/core/invite_links/{invite_link_id} \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"company_name": "RootFi",
"integrations": [
"XERO"
],
"integration_categories": [
"ACCOUNTING"
],
"sync_config": [
{
"data_model": "ACCOUNTS",
"category": "ACCOUNTING",
"enabled": true,
"frequency": "DAILY",
"interval": 1,
"scope_access": {
"READ": true,
"CREATE": true,
"UPDATE": true,
"DELETE": true
},
"sync_from": "2023-01-01T00:00:00Z"
}
]
}'
{
"data": {
"rootfi_id": 1,
"rootfi_created_at": "2021-08-10T12:00:00Z",
"rootfi_updated_at": "2021-08-10T12:00:00Z",
"invite_link_id": "1",
"integrations": [
"XERO"
],
"integration_categories": [
"ACCOUNTING"
],
"company": {
"rootfi_id": 1,
"rootfi_created_at": "2021-08-10T12:00:00Z",
"rootfi_updated_at": "2021-08-10T12:00:00Z",
"name": "RootFi"
},
"connections": [
{
"rootfi_id": 1,
"rootfi_created_at": "2021-08-10T12:00:00Z",
"rootfi_updated_at": "2021-08-10T12:00:00Z",
"integration_type": "XERO",
"status": "HEALTHY",
"sync_status": "IDLE",
"rate_limits": {
"counters": {
"day": 4,
"hour": 1,
"minute": 1,
"concurrent": 0
},
"lastReset": {
"day": "2024-01-28T11:00:17.087Z",
"hour": "2024-01-29T05:10:40.896Z",
"minute": "2024-01-29T05:10:40.896Z"
},
"maxLimits": {
"per_minute": 500,
"concurrent_calls": 10
}
},
"sync_config": [
{
"data_model": "ACCOUNTS",
"enabled": true,
"frequency": "DAILY",
"interval": 1,
"scope_access": {
"READ": true,
"CREATE": true,
"UPDATE": true,
"DELETE": true
},
"category": "ACCOUNTING",
"sync_from": "2023-01-01T00:00:00Z"
}
],
"category": "ACCOUNTING"
}
]
}
}
An invite link contains API requests for generating and managing invite links, which can be used to connect end users to their preferred accounting platforms.
You can update the invite link if you need to:
- Change the company name.
- Update the sync config for this company (includes specific scopes, custom fields or sync frequency).
Authorizations
Path Parameters
The ID of the invite link to update
Body
application/json
The body of the invite link to update
The data of the invite link endpoint
Response
200
application/json
The data of the invite link endpoint
curl --request PUT \
--url https://api.rootfi.dev/v3/core/invite_links/{invite_link_id} \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '{
"company_name": "RootFi",
"integrations": [
"XERO"
],
"integration_categories": [
"ACCOUNTING"
],
"sync_config": [
{
"data_model": "ACCOUNTS",
"category": "ACCOUNTING",
"enabled": true,
"frequency": "DAILY",
"interval": 1,
"scope_access": {
"READ": true,
"CREATE": true,
"UPDATE": true,
"DELETE": true
},
"sync_from": "2023-01-01T00:00:00Z"
}
]
}'
{
"data": {
"rootfi_id": 1,
"rootfi_created_at": "2021-08-10T12:00:00Z",
"rootfi_updated_at": "2021-08-10T12:00:00Z",
"invite_link_id": "1",
"integrations": [
"XERO"
],
"integration_categories": [
"ACCOUNTING"
],
"company": {
"rootfi_id": 1,
"rootfi_created_at": "2021-08-10T12:00:00Z",
"rootfi_updated_at": "2021-08-10T12:00:00Z",
"name": "RootFi"
},
"connections": [
{
"rootfi_id": 1,
"rootfi_created_at": "2021-08-10T12:00:00Z",
"rootfi_updated_at": "2021-08-10T12:00:00Z",
"integration_type": "XERO",
"status": "HEALTHY",
"sync_status": "IDLE",
"rate_limits": {
"counters": {
"day": 4,
"hour": 1,
"minute": 1,
"concurrent": 0
},
"lastReset": {
"day": "2024-01-28T11:00:17.087Z",
"hour": "2024-01-29T05:10:40.896Z",
"minute": "2024-01-29T05:10:40.896Z"
},
"maxLimits": {
"per_minute": 500,
"concurrent_calls": 10
}
},
"sync_config": [
{
"data_model": "ACCOUNTS",
"enabled": true,
"frequency": "DAILY",
"interval": 1,
"scope_access": {
"READ": true,
"CREATE": true,
"UPDATE": true,
"DELETE": true
},
"category": "ACCOUNTING",
"sync_from": "2023-01-01T00:00:00Z"
}
],
"category": "ACCOUNTING"
}
]
}
}