Filter Sets
Fetch a single filter set by ID
Returns the filter set identified by filter_set_id within the given workspace. Soft-deleted filter sets are not returned.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/contracts.v1.Contracts/GetFilterSet" \ -H "Content-Type: application/json" \ -d '{ "filterSetId": "string", "workspaceId": "string" }'{
"filterSet": {
"createdAt": "2019-08-24T14:15:22Z",
"deletedAt": "2019-08-24T14:15:22Z",
"description": "string",
"id": "EBESExQVFhcYGRobHB0eHw==",
"name": "string",
"predicate": {
"filterSet": {
"filterSetId": "string"
},
"group": {
"condition": "PREDICATE_CONDITION_UNSPECIFIED",
"rules": [
{
"filterSet": {
"filterSetId": "string"
},
"group": {},
"rule": {
"field": "PREDICATE_FIELD_UNSPECIFIED",
"operator": "PREDICATE_OPERATOR_UNSPECIFIED",
"value": {
"boolValue": true,
"numberValue": 0.1,
"stringListValue": {
"values": [
"string"
]
},
"stringValue": "string"
}
}
}
]
},
"rule": {
"field": "PREDICATE_FIELD_UNSPECIFIED",
"operator": "PREDICATE_OPERATOR_UNSPECIFIED",
"value": {
"boolValue": true,
"numberValue": 0.1,
"stringListValue": {
"values": [
"string"
]
},
"stringValue": "string"
}
}
},
"updatedAt": "2019-08-24T14:15:22Z",
"version": "string",
"workspaceId": "string"
}
}{
"code": "invalid_argument",
"message": "The request was malformed, such as a missing required field or an unparseable cursor."
}{
"code": "unauthenticated",
"message": "The request lacks a valid API key in the Authorization header."
}{
"code": "permission_denied",
"message": "The API key is not allowed to perform this action on this workspace."
}{
"code": "not_found",
"message": "The requested resource does not exist in this workspace."
}{
"code": "resource_exhausted",
"message": "The request was rate limited. Slow down and retry later."
}{
"code": "internal",
"message": "An internal server error occurred."
}