Skip to main content
Currently available for Batches. Support for scrapes, crawls, maps, and answers is coming soon.
Metadata allows you to attach custom key-value pairs to Olostep resources. This is useful for tracking, filtering, organizing, and storing context alongside your API requests. Metadata follows Stripe’s approach — simple, flexible, and consistent across all endpoints.

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 the metadata parameter when creating a resource:
Metadata is returned in all subsequent GET responses for that resource.

Validation Rules

Type Coercion: Numbers and booleans are automatically converted to strings.
  • 42"42"
  • true"true"
  • 3.14"3.14"
Objects and arrays are rejected.

Updating Metadata (PATCH)

Currently available for: Batches only.Crawls, Scrapes, Maps, and Answers do not yet support updating metadata after creation.
You can update metadata on existing batches using the PATCH endpoint. Updates use merge behavior.

Update Operations

New keys are added while preserving existing ones.
Before: {"project": "alpha"}
After: {"project": "alpha", "new_key": "new_value"}
Existing keys are overwritten with new values.
Before: {"project": "alpha", "priority": "high"}
After: {"project": "beta", "priority": "high"}
Set a key to null or "" (empty string) to delete it.
Before: {"project": "alpha", "priority": "high"}
After: {"project": "alpha"}
Set the entire metadata field to null or "" to remove all keys.
Before: {"project": "alpha", "priority": "high"}
After: {}
Add, update, and delete keys in a single request.
Before: {"project": "alpha", "old_field": "remove_me"}
After: {"project": "gamma", "new_field": "value"}

PATCH Behavior Summary