using $filter on tapkey endpoints

Viewed 43

I'm making a call to this endpoint /api/v1/Owners/{ownerAccountId}/BoundLocks to get boundLocks associated with an ownerAccount, but I would like to filter those based on title,

This is what I'm doing but it still returns all the locks:

        `${this.baseUrl}/owners/${this.ownerAccountId}/BoundLocks?filter=title eq '${lockId}`,
        {
          headers: {
            'Authorization': `Bearer ${token}`
          }
        }
      )
      return boundLocks
2 Answers

I was filtering incorrectly:

        `${this.baseUrl}/owners/${this.ownerAccountId}/BoundLocks?$filter=title eq '${lockId}'`,
        {
          headers: {
            'Authorization': `Bearer ${token}`
          }
        }
      )
      return boundLocks
Related