planningcenter / developers

Planning Center API docs and support
https://developer.planning.center/docs/
85 stars 8 forks source link

Filtering songs on arrangement tag ID's #1188

Closed sschaub closed 4 months ago

sschaub commented 5 months ago

Related Product Which product is this question related to? Services

Describe the question I am attempting to retrieve a list of songs filtered by arrangement tag ID. This is the API I am attempting:

https://api.planningcenteronline.com/services/v2/songs?where[arrangement_tag_ids]=1867225

This is returning songs that do not have any arrangements tagged with that arrangement tag ID.

How can I retrieve a list of songs that have arrangements tagged with a specified arrangement tag?

Additional context

I have..

jremmen commented 4 months ago

The param structure looks correct for filtering songs by arrangement tag id.

I verified that the filter is working when given at least one valid tag id. If none of the provided tag ids match existing tags in your account then that part of the filter will be ignored. If this is the only filter criteria then all songs (unfiltered) would be returned, which could be what you are seeing.

I would verify that 1867225 is a valid id for an arrangement tag in your account. Make sure it isn't a "tag group" id which could easily be mixed up with "tag".

You can explore tag groups and their tags in the API at https://api.planningcenteronline.com/services/v2/tag_groups

I hope some of this information is useful and helps resolve your issue. Let us know how it goes and if you have any other questions.

jremmen commented 4 months ago

I'm going to close the issue. If you are still having trouble with filtering songs by arrangement tags please feel free to reopen it and let us know.

sschaub commented 4 months ago

@jremmen Thank you for your response. It's helpful to know that the filter is ignored if the tag ID provided is not valid.