Tradesync
Browse API reference
API reference

Update filter

PATCHhttps://api.tradesync.com/filters/{filter_id}/{action}

Add or remove identifiers in a saved filter. The filter type is unchanged.

Last updated

Path parameters

filter_idType: integer
Saved-filter ID belonging to the authenticated user
actionType: string
add or remove

Request example

PATCH /filters/431/add
{
    "type": "accounts",
    "identifiers": [
        1242495
    ]
}

Request body

typeType: stringRequired: Yes
Supply the existing filter type so the request can resolve its identifiersAccepted values / limits: accounts, copiers
identifiersType: arrayRequired: Yes
Existing IDs belonging to the authenticated user and matching typeAccepted values / limits: Non-empty array

The add action skips IDs already present. The remove action removes matching IDs that are present.

Response example

See response field definitions for field types and conditional fields.

{
    "result": "success",
    "status": 200,
    "data": {
        "id": 431,
        "created_at": "2026-11-12T10:00:00Z",
        "updated_at": "2026-11-12T10:00:00Z",
        "type": "accounts",
        "identifiers_count": 3,
        "identifiers": [
            1241453,
            1241451,
            1242495
        ]
    }
}

Errors

Code HTTP status Condition
identifier_mismatch 422 At least one supplied identifier cannot be resolved for the user and type.

See also common response codes.