Add a new file assignment to an asset type

PUT {{baseUrl}}/assettypes/:id/fileAssignments/:key?includeShared=false

Add a new file assignment to a given asset type. All asset which extends these types will have its file by default.

Request Params

KeyDatatypeRequiredDescription
includeSharedbooleanSpecifies if the operation should take into account shared (received) assets, aspects and asset types. Received resources are not visible in case includeShared=false. For query operations, received resources are not returned. Endpoints addressing individual resources respond with 404. In case received resources are referenced in a request parameter or property, they are treated as not existing.

Request Body

{"fileId"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
If-Matchstring(Required) Last known version to facilitate optimistic locking
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;name&quot;:&quot;X_Wing&quot;,&quot;parentTypeId&quot;:&quot;mdsp.spaceship&quot;,&quot;description&quot;:&quot;Hyperspace jump capable space ship&quot;,&quot;instantiable&quot;:true,&quot;scope&quot;:&quot;private&quot;,&quot;id&quot;:&quot;mdsp.spaceship&quot;,&quot;tenantId&quot;:&quot;mdsp&quot;,&quot;etag&quot;:1,&quot;aspects&quot;:[{&quot;name&quot;:&quot;leftWing&quot;,&quot;aspectId&quot;:&quot;b9cbfc7073be4530887cdb1e71c932b8&quot;,&quot;aspectType&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;_links&quot;:{&quot;origin&quot;:{&quot;href&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}}},{&quot;name&quot;:&quot;leftWing&quot;,&quot;aspectId&quot;:&quot;b9cbfc7073be4530887cdb1e71c932b8&quot;,&quot;aspectType&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;_links&quot;:{&quot;origin&quot;:{&quot;href&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}}}],&quot;variables&quot;:[{&quot;_links&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},{&quot;_links&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}],&quot;fileAssignments&quot;:[{&quot;_links&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},{&quot;_links&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}],&quot;sharing&quot;:{&quot;modes&quot;:[&quot;SHARER&quot;,&quot;SHARER&quot;]},&quot;_links&quot;:{&quot;self&quot;:{&quot;href&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;parent&quot;:{&quot;href&quot;:&quot;http://CnBnkoISAXrtPidXrDHcMRWnXWUnud.uhznlvqOGc8AnA&quot;}}}