Currently available for Batches. Support for scrapes, crawls, maps, and answers is coming soon.
Use Cases
Tracking & Organization
Link resources to internal systems with order IDs, customer IDs, or project names.
Filtering & Search
Tag resources for easy retrieval and filtering in your application.
Workflow Context
Store pipeline stage, priority level, or processing instructions.
Audit Trail
Record who initiated a request, timestamps, or version information.
Adding Metadata on Create
Include themetadata parameter when creating a resource:
Validation Rules
Type Coercion: Numbers and booleans are automatically converted to strings.
42→"42"true→"true"3.14→"3.14"
Updating Metadata (PATCH)
Currently available for: Batches only.Crawls, Scrapes, Maps, and Answers do not yet support updating metadata after creation.
Update Operations
Add new keys
Add new keys
New keys are added while preserving existing ones.Before:
After:
{"project": "alpha"}After:
{"project": "alpha", "new_key": "new_value"}Update existing keys
Update existing keys
Existing keys are overwritten with new values.Before:
After:
{"project": "alpha", "priority": "high"}After:
{"project": "beta", "priority": "high"}Delete specific keys
Delete specific keys
Set a key to Before:
After:
null or "" (empty string) to delete it.{"project": "alpha", "priority": "high"}After:
{"project": "alpha"}Clear all metadata
Clear all metadata
Set the entire metadata field to Before:
After:
null or "" to remove all keys.{"project": "alpha", "priority": "high"}After:
{}Mixed operations
Mixed operations
Add, update, and delete keys in a single request.Before:
After:
{"project": "alpha", "old_field": "remove_me"}After:
{"project": "gamma", "new_field": "value"}