Shop API icon

Shop API

Call Shop API

Offers → Update

AI-generated

Summary

Updates an existing Shop API offer by sending the supplied JSON fields in a PUT request to /v1/offers/{id}.

Inputs

  • Id (required) — The ID of the offer to update.
  • Fields (required) — A JSON object containing the offer fields to send in the update request. Defaults to { }.

Output shape

A single item containing the API response as JSON.

The response is returned as an empty object if the API returns no body. The Fields value must be valid JSON.

Examples

Example 1: Update an offer's details

Set Id to the offer ID and Fields to a JSON object with the properties to update.

Links

Discussion