Skip to content

POST Update NPC object config and/or GLB upload

POST /resources/objects/{objectId}/npc: Update NPC object config and/or GLB upload. Required scopes: product:write

POSThttps://api.rooom.com/resources/objects/{objectId}/npc
Try it out
product:write

Parameters

Path Parameters

NameTypeDescription
objectIdrequiredstringObject Id

Body

multipart/form-data
NameTypeDescription
configstringNPC configuration as JSON string. Send an empty string to remove the config from the object.
glbFilefileNPC GLB model file

Responses

200NPC object updated successfully
400Bad request – missing payload, invalid config, or non-NPC object
401Unauthorized
404Object not found
415Unsupported media type – only GLB uploads are supported
500Internal server error – GLB upload failed
POST /resources/objects/{objectId}/npc Update NPC object config and/or GLB upload Required scopes: product:write objectId Object Id config NPC configuration as JSON string. Send an empty string to remove the config from the object. glbFile NPC GLB model file