Something went wrong. Try again.
atproto Thingiverse but good
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ "lexicon": 1, "id": "space.polymodel.library.updateThing", "defs": { "main": { "type": "procedure", "description": "Update an owned thing composition with updated thing/model/part data. Existing model/part inputs with uri are updated in place; inputs without uri create new records. Removed child records are detached from the updated parent records but not deleted, so they can be restored later.", "input": { "encoding": "application/json", "schema": { "type": "object", "required": ["uri", "thing"], "properties": { "uri": { "type": "string", "format": "at-uri" }, "thing": { "type": "ref", "ref": "#thingInput" } } } }, "output": { "encoding": "application/json", "schema": { "type": "object", "required": ["thing", "models"], "properties": { "thing": { "type": "ref", "ref": "space.polymodel.library.publishThing#recordRef" }, "models": { "type": "array", "items": { "type": "ref", "ref": "space.polymodel.library.publishThing#modelPublishResult" } } } } } }, "partInput": { "type": "object", "required": ["name"], "properties": { "uri": { "type": "string", "format": "at-uri" }, "name": { "type": "ref", "ref": "space.polymodel.library.defs#name" }, "file": { "type": "ref", "ref": "space.polymodel.library.defs#file" }, "uploadId": { "type": "string" }, "format": { "type": "string" }, "dimensions": { "type": "ref", "ref": "space.polymodel.library.defs#bbox" }, "units": { "type": "string" }, "notes": { "type": "ref", "ref": "space.polymodel.library.defs#shortText" }, "printSettings": { "type": "ref", "ref": "space.polymodel.library.defs#printSettings" }, "previews": { "type": "ref", "ref": "space.polymodel.library.defs#previews" }, "derivedFrom": { "type": "ref", "ref": "com.atproto.repo.strongRef" }, "intendedToWorkWith": { "type": "ref", "ref": "space.polymodel.library.defs#intendedToWorkWith" } } }, "modelInput": { "type": "object", "required": ["name", "parts"], "properties": { "uri": { "type": "string", "format": "at-uri" }, "name": { "type": "ref", "ref": "space.polymodel.library.defs#name" }, "summary": { "type": "ref", "ref": "space.polymodel.library.defs#shortText" }, "instructions": { "type": "ref", "ref": "space.polymodel.library.defs#instructions" }, "license": { "type": "string" }, "tags": { "type": "ref", "ref": "space.polymodel.library.defs#tags" }, "cover": { "type": "ref", "ref": "space.polymodel.library.defs#cover" }, "previews": { "type": "ref", "ref": "space.polymodel.library.defs#previews" }, "parts": { "type": "array", "items": { "type": "ref", "ref": "#partInput" }, "maxLength": 1024 }, "derivedFrom": { "type": "ref", "ref": "com.atproto.repo.strongRef" }, "intendedToWorkWith": { "type": "ref", "ref": "space.polymodel.library.defs#intendedToWorkWith" } } }, "thingInput": { "type": "object", "required": ["name", "license", "models"], "properties": { "name": { "type": "ref", "ref": "space.polymodel.library.defs#name" }, "summary": { "type": "ref", "ref": "space.polymodel.library.defs#shortText" }, "instructions": { "type": "ref", "ref": "space.polymodel.library.defs#instructions" }, "license": { "type": "string" }, "tags": { "type": "ref", "ref": "space.polymodel.library.defs#tags" }, "cover": { "type": "ref", "ref": "space.polymodel.library.defs#cover" }, "previews": { "type": "ref", "ref": "space.polymodel.library.defs#previews" }, "models": { "type": "array", "items": { "type": "ref", "ref": "#modelInput" }, "maxLength": 256 }, "derivedFrom": { "type": "ref", "ref": "com.atproto.repo.strongRef" }, "intendedToWorkWith": { "type": "ref", "ref": "space.polymodel.library.defs#intendedToWorkWith" } } } }}