POST
/
pattern
/
{id}
curl --request POST \
  --url https://api.magicpatterns.com/api/pattern/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-mp-api-key: <api-key>' \
  --data '{
  "prompt": "Make the button green"
}'
This response has no body data.

Authorizations

x-mp-api-key
string
headerrequired

Path Parameters

id
string
required

The unique ID of the pattern to be updated.

Body

application/json
prompt
string
required

The new prompt for updating the pattern.