curl --request PATCH \
--url https://api.finsync.ar/api/operation-types/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"operation_form_config": {
"version": 123,
"fixedConfig": {},
"fieldModes": {}
},
"default_completed": true
}
'const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
operation_form_config: {version: 123, fixedConfig: {}, fieldModes: {}},
default_completed: true
})
};
fetch('https://api.finsync.ar/api/operation-types/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
operation_form_config: {version: 123, fixedConfig: {}, fieldModes: {}},
default_completed: true
})
};
fetch('https://api.finsync.ar/api/operation-types/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.finsync.ar/api/operation-types/{id}"
payload = {
"name": "<string>",
"operation_form_config": {
"version": 123,
"fixedConfig": {},
"fieldModes": {}
},
"default_completed": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": 123,
"name": "<string>",
"type": "up",
"company_id": 123,
"operation_form_config": {
"kind": "up_down",
"version": 123,
"fixedConfig": {},
"fieldModes": {}
},
"default_completed": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Update a company operation type
Updates name, type, operation_form_config, and/or default_completed on an existing company operation type (deleted_at IS NULL). Omit operation_form_config to leave it unchanged; send JSON null to clear. At least one field is required. 404 if the id is not in this company or already deleted.
curl --request PATCH \
--url https://api.finsync.ar/api/operation-types/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"operation_form_config": {
"version": 123,
"fixedConfig": {},
"fieldModes": {}
},
"default_completed": true
}
'const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
operation_form_config: {version: 123, fixedConfig: {}, fieldModes: {}},
default_completed: true
})
};
fetch('https://api.finsync.ar/api/operation-types/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'PATCH',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
operation_form_config: {version: 123, fixedConfig: {}, fieldModes: {}},
default_completed: true
})
};
fetch('https://api.finsync.ar/api/operation-types/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.finsync.ar/api/operation-types/{id}"
payload = {
"name": "<string>",
"operation_form_config": {
"version": 123,
"fixedConfig": {},
"fieldModes": {}
},
"default_completed": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": 123,
"name": "<string>",
"type": "up",
"company_id": 123,
"operation_form_config": {
"kind": "up_down",
"version": 123,
"fixedConfig": {},
"fieldModes": {}
},
"default_completed": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Authorizations
API Key for authentication
Path Parameters
Operation type ID
Body
100up, down, exchange, other, budget, interest Company operation-type form config (dashboard operation_form_config). Validated with parseOperationFormConfig. kind is up_down (type=up or down), exchange, or other.
Show child attributes
Show child attributes
Response
Updated operation type
Operation type ID
Operation type name
Operation category
up, down, exchange, other, budget, interest Company ID
Company operation-type form config (dashboard operation_form_config). Validated with parseOperationFormConfig. kind is up_down (type=up or down), exchange, or other.
Show child attributes
Show child attributes
When true, create-operation forms default the completed checkbox on for approvers for this type. False starts them pending. Users without approve permission always create pending. Defaults to true.
Creation timestamp
Last update timestamp