Sets an asset's favorite flag, files it into Library folders (libraryFolderIds, the full list it should be in), or restores it from the trash with trashed: false (trashed: true trashes it, like DELETE). Send only the fields to change; unknown fields are rejected. A trashed asset returns not_found unless the request sets trashed. Free.
Authorization
bearerAuth assets:writeIn: header
Scope: assets:write
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
1 <= propertiesResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/assets/string" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "string", "type": "image", "name": "string", "url": "http://example.com", "thumbnailUrl": "http://example.com", "preview": { "url": "http://example.com", "width": 0, "height": 0, "mimeType": "string" }, "width": 0, "height": 0, "duration": 0, "mimeType": "string", "source": "string", "sourceProcessId": "string", "prompt": "string", "model": "string", "trainingId": "string", "draft": { "finishableUntil": "2019-08-24T14:15:22Z", "finishResolutions": [ 1080 ] }, "favorite": true, "sessionId": "string", "libraryFolderIds": [ "string" ], "createdBy": "string", "metadata": { "property1": "string", "property2": "string" }, "testMode": true, "webUrl": "http://example.com", "createdAt": "2019-08-24T14:15:22Z", "links": { "self": "string" }, "trashed": true, "purgeAfter": "2019-08-24T14:15:22Z"}{ "error": { "code": "string", "message": "string", "requestId": "string" }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}Mute or unmute a credit alert for yourself PUT
Changes only the key's member's own email; the rule and everyone else are unchanged. Any member's key with limits:write.
Update a canvas card PATCH
Changes one card. Send only the fields to change: label, position, size and lock on any card, plus the settings of its kind (the same fields as when adding it). Changing a generation card's model drops its customSettings and resets an aspect ratio or resolution the new model does not support to the model's default. selectedOutput picks which version wired cards downstream receive; null goes back to the newest. Returns the card with every version. Shows up live on the canvas in the Yapper web app. Free. Uses the processes:write scope.