Mutation
mutation CreateWidget($input: CreateWidgetInput!) {
createWidget(input: $input) {
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
widget {
createdAt
createdBy
id
itemType
lastModified
pinnedItems {
__typename
... on PinnedCardDefinition {
__typename
}
}
}
}
}Variables
{
"input": {
"itemType": "CARD_DEFINITIONS",
"position": 1.5
}
}Response
{
"data": {
"createWidget": {
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
],
"widget": {
"createdAt": "value",
"createdBy": "value",
"id": "id",
"itemType": "CARD_DEFINITIONS",
"lastModified": "value",
"pinnedItems": [
{
"__typename": "PinnedCardDefinition"
}
]
}
}
}
}Mutations
createWidget
Creates a new landing page widget for the current tenant.
MUTATION
createWidget(input: CreateWidgetInput!): CreateWidgetPayload!Arguments
input
required
Returns
errors
widget
Mutation
mutation CreateWidget($input: CreateWidgetInput!) {
createWidget(input: $input) {
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
widget {
createdAt
createdBy
id
itemType
lastModified
pinnedItems {
__typename
... on PinnedCardDefinition {
__typename
}
}
}
}
}Variables
{
"input": {
"itemType": "CARD_DEFINITIONS",
"position": 1.5
}
}Response
{
"data": {
"createWidget": {
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
],
"widget": {
"createdAt": "value",
"createdBy": "value",
"id": "id",
"itemType": "CARD_DEFINITIONS",
"lastModified": "value",
"pinnedItems": [
{
"__typename": "PinnedCardDefinition"
}
]
}
}
}
}Was this page helpful?