cURL
curl --request PUT \ --url https://genui.sh/api/artifacts/{id} \ --header 'Content-Type: application/json' \ --data ' { "title": "<string>", "description": "<string>", "content": {}, "metadata": {}, "expiresIn": "<string>" } '
{ "id": "art_abc123", "template": "markdown", "title": "Updated Title", "status": "active", "createdAt": "2024-01-15T12:00:00Z", "updatedAt": "2024-01-16T14:30:00Z" }
curl -X PUT https://genui.sh/api/artifacts/art_abc123 \ -H "Authorization: Bearer $GENUI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "Updated Title", "content": {"text": "# Updated Content\n\nThis has been modified."} }'