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
Key | Datatype | Required | Description |
---|---|---|---|
includeShared | boolean | Specifies 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
Key | Datatype | Required | Description |
---|---|---|---|
If-Match | string | (Required) Last known version to facilitate optimistic locking | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"name":"X_Wing","parentTypeId":"mdsp.spaceship","description":"Hyperspace jump capable space ship","instantiable":true,"scope":"private","id":"mdsp.spaceship","tenantId":"mdsp","etag":1,"aspects":[{"name":"leftWing","aspectId":"b9cbfc7073be4530887cdb1e71c932b8","aspectType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"_links":{"origin":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}}},{"name":"leftWing","aspectId":"b9cbfc7073be4530887cdb1e71c932b8","aspectType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"_links":{"origin":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}}}],"variables":[{"_links":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"_links":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"fileAssignments":[{"_links":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"_links":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"sharing":{"modes":["SHARER","SHARER"]},"_links":{"self":{"href":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"parent":{"href":"http://CnBnkoISAXrtPidXrDHcMRWnXWUnud.uhznlvqOGc8AnA"}}}