Skip to content

Why did an API swap reject my request after I removed an optional image reference from the form?

Inspect whether your serializer left the optional field as null or an empty string. If the API accepts a valid owned ID or the field absent, send it absent when that input is unused.

SHIP A RELIABLE INTEGRATIONAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval

Check the actual JSON

Preserve the browser selection, then inspect the sanitized request immediately before the quote. An empty UI is not evidence an invalid key is gone.

Omit unavailable inputs intentionally

Construct the reference object only for approved owned assets. Validate both with-reference and no-reference cases using the public schema.

Check changed request semantics

A removed reference may affect both output and quote, so generate only after the current input is approved.

Pass condition

The outgoing payload contains no dangling image identifier and the submitted result uses the approved source roles.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation