Create Issues With File Pushpins (Beta)
This tutorial demonstrates how to create issues with pushpins in Forma files. Pushpins are visual markers that denote the location of an issue in a file. The steps include verifying user permissions, finding the issue type ID, initializing the Viewer, getting the file URN, loading the file in the Viewer, creating the pushpin, preparing the placement object, and creating the issue.
To place a pushpin on a file, users need to see the file visually and click on the location where the issue occurs. The Viewer SDK renders files (RVT, PDF, DWG, etc.) in the browser and provides interactive pushpin placement through its PushPin extension. This tutorial shows how to integrate the Viewer SDK with the Issues API to create issues with accurate pushpin locations.
This tutorial uses a 3D model file (RVT) as the primary example. Where the workflow differs for 2D documents, the tutorial highlights those differences (primarily in Step 7’s coordinate transformations and Step 8’s placement data structure).
You can create issues with pushpins on 3D model files (RVT, NWD, IFC) and 2D document files (PDF, DWG). The workflow is the same for both file types, but the placement data structure differs:
- 3D model files: Include
x,y,zcoordinates,objectId,externalId, andviewerState(camera angle and zoom). - 2D document files: Include only
x,ycoordinates with specialized coordinate transformations.
Note that BIM 360 projects do not support the placements field. This functionality is available only for Forma projects. Sheet placements are not supported.
For more details about Forma Issues, see the Issues Overview and the Issues Help documentation.
Before You Begin
- Register an app, and select
Forma APIsin theAPI Accessdropdown. - Acquire a 3-legged OAuth token with
data:readanddata:writescopes. - Verify that you have access to the relevant Forma project.
- Find the relevant project ID for the project you want to create an issue in by following the Retrieve Forma Hub and Project ID tutorial. In this example, assume the project ID is
f6a1e3b5-abaa-4b01-b33a-5d55f36ba047. - Find the ID of the folder that contains the file. In this example, assume the folder ID is
urn:adsk.wipprod:fs.folder:co.BJU3PTc4Sd2CmXM492XUiA.
Step 1: Verify User Permissions
We recommend verifying that the user has permissions to create issues in the project before creating an issue. The user can create issues if the issues.new object appears in the response.
To verify permissions, use the project ID (f6a1e3b5-abaa-4b01-b33a-5d55f36ba047) to call GET users/me.
Request
curl -v 'https://developer.api.autodesk.com/construction/issues/v1/projects/f6a1e3b5-abaa-4b01-b33a-5d55f36ba047/users/me' \
-H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a'
Response
{
"id": "BXQXL7646C2R",
"isProjectAdmin": true,
"canManageTemplates": "",
"issues": {
"new": {
"permittedActions": [
"add_comment"
],
"permittedAttributes": [
"title"
],
"permittedStatuses": [
"open"
],
"permitted_actions": [
"add_comment"
],
"permitted_attributes": [
"title"
],
"permitted_statuses": [
"open"
]
}
},
"permissionLevels": [
"read",
"write",
"create"
]
}
In this example, the issues.new object appears in the response, which means the user can create issues. The user has Manage Issue permissions (read, write, create). For more information about how API permission level values map to UI permission levels, see GET users/me. For general information about permissions, see the Permissions Help documentation.
Step 2: Find the Issue Type ID
To create an issue, you need to specify the issue type ID. Note that the API terminology for issue type is subtype, and the API terminology for category is type. By default, the endpoint does not return issue types (subtypes), so you need to add the include=subtypes query parameter.
To retrieve the issue type ID, use the project ID (f6a1e3b5-abaa-4b01-b33a-5d55f36ba047) to call GET issue-types with the include=subtypes query parameter.
Request
curl -v 'https://developer.api.autodesk.com/construction/issues/v1/projects/f6a1e3b5-abaa-4b01-b33a-5d55f36ba047/issue-types?include=subtypes' \
-H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a'
Response
{
"pagination": {
"limit": 10,
"offset": 100,
"totalResults": 25
},
"results": [
{
"id": "1110f111-6c54-4b01-90e6-d701748f1111",
"containerId": "a5f49f04-59bb-477c-97e6-6833cb50bdac",
"title": "Coordination",
"isActive": true,
"orderIndex": 2,
"permittedActions": [
"edit"
],
"permittedAttributes": [
"title"
],
"subtypes": [
{
"id": "2220f222-6c54-4b01-90e6-d701748f0222",
"issueTypeId": "1110f111-6c54-4b01-90e6-d701748f1111",
"title": "Clash",
"code": "exo",
"isActive": true,
"orderIndex": 5,
"isReadOnly": false,
"permittedActions": [
"edit"
],
"permittedAttributes": [
"title"
],
"createdBy": "A3RGM375QTZ7",
"createdAt": "2018-07-22T15:05:58.033Z",
"updatedBy": "A3RGM375QTZ7",
"updatedAt": "2018-07-22T15:05:58.033Z",
"deletedBy": "A3RGM375QTZ7",
"deletedAt": "2018-07-22T15:05:58.033Z"
}
],
"statusSet": "gg",
"createdBy": "A3RGM375QTZ7",
"createdAt": "2018-07-22T15:05:58.033Z",
"updatedBy": "A3RGM375QTZ7",
"updatedAt": "2018-07-22T15:05:58.033Z",
"deletedBy": "A3RGM375QTZ7",
"deletedAt": "2018-07-22T15:05:58.033Z"
}
]
}
In this example, find the issue type with title Clash (results[].subtypes[].title), and note the issue type ID (results[].subtypes[].id) - 2220f222-6c54-4b01-90e6-d701748f0222. This ID will be used in Step 8 when creating the issue. For more information about issue types, see the Issue Types Help documentation.
Step 3: Initialize the Viewer
Initialize the Viewer. Note that you need an HTML element with the ID forgeViewer in your page for the viewer to attach to.
let viewer;
function initViewer() {
return new Promise(function (resolve, reject) {
Autodesk.Viewing.Initializer({
env: 'AutodeskProduction2',
api: 'streamingV2',
// The Viewer calls this function to get a token and its expiry time in seconds.
// Replace <YOUR_ACCESS_TOKEN> with a 3-legged access token.
getAccessToken: function (callback) {
callback('<YOUR_ACCESS_TOKEN>', 3600);
}
}, function () {
viewer = new Autodesk.Viewing.GuiViewer3D(document.getElementById('forgeViewer'));
viewer.start();
resolve(viewer);
});
});
}
Step 4: Get the File URN and the Derivative URN
To load a file in the Viewer, you need the Base64-encoded derivative URN. You also need the file URN (the lineageUrn) and the version URN (the documentVersionUrn) to build the placement in Step 7.
Use the project ID (b.f6a1e3b5-abaa-4b01-b33a-5d55f36ba047) and the folder ID (urn:adsk.wipprod:fs.folder:co.BJU3PTc4Sd2CmXM492XUiA) to call GET projects/:project_id/folders/:folder_id/contents.
Note that you need to add a b. prefix to the project ID to match the Data Management API format. For example, a project ID of f6a1e3b5-abaa-4b01-b33a-5d55f36ba047 becomes b.f6a1e3b5-abaa-4b01-b33a-5d55f36ba047.
The response contains files in the data array and version details in the included array. You need to extract three values:
- File URN: The identifier for the file across all versions. This value is the
lineageUrnof the placement that you build in Step 7. - Latest version URN: The identifier for the current version of the file.
- Derivative URN for Viewer: The Base64-encoded URN for loading the file in the Viewer. The Data Management API returns this URN already encoded and ready to use.
Request
curl -X GET \
-H "Authorization: Bearer YOUR_3_LEGGED_TOKEN" \
"https://developer.api.autodesk.com/data/v1/projects/b.f6a1e3b5-abaa-4b01-b33a-5d55f36ba047/folders/urn:adsk.wipprod:fs.folder:co.BJU3PTc4Sd2CmXM492XUiA/contents"
Response
{
"jsonapi": {
"version": "1.0"
},
"data": [
{
"type": "items",
"id": "urn:adsk.wipprod:dm.lineage:7_5NcbL1Q1GSjRLJe9ffvw",
"attributes": {
"displayName": "My First Document",
"createTime": "2017-10-02T11:25:57.0000000Z",
"createUserId": "X9WYLGPNCHVK",
"createUserName": "John Smith",
"lastModifiedTime": "2017-10-02T11:27:22.0000000Z",
"lastModifiedUserId": "X9WYLGPNCHVK",
"lastModifiedUserName": "John Smith",
"hidden": false,
"extension": {
"type": "items:autodesk.bim360:File",
"version": "1.0"
}
},
"relationships": {
"tip": {
"data": {
"type": "versions",
"id": "urn:adsk.wipprod:fs.file:vf.7_5NcbL1Q1GSjRLJe9ffvw?version=1"
}
}
}
}
],
"included": [
{
"type": "versions",
"id": "urn:adsk.wipprod:fs.file:vf.7_5NcbL1Q1GSjRLJe9ffvw?version=1",
"attributes": {
"name": "My First Document",
"displayName": "My First Document",
"createTime": "2017-10-02T11:25:57.0000000Z",
"createUserId": "X9WYLGPNCHVK",
"createUserName": "John Smith",
"versionNumber": 1,
"storageSize": 12345678,
"fileType": "rvt",
"extension": {
"type": "versions:autodesk.bim360:File",
"version": "1.0",
"data": {
"processState": "PROCESSING_COMPLETE",
"extractionState": "SUCCESS",
"splittingState": "NOT_SPLIT",
"reviewState": "NOT_IN_REVIEW",
"revisionDisplayLabel": "1"
}
}
},
"relationships": {
"item": {
"data": {
"type": "items",
"id": "urn:adsk.wipprod:dm.lineage:7_5NcbL1Q1GSjRLJe9ffvw"
}
},
"derivatives": {
"data": {
"type": "derivatives",
"id": "dXJuOmFkc2sud2lwcHJvZDpmcy5maWxlOnZmLjdfNU5jYkwxUTFHU2pSTEplOWZmdnc_dmVyc2lvbj0x"
},
"meta": {
"link": {
"href": "https://developer.api.autodesk.com/modelderivative/v2/designdata/dXJuOmFkc2sud2lwcHJvZDpmcy5maWxlOnZmLjdfNU5jYkwxUTFHU2pSTEplOWZmdnc_dmVyc2lvbj0x/manifest"
}
}
}
}
}
]
}
In this example, assume that the file you want to create an issue on is called My First Document.
- Find the file (
data[].attributes.displayName), and note the file URN (data[].id) -urn:adsk.wipprod:dm.lineage:7_5NcbL1Q1GSjRLJe9ffvw. This value is thelineageUrnin the placement that you build in Step 7. - Note the latest version URN (
data[].relationships.tip.data.id) -urn:adsk.wipprod:fs.file:vf.7_5NcbL1Q1GSjRLJe9ffvw?version=1. - In the
includedarray, find the version object whereidequalsurn:adsk.wipprod:fs.file:vf.7_5NcbL1Q1GSjRLJe9ffvw?version=1. Within that version object, note the derivative URN (derivatives.data.id) -dXJuOmFkc2sud2lwcHJvZDpmcy5maWxlOnZmLjdfNU5jYkwxUTFHU2pSTEplOWZmdnc_dmVyc2lvbj0x. This URN points to the translated geometry that the Viewer can render. You use this in Step 5 to load the file in the Viewer.
Note that before loading a file in the Viewer, you should verify that translation completed successfully by checking that extension.data.processState is PROCESSING_COMPLETE and extension.data.extractionState is SUCCESS.
Step 5: Load the File in the Viewer
Load the file in the Viewer using the Base64-encoded derivative URN from Step 4. In this example, use dXJuOmFkc2sud2lwcHJvZDpmcy5maWxlOnZmLjdfNU5jYkwxUTFHU2pSTEplOWZmdnc_dmVyc2lvbj0x.
function onDocumentLoadSuccess(viewerDocument) {
let viewables = (viewerDocument.getRoot().getDefaultGeometry());
viewer.loadDocumentNode(viewerDocument, viewables);
}
function onDocumentLoadFailure(code, message) {
alert('Could not load model. See console for more details.');
console.error(message);
}
function loadModel(urn) {
Autodesk.Viewing.Document.load('urn:' + urn, onDocumentLoadSuccess, onDocumentLoadFailure);
}
Step 6: Create the Pushpin
We recommend adding a button to start the pushpin creation process. The pushpin creation workflow involves three key parts:
- Set up the event listener for
pushpin.created - Start the creation mode
- Extract the pushpin data from the event
async function startPositionCapture() {
return new Promise(async (resolve, reject) => {
try {
let pushPinExtension = await viewer.getExtension('Autodesk.BIM360.Extension.PushPin');
const onPushpinCreated = function (e) {
// Extract the pushpin data from the event
let pushpin = e.value.itemData;
// End creation mode
pushPinExtension.endCreateItem();
pushPinExtension.pushPinManager.removeEventListener('pushpin.created', onPushpinCreated);
// Fetch placement data using the setPlacementData function (defined in Step 7)
let placements = setPlacementData(pushpin);
resolve({ placements: placements });
};
pushPinExtension.pushPinManager.addEventListener('pushpin.created', onPushpinCreated);
// Start pushpin creation mode
pushPinExtension.startCreateItem({
label: 'New',
status: 'open',
type: 'issues'
});
} catch (error) {
reject(error);
}
});
}
When startCreateItem is called, the user can click on the file to place the pushpin. The pushpin.created event fires, and the Viewer captures the location details - coordinates, clicked object (for 3D models), and camera view. The code extracts this data from e.value.itemData and calls endCreateItem to complete the process. This location data from the Viewer will be transformed into the Issues API format in Step 7.
Step 7: Prepare the Placement Object
The Viewer SDK provides location data in its own format. This step translates that Viewer data into the placement structure the Issues API expects.
The placement data structure differs between 3D model files and 2D document files:
- 3D model files (RVT, NWD, IFC): Include
x,y,zcoordinates,objectId,externalId, andviewerState(camera angle and zoom). - 2D document files (PDF, DWG): Include
x,ycoordinates with specialized coordinate transformations.
The setPlacementData function builds this placement structure for both 2D and 3D files, detecting the file type and handling any necessary coordinate transformations.
function setPlacementData(pushpin) {
let model = viewer.model;
let documentNode = model.getDocumentNode();
// Get the decoded document version URN
let documentVersionUrn = getDocumentVersionUrn(documentNode);
// Get the position data (handles 2D and 3D coordinates)
let position = getPositionData(pushpin);
// Extract the version number from the URN
const createdAtVersion = getCreatedAtVersion(pushpin, documentNode);
// Build pins object
let pin = {
viewableInfo: {
documentVersionUrn
},
position: position
};
// Add 3D-specific data if the model is 3D
if (viewer.model.is3d()) {
pin.viewerState = pushpin.viewerState; // Camera angle, zoom, etc.
pin.externalId = pushpin.externalId || null;
pin.objectId = pushpin.objectId ? String(pushpin.objectId) : null;
}
// Build placements array
let placements = [{
type: "file",
createdAtVersion: createdAtVersion, // Version number (e.g., 1, 2, 3)
lineageUrn: documentNode.lineageUrn(), // document lineage URN
viewable: {
guid: documentNode.data.guid,
viewableId: documentNode.data.viewableID,
name: documentNode.data.name,
is3D: viewer.model.is3d()
},
pins: [pin]
}];
return placements;
}
Note that guid, viewableId, name, and is3D can also be obtained directly from the Model Derivative API without a Viewer instance — see GET :urn/manifest.
Helper Functions
The following functions are called by setPlacementData to extract and format data:
getDocumentVersionUrn - Converts the Base64-encoded URN back to the URN format required by the Issues API:
function getDocumentVersionUrn(documentNode) {
let urn = documentNode.getRootNode().urn();
// Convert URL-safe Base64 back to standard Base64
urn = urn.replace(/-/g, "+");
urn = urn.replace(/_/g, "/");
// Add padding
while (urn.length % 4) {
urn += "=";
}
// Decode from Base64 to get the URN
let documentVersionUrn = atob(urn);
return documentVersionUrn;
}
Note that you can also obtain documentVersionUrn directly from the Data Management API as relationships.tip.data.id, returned by GET projects/:project_id/folders/:folder_id/contents — without a Viewer or Base64 decoding.
getCreatedAtVersion - Extracts the version number from the URN:
function getCreatedAtVersion(pushpin, documentNode) {
// For 3D models, the pushpin object may contain the seedUrn
const seedUrn = pushpin.seedURN || documentNode.getRootNode().urn();
const decodedSeedUrn = decodeUrn(seedUrn);
// Extract version number from URN format: urn:adsk.wipprod:fs.file:vf.xxx?version=1
const regex = /urn:adsk\.(\w*):fs\.file:vf\.([^?]*)\?version=(\d*)/;
const matches = decodedSeedUrn.match(regex);
const createdAtVersion = parseInt(matches[3], 10);
return createdAtVersion;
}
decodeUrn - Decodes a Base64-encoded URN to URN format:
function decodeUrn(urn) {
// Convert URL-safe Base64 back to standard Base64
urn = urn.replace(/-/g, "+");
urn = urn.replace(/_/g, "/");
// Add padding
while (urn.length % 4) {
urn += "=";
}
// Decode from Base64
return atob(urn);
}
getPositionData - Extracts and transforms pin coordinates for both 2D and 3D files:
function getPositionData(pushpin) {
let model = viewer.model;
let position = {
x: pushpin.position.x,
y: pushpin.position.y,
...(model.is3d() && { z: pushpin.position.z })
};
// Handle 2D document coordinate transformations
if (!model.is3d()) {
if (model.isPageCoordinates && model.isPageCoordinates()) {
// Vector PDFs, DWGs: use standard transformation
const lmvToUnitTransform = calculateLmvToUnitTransformation(model);
const transformed = new THREE.Vector3(pushpin.position.x, pushpin.position.y, pushpin.position.z || 0);
transformed.applyMatrix4(lmvToUnitTransform);
position = { x: transformed.x, y: transformed.y };
} else {
// Leaflet/rasterized PDFs: custom transformation
position = convertLeafletCoordinates(model, pushpin.position);
}
}
return position;
}
2D Coordinate Transformation Helpers
The following helper functions are called by getPositionData for 2D documents. For 2D files, coordinate transformation is required because the Viewer uses different coordinate systems depending on the document type (vector vs rasterized).
Note that the functions below derive coordinates using the Viewer SDK. If you compute 2D coordinates from another source (for example, directly from PDF geometry, without a Viewer), the target coordinate system has its origin at the top-left, with both axes normalized by page width. If your source uses a different origin (for example, bottom-left), flip the Y axis before normalizing.
calculateLmvToUnitTransformation - Calculates transformation matrix for vector PDFs and DWGs:
function calculateLmvToUnitTransformation(model) {
if (!model.getBoundingBox || !model.isPageCoordinates) {
return new THREE.Matrix4().identity();
}
const bbox = model.getBoundingBox(false, true);
return makeViewTransformation(
// LMV coordinates
0,
model.isPageCoordinates() ? bbox.max.y : 1,
bbox.max.x,
bbox.max.y - bbox.max.x,
// Unit coordinates
0,
0,
1,
1
);
}
makeViewTransformation - Creates transformation matrix from two known points:
function makeViewTransformation(sx1, sy1, sx2, sy2, lx1, ly1, lx2, ly2) {
const xTranslateFactor = (lx2 * sx1 - lx1 * sx2) / (sx1 - sx2);
const xScalingFactor = (lx2 - lx1) / (sx2 - sx1);
const yTranslateFactor = (ly2 * sy1 - ly1 * sy2) / (sy1 - sy2);
const yScalingFactor = (ly2 - ly1) / (sy2 - sy1);
const scale = new THREE.Vector3(xScalingFactor, yScalingFactor, 1);
const offset = new THREE.Vector3(xTranslateFactor, yTranslateFactor, 0);
const m = new THREE.Matrix4();
m.setPosition(offset);
m.scale(scale);
return m;
}
convertLeafletCoordinates - Converts coordinates for rasterized PDFs (Leaflet):
function convertLeafletCoordinates(model, position) {
const data = model.getData();
if (!data || !data.pageToModelTransform) {
return { x: position.x, y: position.y };
}
// Convert from MODEL to PAGE space (includes 90° rotation)
const pageToModel = new THREE.Matrix4().fromArray(data.pageToModelTransform.elements);
const modelToPage = pageToModel.clone().invert();
const pagePos = new THREE.Vector3(position.x, position.y, position.z || 0);
pagePos.applyMatrix4(modelToPage);
// Get page dimensions for normalization
const bbox = model.getBoundingBox(false, true);
const bboxMinPage = new THREE.Vector3(bbox.min.x, bbox.min.y, bbox.min.z);
const bboxMaxPage = new THREE.Vector3(bbox.max.x, bbox.max.y, bbox.max.z);
bboxMinPage.applyMatrix4(modelToPage);
bboxMaxPage.applyMatrix4(modelToPage);
const pageWidth = bboxMaxPage.x - bboxMinPage.x;
// Axis swap required because Leaflet textures are rotated 90°
return {
x: Math.abs(pagePos.y) / pageWidth,
y: Math.abs(pagePos.x) / pageWidth
};
}
The pushpin coordinate system is unbounded, and coordinate values can be negative.
For 2D documents, coordinate transformation is required:
- Vector PDFs and DWGs use
calculateLmvToUnitTransformation()andmakeViewTransformation() - Rasterized PDFs (Leaflet) use
convertLeafletCoordinates()
These transformations ensure that pushpins placed in the Viewer appear in the correct location when the issue is viewed in the Forma Viewer.
Step 8: Create the Issue with Placement
Steps 3-7 defined the functions needed for the workflow. First, ensure the file is loaded in the Viewer by calling the loadModel() function from Step 5. Then, when the user wants to create an issue, call the startPositionCapture() function from Step 6 to capture the pushpin placement, build the complete issue payload, and send it to the Issues API using POST issues.
// Capture the pushpin placement
const { placements } = await startPositionCapture();
// Build the complete issue payload
let payload = {
title: "Door missing a screw", // Replace with your actual issue title
status: "open",
issueSubtypeId: "2220f222-6c54-4b01-90e6-d701748f0222", // From Step 2
placements: placements // Contains the pushpin data
};
// Send payload to Issues API
const projectId = 'f6a1e3b5-abaa-4b01-b33a-5d55f36ba047'; // From Before You Begin
const response = await fetch(`https://developer.api.autodesk.com/construction/issues/v1/projects/${projectId}/issues`, {
method: 'POST',
headers: {
'Authorization': `Bearer ${accessToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify(payload)
});
const issue = await response.json();
console.log('Issue created:', issue);
The placements variable (an array) has the following structure:
[
{
"type": "file",
"createdAtVersion": 1,
"lineageUrn": "urn:adsk.wipprod:dm.lineage:7_5NcbL1Q1GSjRLJe9ffvw",
"viewable": {
"guid": "1234567890abcdef1234567890abcdef",
"viewableId": "daa07551-081c-45d0-adb3-e49069b2ba85",
"name": "My First Document",
"is3D": true
},
"pins": [
{
"position": {
"x": 123.45,
"y": 67.89,
"z": 10.11
},
"viewableInfo": {
"documentVersionUrn": "urn:adsk.wipprod:fs.file:vf.7_5NcbL1Q1GSjRLJe9ffvw?version=1"
},
"viewerState": {
"seedUrn": "dXJuOmFkc2sud2lwcHJvZDpmcy5maWxlOnZmLjdfNU5jYkwxUTFHU2pSTEplOWZmdnc_dmVyc2lvbj0x",
"objectIds": [12345],
"cutplanes": [],
"explodeScale": 0,
"camera": {
"position": [10, 20, 30],
"up": [0, 0, 1],
"worldup": [0, 0, 1],
"target": [5, 10, 15],
"aspect": 1.5,
"fov": 60,
"isOrthographic": true,
"near": 0.1,
"far": 1000
}
},
"objectId": "12345",
"externalId": "Wall-123"
}
]
}
]
For 2D files (PDF, DWG), the placements structure is simpler and excludes 3D-specific fields:
[
{
"type": "file",
"createdAtVersion": 1,
"lineageUrn": "urn:adsk.wipprod:dm.lineage:7_5NcbL1Q1GSjRLJe9ffvw",
"viewable": {
"guid": "1234567890abcdef1234567890abcdef",
"viewableId": "daa07551-081c-45d0-adb3-e49069b2ba85",
"name": "My First Document",
"is3D": false
},
"pins": [
{
"position": {
"x": 0.45,
"y": 0.67
},
"viewableInfo": {
"documentVersionUrn": "urn:adsk.wipprod:fs.file:vf.7_5NcbL1Q1GSjRLJe9ffvw?version=1"
}
}
]
}
]
Response
{
"id": "c1d97141-52e8-4c3f-b6ec-65b994d96d8c",
"title": "Door missing a screw",
"status": "open",
"issueSubtypeId": "2220f222-6c54-4b01-90e6-d701748f0222",
"placements": [
{
"type": "file",
"lineageUrn": "urn:adsk.wipprod:dm.lineage:7_5NcbL1Q1GSjRLJe9ffvw",
"createdAtVersion": 1,
"viewable": {
"viewableId": "daa07551-081c-45d0-adb3-e49069b2ba85",
"guid": "1234567890abcdef1234567890abcdef",
"name": "My First Document",
"is3D": true
},
"pins": [
{
"position": {
"x": 123.45,
"y": 67.89,
"z": 10.11
},
"viewableInfo": {
"documentVersionUrn": "urn:adsk.wipprod:fs.file:vf.7_5NcbL1Q1GSjRLJe9ffvw?version=1"
},
"viewerState": {
"seedUrn": "dXJuOmFkc2sud2lwcHJvZDpmcy5maWxlOnZmLjdfNU5jYkwxUTFHU2pSTEplOWZmdnc_dmVyc2lvbj0x",
"objectIds": [12345],
"cutplanes": [],
"explodeScale": 0,
"camera": {
"position": [10, 20, 30],
"up": [0, 0, 1],
"worldup": [0, 0, 1],
"target": [5, 10, 15],
"aspect": 1.5,
"fov": 60,
"isOrthographic": true,
"near": 0.1,
"far": 1000
}
},
"objectId": "12345",
"externalId": "Wall-123"
}
]
}
],
"createdAt": "2024-01-15T10:30:00.000Z",
"createdBy": "BXQXL7646C2R"
}
Note the issue ID (id), and confirm that the placements array contains the pin that you created. To retrieve the pins of an issue later, call POST pins:batch-get, because GET issues does not return pins.
Congratulations! You have successfully created an issue with a pushpin in Forma.