The record has been successfully created.
const response = await fetch('/v1/workspace/{workspaceId}/blocks', { method: 'GET', headers: {}, }); const data = await response.json();
{ "id": "text", "label": "text", "description": "text", "parentBlock": "text", "multiplicity": 0, "children": [ "text" ], "pdmEnabled": false, "propertyGroups": [ "text" ], "previewCustomLink": "text", "previewSource": "text", "figures": [ "text" ], "icon": "text", "interfaces": [ "text" ], "attachments": [ "text" ], "externalLinks": [ "text" ], "pdmThumbnail": "text", "blockStatuses": [ "text" ], "orderIndex": 0, "path": "text", "type": [ "text" ] }
const response = await fetch('/v1/workspace/{workspaceId}/blocks/{id}', { method: 'PATCH', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
{ "type": [ "text" ] }
const response = await fetch('/v1/workspace/{workspaceId}/blocks/{id}', { method: 'GET', headers: {}, }); const data = await response.json();
const response = await fetch('/v1/workspace/{workspaceId}/blocks/{id}', { method: 'DELETE', headers: {}, }); const data = await response.json();
const response = await fetch('/v1/workspace/{workspaceId}/blocks', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "workspace": "58e7b5af-bab5-4ae2-bd5c-6bb011766978" }), }); const data = await response.json();