planningcenter / developers

Planning Center API docs and support

Home Page:https://developer.planning.center/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filtering songs on arrangement tag ID's

sschaub opened this issue · comments

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..

  • Reviewed the documentation found at https://developer.planning.center/docs
  • Searched for previous issues answering this question
  • Removed all private information from this issue (credentials, tokens, emails, phone numbers, etc.)
  • Reviewed my issue for completeness

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.

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.

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