This method will auto-generate an ID and create a new custom query definition. If an ID is specified for the custom query definition, an error will be thrown.
The custom query definition that you would like to be saved.
{- "id": "string",
- "application": "string",
- "name": "string",
- "description": "string",
- "definition": {
- "id": "string",
- "name": "string",
- "description": "string",
- "primary_table": "string",
- "context": {
- "required": true,
- "service": "string",
- "field": "string",
- "display_name": "string",
- "help_text": "string"
}, - "perform_custom_resolution_logic": true,
- "common_table_expressions": [
- {
- "alias": "string",
- "sql": "string"
}
], - "services": [
- {
- "service": "string",
- "table": "string",
- "table_alias": "string",
- "group_name": "string",
- "id_column": "string",
- "join_fragment": "string",
- "hints": { }
}
], - "fields": [
- {
- "table_alias": "string",
- "database_column": "string",
- "custom_sql": "string",
- "group_name": "string",
- "name": "string",
- "label": "string",
- "type": "string",
- "reference_service": "string",
- "acceptable_values": [
- {
- "label": "string",
- "value": "string"
}
], - "service": "string"
}
], - "default_output_fields": [
- {
- "name": "string",
- "label": "string",
- "applies_when_context": "is given"
}
], - "default_sort_fields": [
- {
- "name": "string",
- "descending": true,
- "applies_when_context": "is given"
}
]
}, - "is_active": true,
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
{- "id": "string",
- "application": "string",
- "name": "string",
- "description": "string",
- "definition": {
- "id": "string",
- "name": "string",
- "description": "string",
- "primary_table": "string",
- "context": {
- "required": true,
- "service": "string",
- "field": "string",
- "display_name": "string",
- "help_text": "string"
}, - "perform_custom_resolution_logic": true,
- "common_table_expressions": [
- {
- "alias": "string",
- "sql": "string"
}
], - "services": [
- {
- "service": "string",
- "table": "string",
- "table_alias": "string",
- "group_name": "string",
- "id_column": "string",
- "join_fragment": "string",
- "hints": { }
}
], - "fields": [
- {
- "table_alias": "string",
- "database_column": "string",
- "custom_sql": "string",
- "group_name": "string",
- "name": "string",
- "label": "string",
- "type": "string",
- "reference_service": "string",
- "acceptable_values": [
- {
- "label": "string",
- "value": "string"
}
], - "service": "string"
}
], - "default_output_fields": [
- {
- "name": "string",
- "label": "string",
- "applies_when_context": "is given"
}
], - "default_sort_fields": [
- {
- "name": "string",
- "descending": true,
- "applies_when_context": "is given"
}
]
}, - "is_active": true,
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will scan all custom query definitions and and return them to the caller.
curl -i -X GET \ 'https://platform.api.756794052567.rhythmsoftware.com/customQueryDefinitions/:tenantId?fields=string&exclusiveStartKey=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
[- {
- "id": "string",
- "application": "string",
- "name": "string",
- "description": "string",
- "definition": {
- "id": "string",
- "name": "string",
- "description": "string",
- "primary_table": "string",
- "context": {
- "required": true,
- "service": "string",
- "field": "string",
- "display_name": "string",
- "help_text": "string"
}, - "perform_custom_resolution_logic": true,
- "common_table_expressions": [
- {
- "alias": "string",
- "sql": "string"
}
], - "services": [
- {
- "service": "string",
- "table": "string",
- "table_alias": "string",
- "group_name": "string",
- "id_column": "string",
- "join_fragment": "string",
- "hints": { }
}
], - "fields": [
- {
- "table_alias": "string",
- "database_column": "string",
- "custom_sql": "string",
- "group_name": "string",
- "name": "string",
- "label": "string",
- "type": "string",
- "reference_service": "string",
- "acceptable_values": [
- {
- "label": "string",
- "value": "string"
}
], - "service": "string"
}
], - "default_output_fields": [
- {
- "name": "string",
- "label": "string",
- "applies_when_context": "is given"
}
], - "default_sort_fields": [
- {
- "name": "string",
- "descending": true,
- "applies_when_context": "is given"
}
]
}, - "is_active": true,
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
]
This method will look up a custom query definition by the specified ID and return it back.
curl -i -X GET \ 'https://platform.api.756794052567.rhythmsoftware.com/customQueryDefinitions/:tenantId/:id?fields=string&consistentRead=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "id": "string",
- "application": "string",
- "name": "string",
- "description": "string",
- "definition": {
- "id": "string",
- "name": "string",
- "description": "string",
- "primary_table": "string",
- "context": {
- "required": true,
- "service": "string",
- "field": "string",
- "display_name": "string",
- "help_text": "string"
}, - "perform_custom_resolution_logic": true,
- "common_table_expressions": [
- {
- "alias": "string",
- "sql": "string"
}
], - "services": [
- {
- "service": "string",
- "table": "string",
- "table_alias": "string",
- "group_name": "string",
- "id_column": "string",
- "join_fragment": "string",
- "hints": { }
}
], - "fields": [
- {
- "table_alias": "string",
- "database_column": "string",
- "custom_sql": "string",
- "group_name": "string",
- "name": "string",
- "label": "string",
- "type": "string",
- "reference_service": "string",
- "acceptable_values": [
- {
- "label": "string",
- "value": "string"
}
], - "service": "string"
}
], - "default_output_fields": [
- {
- "name": "string",
- "label": "string",
- "applies_when_context": "is given"
}
], - "default_sort_fields": [
- {
- "name": "string",
- "descending": true,
- "applies_when_context": "is given"
}
]
}, - "is_active": true,
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will update an existing custom query definition with the specified ID.
The updated custom query definition that will be saved.
{- "id": "string",
- "application": "string",
- "name": "string",
- "description": "string",
- "definition": {
- "id": "string",
- "name": "string",
- "description": "string",
- "primary_table": "string",
- "context": {
- "required": true,
- "service": "string",
- "field": "string",
- "display_name": "string",
- "help_text": "string"
}, - "perform_custom_resolution_logic": true,
- "common_table_expressions": [
- {
- "alias": "string",
- "sql": "string"
}
], - "services": [
- {
- "service": "string",
- "table": "string",
- "table_alias": "string",
- "group_name": "string",
- "id_column": "string",
- "join_fragment": "string",
- "hints": { }
}
], - "fields": [
- {
- "table_alias": "string",
- "database_column": "string",
- "custom_sql": "string",
- "group_name": "string",
- "name": "string",
- "label": "string",
- "type": "string",
- "reference_service": "string",
- "acceptable_values": [
- {
- "label": "string",
- "value": "string"
}
], - "service": "string"
}
], - "default_output_fields": [
- {
- "name": "string",
- "label": "string",
- "applies_when_context": "is given"
}
], - "default_sort_fields": [
- {
- "name": "string",
- "descending": true,
- "applies_when_context": "is given"
}
]
}, - "is_active": true,
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
{- "id": "string",
- "application": "string",
- "name": "string",
- "description": "string",
- "definition": {
- "id": "string",
- "name": "string",
- "description": "string",
- "primary_table": "string",
- "context": {
- "required": true,
- "service": "string",
- "field": "string",
- "display_name": "string",
- "help_text": "string"
}, - "perform_custom_resolution_logic": true,
- "common_table_expressions": [
- {
- "alias": "string",
- "sql": "string"
}
], - "services": [
- {
- "service": "string",
- "table": "string",
- "table_alias": "string",
- "group_name": "string",
- "id_column": "string",
- "join_fragment": "string",
- "hints": { }
}
], - "fields": [
- {
- "table_alias": "string",
- "database_column": "string",
- "custom_sql": "string",
- "group_name": "string",
- "name": "string",
- "label": "string",
- "type": "string",
- "reference_service": "string",
- "acceptable_values": [
- {
- "label": "string",
- "value": "string"
}
], - "service": "string"
}
], - "default_output_fields": [
- {
- "name": "string",
- "label": "string",
- "applies_when_context": "is given"
}
], - "default_sort_fields": [
- {
- "name": "string",
- "descending": true,
- "applies_when_context": "is given"
}
]
}, - "is_active": true,
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will patch an existing custom query definition with the specified ID, using the HTTP PATCH specification.
The patch directives conforming to RFC 6902.
[- {
- "op": "add",
- "path": "string",
- "value": "string"
}
]
{- "id": "string",
- "application": "string",
- "name": "string",
- "description": "string",
- "definition": {
- "id": "string",
- "name": "string",
- "description": "string",
- "primary_table": "string",
- "context": {
- "required": true,
- "service": "string",
- "field": "string",
- "display_name": "string",
- "help_text": "string"
}, - "perform_custom_resolution_logic": true,
- "common_table_expressions": [
- {
- "alias": "string",
- "sql": "string"
}
], - "services": [
- {
- "service": "string",
- "table": "string",
- "table_alias": "string",
- "group_name": "string",
- "id_column": "string",
- "join_fragment": "string",
- "hints": { }
}
], - "fields": [
- {
- "table_alias": "string",
- "database_column": "string",
- "custom_sql": "string",
- "group_name": "string",
- "name": "string",
- "label": "string",
- "type": "string",
- "reference_service": "string",
- "acceptable_values": [
- {
- "label": "string",
- "value": "string"
}
], - "service": "string"
}
], - "default_output_fields": [
- {
- "name": "string",
- "label": "string",
- "applies_when_context": "is given"
}
], - "default_sort_fields": [
- {
- "name": "string",
- "descending": true,
- "applies_when_context": "is given"
}
]
}, - "is_active": true,
- "custom_field_values": [
- {
- "custom_field_id": "string",
- "string_value": "string",
- "numeric_value": 0,
- "boolean_value": true,
- "file_url_value": "string",
- "list_value": [
- "string"
], - "table_value": [
- { }
]
}
], - "sys_deleted_by_id": "string",
- "sys_version": 0,
- "sys_created_at": "2019-08-24T14:15:22Z",
- "sys_last_modified_at": "2019-08-24T14:15:22Z",
- "sys_created_by_id": "string",
- "sys_last_modified_by_id": "string",
- "sys_external_id": "string",
- "sys_locked": true,
- "sys_bulk_load_pk": "string",
- "sys_bulk_load_at": "string",
- "sys_bulk_load_id": "string",
- "sys_bulk_load_record_no": 0,
- "sys_bulk_load_source_file": "string",
- "sys_last_bulk_data_operation_id": "string",
- "sys_last_bulk_data_operation_sys_version": "string",
- "sys_directive": "string",
- "sys_calculated_field_error": "string",
- "sys_snapshot_base_version": 0,
- "sys_has_files_in_s3": true,
- "sys_configuration_snapshot_id": "string",
- "sys_last_security_context": { },
- "sys_calculated_field_errors": [
- {
- "field": "string",
- "error": "string"
}
]
}
This method will delete a custom query definition with the specified ID.
curl -i -X DELETE \ https://platform.api.756794052567.rhythmsoftware.com/customQueryDefinitions/:tenantId/:id \ -H 'Authorization: YOUR_API_KEY_HERE'
"string"
TAllows you to perform up to 100 parallel patch/delete operations
The batch request
Array of objects |
{- "operations": [
- {
- "operation": "create",
- "id": "string",
- "patch_directives": [
- {
- "op": "add",
- "path": "string",
- "value": "string"
}
], - "object": { }
}
]
}
{- "success_count": 0,
- "error_count": 0,
- "results": [
- {
- "operation": "create",
- "id": "string",
- "outcome": "success",
- "error_message": "string",
- "object": { }
}
]
}