Skip to main content
Answer

Does creating a custom endpoint on my Spark API automatically grab the latest rater?

  • July 11, 2023
  • 1 reply
  • 52 views

Forum|alt.badge.img+5

I have created a custom endpoint on my Spark API. I would like to always grab the latest version of my API. Does setting the custom endpoint always point at my latest rater (API)?

Best answer by jay.lee

The custom endpoint does not inherently point to a particular version of your Spark service. The Spark service version that is called depends on the ‘version_id’ field in the request meta of your API call.

If the field ‘version_id’ in your request meta is filled with a service version’s UUID, then your API call will always call that corresponding service version. If the field is left blank, then the latest version of the service will be called.

 

 

1 reply

Forum|alt.badge.img+2
  • Sparketeer
  • Answer
  • July 18, 2023

The custom endpoint does not inherently point to a particular version of your Spark service. The Spark service version that is called depends on the ‘version_id’ field in the request meta of your API call.

If the field ‘version_id’ in your request meta is filled with a service version’s UUID, then your API call will always call that corresponding service version. If the field is left blank, then the latest version of the service will be called.