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 does not have an example.

Authorizations

x-mp-api-key
string
header
required

Path Parameters

id
string
required

The unique ID of the design to be updated.

Body

application/json
prompt
string
required

The new prompt for updating the design.

Example:

"Make the button green"

Response

200
_mintlify/placeholder

Design updated successfully.