curl -i -X POST \
'https://docs.api.rhythmsoftware.com/_mock/apis/certifications/certifications-v1/expirationRuleSets/{tenantId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"default_expiration_options": {
"allow_reinstatement": true,
"anniversary_expiration_options": {
"allow_mid_month_expirations": true,
"enable_fixed_expiration_dates": true,
"fixed_expiration_dates": {
"0": {
"expiration_date": "string",
"range_end": "string",
"range_start": "string"
}
},
"sell_for_next_month_after": 1,
"term_length": 1,
"term_type": "days"
},
"calendar_expiration_options": {
"number_of_years": 1,
"sell_for_next_year_after": "string",
"start_of_calendar_year": 1
},
"expiration_type": "anniversary",
"grace_period": 0.1,
"reinstatement_options": {
"give_renewal_pricing_during_reinstatement_period": true,
"reinstatement_period": 0.1
}
},
"id": "string",
"is_active": true,
"name": "string",
"rules": [
{
"expiration_options": {
"allow_reinstatement": true,
"anniversary_expiration_options": {
"allow_mid_month_expirations": true,
"enable_fixed_expiration_dates": true,
"fixed_expiration_dates": {
"0": {
"expiration_date": "string",
"range_end": "string",
"range_start": "string"
}
},
"sell_for_next_month_after": 1,
"term_length": 1,
"term_type": "days"
},
"calendar_expiration_options": {
"number_of_years": 1,
"sell_for_next_year_after": "string",
"start_of_calendar_year": 1
},
"expiration_type": "anniversary",
"grace_period": 0.1,
"reinstatement_options": {
"give_renewal_pricing_during_reinstatement_period": true,
"reinstatement_period": 0.1
}
},
"is_enabled": true,
"matching_conditions": {
"all": [
{
"all": {},
"any": {},
"fact": "string",
"operator": "contains",
"path": "string",
"value": "string"
}
],
"any": [
{
"all": {},
"any": {},
"fact": "string",
"operator": "contains",
"path": "string",
"value": "string"
}
]
},
"name": "string"
}
],
"sys_bulk_load_at": "string",
"sys_bulk_load_id": "string",
"sys_bulk_load_pk": "string",
"sys_bulk_load_record_no": 0.1,
"sys_bulk_load_source_file": "string",
"sys_calculated_field_error": "string",
"sys_calculated_field_errors": [
{
"error": "string",
"field": "string"
}
],
"sys_configuration_snapshot_id": "string",
"sys_created_at": "2019-08-24T14:15:22Z",
"sys_created_by_id": "string",
"sys_deleted_by_id": "string",
"sys_directive": "string",
"sys_external_id": "string",
"sys_has_files_in_s3": true,
"sys_last_bulk_data_operation_id": "string",
"sys_last_bulk_data_operation_sys_version": "string",
"sys_last_modified_at": "2019-08-24T14:15:22Z",
"sys_last_modified_by_id": "string",
"sys_last_security_context": {},
"sys_locked": true,
"sys_snapshot_base_version": 0.1,
"sys_version": 0.1
}'