NieMaNudy DbTool icon

NieMaNudy DbTool

NieMaNudy DbTool API operations

Search Pairs (AttractionCategoryQuerySearches) → POST Claim Next Category Query Search

AI-generated

Summary

Atomically claims the next active and unlocked category query search with a lease lock for a specified duration to prevent concurrent processing.

Inputs

  • Lease Minutes — Specify the lease duration in minutes for which the claimed category query search will remain locked. Allowed values range from 1 to 120 minutes with a default of 10.

Output shape

a single JSON object representing the claimed category query search or an object with { isNullResponse: true } if no active queries are available.

The response contains the claimed category query search with a lease lock applied for the specified duration. This operation is designed for use in parallel workflows to safely claim and lock the next query search, preventing other processes from claiming the same item during the lease period.

Examples

Example 1: Claim the next unlocked category query search with a 15-minute lease to safely process it in parallel workflows.

Set 'Lease Minutes' to 15 to specify the lock duration.

Links

Discussion