Syncs
Choose a consumer's capabilities and modes
Changed onReplaces the consumer's choice of main capabilities and modes. Whatever they need is turned on automatically. Answers with the resulting setup and what changed. Mapping values of tables no longer needed are kept. Send preflight: true to get that answer without saving anything.
put/consumers/{consumer_id}/syncs/{syncid}/capabilities
Request
- Base URLhttps://api.chift.eu
- AuthHTTP bearer
- TypeScripthttps://skmtc.dev/chift/apis/chift-api/docs/consumers/:consumer_id/syncs/:syncid/capabilities/put.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
consumer_idstring uuid required
syncidstring uuid required
Query parameters
languagestring nullable
ISO 639-1 code of the language of the texts (en, fr, nl, de, es; any case), falling back to English. Without it, translation keys.
Request body
Example request
{
"selected": [
"spend_to_accounting.SupplierInvoices"
],
"modes": {
"spend_to_accounting.SupplierInvoices": "spend_to_accounting.SupplierInvoices.AsJournalEntry"
}
}Response
Successful Response
Example response
{
"capabilities": [
{
"key": "spend_to_accounting.SupplierInvoices",
"default_mode": "spend_to_accounting.SupplierInvoices.AsInvoice",
"modes": [
{
"key": "spend_to_accounting.SupplierInvoices.AsInvoice",
"requires_modes": [
{
"capability": "spend_to_accounting.SupplierInvoices",
"mode": "spend_to_accounting.SupplierInvoices.AsInvoice"
}
]
}
]
}
],
"tables": [
{
"key": "spend_to_accounting.PurchaseVatCodes"
}
],
"questions": [
{
"key": "spend_to_accounting.ExpensesSince"
}
],
"connections": [
{
"vertical": "accounting"
}
]
}Changes
- info
endpoint added
- info