This method will auto-generate an ID and create a new expiration rule set. If an ID is specified for the expiration rule set, an error will be thrown.
The expiration rule set that you would like to be saved.
{- "id": "string",
- "name": "string",
- "rules": [
- {
- "name": "string",
- "matching_conditions": {
- "all": [
- {
- "any": { },
- "all": { },
- "fact": "string",
- "operator": "equal",
- "path": "string",
- "value": "string"
}
], - "any": [
- {
- "any": { },
- "all": { },
- "fact": "string",
- "operator": "equal",
- "path": "string",
- "value": "string"
}
]
}, - "is_enabled": true,
- "expiration_options": {
- "expiration_type": "calendar",
- "calendar_expiration_options": {
- "start_of_calendar_year": 1,
- "sell_for_next_year_after": "string",
- "number_of_years": 1
}, - "anniversary_expiration_options": {
- "sell_for_next_month_after": 1,
- "allow_mid_month_expirations": true,
- "term_length": 1,
- "term_type": "days",
- "enable_fixed_expiration_dates": true,
- "fixed_expiration_dates": [
- {
- "range_start": "string",
- "range_end": "string",
- "expiration_date": "string"
}
]
}, - "grace_period": 0,
- "allow_reinstatement": true,
- "reinstatement_options": {
- "reinstatement_period": 0,
- "give_renewal_pricing_during_reinstatement_period": true
}
}
}
], - "default_expiration_options": {
- "expiration_type": "calendar",
- "calendar_expiration_options": {
- "start_of_calendar_year": 1,
- "sell_for_next_year_after": "string",
- "number_of_years": 1
}, - "anniversary_expiration_options": {
- "sell_for_next_month_after": 1,
- "allow_mid_month_expirations": true,
- "term_length": 1,
- "term_type": "days",
- "enable_fixed_expiration_dates": true,
- "fixed_expiration_dates": [
- {
- "range_start": "string",
- "range_end": "string",
- "expiration_date": "string"
}
]
}, - "grace_period": 0,
- "allow_reinstatement": true,
- "reinstatement_options": {
- "reinstatement_period": 0,
- "give_renewal_pricing_during_reinstatement_period": true
}
}, - "is_active": true,
- "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",
- "name": "string",
- "rules": [
- {
- "name": "string",
- "matching_conditions": {
- "all": [
- {
- "any": { },
- "all": { },
- "fact": "string",
- "operator": "equal",
- "path": "string",
- "value": "string"
}
], - "any": [
- {
- "any": { },
- "all": { },
- "fact": "string",
- "operator": "equal",
- "path": "string",
- "value": "string"
}
]
}, - "is_enabled": true,
- "expiration_options": {
- "expiration_type": "calendar",
- "calendar_expiration_options": {
- "start_of_calendar_year": 1,
- "sell_for_next_year_after": "string",
- "number_of_years": 1
}, - "anniversary_expiration_options": {
- "sell_for_next_month_after": 1,
- "allow_mid_month_expirations": true,
- "term_length": 1,
- "term_type": "days",
- "enable_fixed_expiration_dates": true,
- "fixed_expiration_dates": [
- {
- "range_start": "string",
- "range_end": "string",
- "expiration_date": "string"
}
]
}, - "grace_period": 0,
- "allow_reinstatement": true,
- "reinstatement_options": {
- "reinstatement_period": 0,
- "give_renewal_pricing_during_reinstatement_period": true
}
}
}
], - "default_expiration_options": {
- "expiration_type": "calendar",
- "calendar_expiration_options": {
- "start_of_calendar_year": 1,
- "sell_for_next_year_after": "string",
- "number_of_years": 1
}, - "anniversary_expiration_options": {
- "sell_for_next_month_after": 1,
- "allow_mid_month_expirations": true,
- "term_length": 1,
- "term_type": "days",
- "enable_fixed_expiration_dates": true,
- "fixed_expiration_dates": [
- {
- "range_start": "string",
- "range_end": "string",
- "expiration_date": "string"
}
]
}, - "grace_period": 0,
- "allow_reinstatement": true,
- "reinstatement_options": {
- "reinstatement_period": 0,
- "give_renewal_pricing_during_reinstatement_period": true
}
}, - "is_active": true,
- "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 expiration rule sets and and return them to the caller.
curl -i -X GET \ 'https://certifications.api.756794052567.rhythmsoftware.com/expirationRuleSets/:tenantId?fields=string&exclusiveStartKey=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
[- {
- "id": "string",
- "name": "string",
- "rules": [
- {
- "name": "string",
- "matching_conditions": {
- "all": [
- {
- "any": { },
- "all": { },
- "fact": "string",
- "operator": "equal",
- "path": "string",
- "value": "string"
}
], - "any": [
- {
- "any": { },
- "all": { },
- "fact": "string",
- "operator": "equal",
- "path": "string",
- "value": "string"
}
]
}, - "is_enabled": true,
- "expiration_options": {
- "expiration_type": "calendar",
- "calendar_expiration_options": {
- "start_of_calendar_year": 1,
- "sell_for_next_year_after": "string",
- "number_of_years": 1
}, - "anniversary_expiration_options": {
- "sell_for_next_month_after": 1,
- "allow_mid_month_expirations": true,
- "term_length": 1,
- "term_type": "days",
- "enable_fixed_expiration_dates": true,
- "fixed_expiration_dates": [
- {
- "range_start": null,
- "range_end": null,
- "expiration_date": null
}
]
}, - "grace_period": 0,
- "allow_reinstatement": true,
- "reinstatement_options": {
- "reinstatement_period": 0,
- "give_renewal_pricing_during_reinstatement_period": true
}
}
}
], - "default_expiration_options": {
- "expiration_type": "calendar",
- "calendar_expiration_options": {
- "start_of_calendar_year": 1,
- "sell_for_next_year_after": "string",
- "number_of_years": 1
}, - "anniversary_expiration_options": {
- "sell_for_next_month_after": 1,
- "allow_mid_month_expirations": true,
- "term_length": 1,
- "term_type": "days",
- "enable_fixed_expiration_dates": true,
- "fixed_expiration_dates": [
- {
- "range_start": "string",
- "range_end": "string",
- "expiration_date": "string"
}
]
}, - "grace_period": 0,
- "allow_reinstatement": true,
- "reinstatement_options": {
- "reinstatement_period": 0,
- "give_renewal_pricing_during_reinstatement_period": true
}
}, - "is_active": true,
- "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 expiration rule set by the specified ID and return it back.
curl -i -X GET \ 'https://certifications.api.756794052567.rhythmsoftware.com/expirationRuleSets/:tenantId/:id?fields=string&consistentRead=string' \ -H 'Authorization: YOUR_API_KEY_HERE'
{- "id": "string",
- "name": "string",
- "rules": [
- {
- "name": "string",
- "matching_conditions": {
- "all": [
- {
- "any": { },
- "all": { },
- "fact": "string",
- "operator": "equal",
- "path": "string",
- "value": "string"
}
], - "any": [
- {
- "any": { },
- "all": { },
- "fact": "string",
- "operator": "equal",
- "path": "string",
- "value": "string"
}
]
}, - "is_enabled": true,
- "expiration_options": {
- "expiration_type": "calendar",
- "calendar_expiration_options": {
- "start_of_calendar_year": 1,
- "sell_for_next_year_after": "string",
- "number_of_years": 1
}, - "anniversary_expiration_options": {
- "sell_for_next_month_after": 1,
- "allow_mid_month_expirations": true,
- "term_length": 1,
- "term_type": "days",
- "enable_fixed_expiration_dates": true,
- "fixed_expiration_dates": [
- {
- "range_start": "string",
- "range_end": "string",
- "expiration_date": "string"
}
]
}, - "grace_period": 0,
- "allow_reinstatement": true,
- "reinstatement_options": {
- "reinstatement_period": 0,
- "give_renewal_pricing_during_reinstatement_period": true
}
}
}
], - "default_expiration_options": {
- "expiration_type": "calendar",
- "calendar_expiration_options": {
- "start_of_calendar_year": 1,
- "sell_for_next_year_after": "string",
- "number_of_years": 1
}, - "anniversary_expiration_options": {
- "sell_for_next_month_after": 1,
- "allow_mid_month_expirations": true,
- "term_length": 1,
- "term_type": "days",
- "enable_fixed_expiration_dates": true,
- "fixed_expiration_dates": [
- {
- "range_start": "string",
- "range_end": "string",
- "expiration_date": "string"
}
]
}, - "grace_period": 0,
- "allow_reinstatement": true,
- "reinstatement_options": {
- "reinstatement_period": 0,
- "give_renewal_pricing_during_reinstatement_period": true
}
}, - "is_active": true,
- "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 expiration rule set with the specified ID.
The updated expiration rule set that will be saved.
{- "id": "string",
- "name": "string",
- "rules": [
- {
- "name": "string",
- "matching_conditions": {
- "all": [
- {
- "any": { },
- "all": { },
- "fact": "string",
- "operator": "equal",
- "path": "string",
- "value": "string"
}
], - "any": [
- {
- "any": { },
- "all": { },
- "fact": "string",
- "operator": "equal",
- "path": "string",
- "value": "string"
}
]
}, - "is_enabled": true,
- "expiration_options": {
- "expiration_type": "calendar",
- "calendar_expiration_options": {
- "start_of_calendar_year": 1,
- "sell_for_next_year_after": "string",
- "number_of_years": 1
}, - "anniversary_expiration_options": {
- "sell_for_next_month_after": 1,
- "allow_mid_month_expirations": true,
- "term_length": 1,
- "term_type": "days",
- "enable_fixed_expiration_dates": true,
- "fixed_expiration_dates": [
- {
- "range_start": "string",
- "range_end": "string",
- "expiration_date": "string"
}
]
}, - "grace_period": 0,
- "allow_reinstatement": true,
- "reinstatement_options": {
- "reinstatement_period": 0,
- "give_renewal_pricing_during_reinstatement_period": true
}
}
}
], - "default_expiration_options": {
- "expiration_type": "calendar",
- "calendar_expiration_options": {
- "start_of_calendar_year": 1,
- "sell_for_next_year_after": "string",
- "number_of_years": 1
}, - "anniversary_expiration_options": {
- "sell_for_next_month_after": 1,
- "allow_mid_month_expirations": true,
- "term_length": 1,
- "term_type": "days",
- "enable_fixed_expiration_dates": true,
- "fixed_expiration_dates": [
- {
- "range_start": "string",
- "range_end": "string",
- "expiration_date": "string"
}
]
}, - "grace_period": 0,
- "allow_reinstatement": true,
- "reinstatement_options": {
- "reinstatement_period": 0,
- "give_renewal_pricing_during_reinstatement_period": true
}
}, - "is_active": true,
- "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",
- "name": "string",
- "rules": [
- {
- "name": "string",
- "matching_conditions": {
- "all": [
- {
- "any": { },
- "all": { },
- "fact": "string",
- "operator": "equal",
- "path": "string",
- "value": "string"
}
], - "any": [
- {
- "any": { },
- "all": { },
- "fact": "string",
- "operator": "equal",
- "path": "string",
- "value": "string"
}
]
}, - "is_enabled": true,
- "expiration_options": {
- "expiration_type": "calendar",
- "calendar_expiration_options": {
- "start_of_calendar_year": 1,
- "sell_for_next_year_after": "string",
- "number_of_years": 1
}, - "anniversary_expiration_options": {
- "sell_for_next_month_after": 1,
- "allow_mid_month_expirations": true,
- "term_length": 1,
- "term_type": "days",
- "enable_fixed_expiration_dates": true,
- "fixed_expiration_dates": [
- {
- "range_start": "string",
- "range_end": "string",
- "expiration_date": "string"
}
]
}, - "grace_period": 0,
- "allow_reinstatement": true,
- "reinstatement_options": {
- "reinstatement_period": 0,
- "give_renewal_pricing_during_reinstatement_period": true
}
}
}
], - "default_expiration_options": {
- "expiration_type": "calendar",
- "calendar_expiration_options": {
- "start_of_calendar_year": 1,
- "sell_for_next_year_after": "string",
- "number_of_years": 1
}, - "anniversary_expiration_options": {
- "sell_for_next_month_after": 1,
- "allow_mid_month_expirations": true,
- "term_length": 1,
- "term_type": "days",
- "enable_fixed_expiration_dates": true,
- "fixed_expiration_dates": [
- {
- "range_start": "string",
- "range_end": "string",
- "expiration_date": "string"
}
]
}, - "grace_period": 0,
- "allow_reinstatement": true,
- "reinstatement_options": {
- "reinstatement_period": 0,
- "give_renewal_pricing_during_reinstatement_period": true
}
}, - "is_active": true,
- "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 expiration rule set with the specified ID, using the HTTP PATCH specification.
The patch directives conforming to RFC 6902.
[- {
- "op": "add",
- "path": "string",
- "value": "string"
}
]
{- "id": "string",
- "name": "string",
- "rules": [
- {
- "name": "string",
- "matching_conditions": {
- "all": [
- {
- "any": { },
- "all": { },
- "fact": "string",
- "operator": "equal",
- "path": "string",
- "value": "string"
}
], - "any": [
- {
- "any": { },
- "all": { },
- "fact": "string",
- "operator": "equal",
- "path": "string",
- "value": "string"
}
]
}, - "is_enabled": true,
- "expiration_options": {
- "expiration_type": "calendar",
- "calendar_expiration_options": {
- "start_of_calendar_year": 1,
- "sell_for_next_year_after": "string",
- "number_of_years": 1
}, - "anniversary_expiration_options": {
- "sell_for_next_month_after": 1,
- "allow_mid_month_expirations": true,
- "term_length": 1,
- "term_type": "days",
- "enable_fixed_expiration_dates": true,
- "fixed_expiration_dates": [
- {
- "range_start": "string",
- "range_end": "string",
- "expiration_date": "string"
}
]
}, - "grace_period": 0,
- "allow_reinstatement": true,
- "reinstatement_options": {
- "reinstatement_period": 0,
- "give_renewal_pricing_during_reinstatement_period": true
}
}
}
], - "default_expiration_options": {
- "expiration_type": "calendar",
- "calendar_expiration_options": {
- "start_of_calendar_year": 1,
- "sell_for_next_year_after": "string",
- "number_of_years": 1
}, - "anniversary_expiration_options": {
- "sell_for_next_month_after": 1,
- "allow_mid_month_expirations": true,
- "term_length": 1,
- "term_type": "days",
- "enable_fixed_expiration_dates": true,
- "fixed_expiration_dates": [
- {
- "range_start": "string",
- "range_end": "string",
- "expiration_date": "string"
}
]
}, - "grace_period": 0,
- "allow_reinstatement": true,
- "reinstatement_options": {
- "reinstatement_period": 0,
- "give_renewal_pricing_during_reinstatement_period": true
}
}, - "is_active": true,
- "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 expiration rule set with the specified ID.
curl -i -X DELETE \ https://certifications.api.756794052567.rhythmsoftware.com/expirationRuleSets/: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": { }
}
]
}