Update a saved advanced search query​
Update a saved advanced search query
Path Parameters
- id uuid required
ID of the object to retrieve or update
Example: db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e
- application/json
Request Body required
advanced_search object
id uuidthe id of the object
label stringthe label
condition_rules_attributes object[]
The attributes for the condition rules
anyOf- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
type stringPossible values: [
ProfileTypeRule]the type
comparison_operator stringPossible values: [
==,!=]The operator to use for comparison
value uuidThe value to use in the comparison
_destroy booleanDefault value:
falseShould this Profile type rule be destroyed?
type stringPossible values: [
ProfileStatusRule]The type
comparison_operator stringPossible values: [
==,!=]The operator to use to compare
value stringPossible values: [
Active,Inactive,Leave of absence,Terminated]The value
_destroy booleanDefault value:
falseShould this be destroyed
type stringPossible values: [
ProfileAttributeRule]The type
condition_object_type stringPossible values: [
TextFieldAttribute,TextAreaAttribute]The condition_object_type
condition_object_id uuidThe condition_object_id
comparison_operator stringPossible values: [
==,!=,>,<,start_with?,end_with?,include?]The operator used for comparisons
value stringThe value
_destroy booleanDefault value:
falseDestroy
type stringPossible values: [
ProfileAttributeRule]the type
condition_object_type stringPossible values: [
DateAttribute]The condition_object_type
condition_object_id uuidThe condition_object_id
secondary_attribute_type stringPossible values: [
DateAttribute]the secondary attribute type
secondary_attribute_id uuidThe secondary attribute id
comparison_operator stringPossible values: [
>,<,after,before]The operator to use for comparison
value stringPossible values: [
Today,<uid>]The value
secondary_value stringPossible values: [
after,before]The secondary value
tertiary_value stringThe tertiary value
_destroy booleanDefault value:
falseshould this be destroyed
type stringPossible values: [
ProfileAttributeRule]the type
condition_object_type stringPossible values: [
ProfileSelectAttribute,ProfileSearchAttribute,OwnerSelectAttribute,OwnerSearchAttribute,ContributorSelectAttribute,ContributorSearchAttribute]The condition object type
condition_object_id uuidThe condition object id
comparison_operator stringPossible values: [
include?,exclude?]The operator to use for comparison
value uuidthe value
_destroy booleanDefault value:
falseShould this be destroyed?
type stringPossible values: [
RiskRule]the type
comparison_operator stringPossible values: [
==,>,<]The operator to use for comparison
value uuidthe value
secondary_value stringPossible values: [
OverallRisk]The secondary value
_destroy booleanDefault value:
falseShould this riskrule be destroyed
- 200
Expected response to a valid request
- application/json
- Schema
- Example (from schema)
Schema
advanced_search object
id uuidThe id
uid stringPossible values:
>= 32 charactersand<= 32 charactersthe uid
label stringthe label
condition_rules_attributes object[]
The condition rules attributes
anyOf- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
id uuidThe id
uid stringPossible values:
>= 32 charactersand<= 32 charactersThe uuid
type stringPossible values: [
ProfileTypeRule]The type
comparison_operator stringPossible values: [
==,!=]The comparison operator
value uuidThe value
id uuidThe id
uid stringPossible values:
>= 32 charactersand<= 32 charactersThe uid
type stringPossible values: [
ProfileStatusRule]The type
comparison_operator stringPossible values: [
==,!=]The comparison operator
value stringPossible values: [
Active,Inactive,Leave of absence,Terminated]The value
id uuidthe id
uid stringPossible values:
>= 32 charactersand<= 32 charactersthe uid
type stringPossible values: [
ProfileAttributeRule]The type
condition_object_type stringPossible values: [
TextFieldAttribute,TextAreaAttribute]The condition_object_type
condition_object_id uuidThe condition_object_id
comparison_operator stringPossible values: [
==,!=,>,<,start_with?,end_with?,include?]The operator to use for comparison
value stringThe value
id uuidThe id
uid stringPossible values:
>= 32 charactersand<= 32 charactersThe uid
type stringPossible values: [
ProfileAttributeRule]The type
condition_object_type stringPossible values: [
DateAttribute]The condition object type
condition_object_id uuidThe condition object id
secondary_attribute_type stringPossible values: [
DateAttribute]The secondary_attribute_type
secondary_attribute_id uuidThe secondary_attribute_id
comparison_operator stringPossible values: [
>,<,after,before]The operator to use for comparison
value stringPossible values: [
Today,<uid>]The value to use for comparison
secondary_value stringPossible values: [
after,before]The secondary value
tertiary_value stringthe tertiary_value
id uuidThe id
uid stringPossible values:
>= 32 charactersand<= 32 charactersThe uid
type stringPossible values: [
ProfileAttributeRule]The type
condition_object_type stringPossible values: [
ProfileSelectAttribute,ProfileSearchAttribute,OwnerSelectAttribute,OwnerSearchAttribute,ContributorSelectAttribute,ContributorSearchAttribute]The condition_object_type
condition_object_id uuidThe condition_object_id
comparison_operator stringPossible values: [
include?,exclude?]The comparison_operator
value uuidThe value
id uuidThe id
uid stringPossible values:
>= 32 charactersand<= 32 charactersthe uid
type stringPossible values: [
RiskRule]The type
comparison_operator stringPossible values: [
==,>,<]The operator to use for comparison
value uuidId of the Risk Level being compared against
secondary_value stringPossible values: [
OverallRisk]The secondary value
{
"advanced_search": {
"id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"uid": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"label": "mylabel",
"condition_rules_attributes": [
{
"type": "ProfileTypeRule",
"comparison_operator": "==",
"value": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"
},
{
"type": "ProfileStatusRule",
"id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"uid": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"comparison_operator": "==",
"value": "Active"
}
]
}
}