const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
'x-api-secret': '<api-key>',
'x-connector-id': '<api-key>',
'x-owner-id': '<api-key>',
'x-session-token': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
triggeredBy: {
id: '<string>',
object: 'resourceRef',
model: '<string>',
fields: '<unknown>',
rawResource: '<unknown>',
remote: {id: '<string>'},
createdAt: '<string>',
updatedAt: '<string>'
},
genericContact: {
id: '<string>',
object: 'resourceRef',
model: '<string>',
fields: '<unknown>',
rawResource: '<unknown>',
remote: {id: '<string>'},
createdAt: '<string>',
updatedAt: '<string>'
},
genericCompany: {
id: '<string>',
object: 'resourceRef',
model: '<string>',
fields: '<unknown>',
rawResource: '<unknown>',
remote: {id: '<string>'},
createdAt: '<string>',
updatedAt: '<string>'
},
crmOpportunity: {
id: '<string>',
object: 'resourceRef',
model: '<string>',
fields: '<unknown>',
rawResource: '<unknown>',
remote: {id: '<string>'},
createdAt: '<string>',
updatedAt: '<string>'
}
})
};
fetch('https://api.runmorph.dev/v1/resources/widgetCardView', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "resource",
"model": "<string>",
"id": "<string>",
"remote": {
"id": "<string>"
}
}const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
'x-api-secret': '<api-key>',
'x-connector-id': '<api-key>',
'x-owner-id': '<api-key>',
'x-session-token': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
triggeredBy: {
id: '<string>',
object: 'resourceRef',
model: '<string>',
fields: '<unknown>',
rawResource: '<unknown>',
remote: {id: '<string>'},
createdAt: '<string>',
updatedAt: '<string>'
},
genericContact: {
id: '<string>',
object: 'resourceRef',
model: '<string>',
fields: '<unknown>',
rawResource: '<unknown>',
remote: {id: '<string>'},
createdAt: '<string>',
updatedAt: '<string>'
},
genericCompany: {
id: '<string>',
object: 'resourceRef',
model: '<string>',
fields: '<unknown>',
rawResource: '<unknown>',
remote: {id: '<string>'},
createdAt: '<string>',
updatedAt: '<string>'
},
crmOpportunity: {
id: '<string>',
object: 'resourceRef',
model: '<string>',
fields: '<unknown>',
rawResource: '<unknown>',
remote: {id: '<string>'},
createdAt: '<string>',
updatedAt: '<string>'
}
})
};
fetch('https://api.runmorph.dev/v1/resources/widgetCardView', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "resource",
"model": "<string>",
"id": "<string>",
"remote": {
"id": "<string>"
}
}User that opened the widget
Show child attributes
resourceRef, resource Contact on which the widget is opened
Show child attributes
resourceRef, resource Company on which the widget is opened
Show child attributes
resourceRef, resource Opportunity on which the widget is opened
Show child attributes
resourceRef, resource