Mutation
mutation ReorderWidgets($input: ReorderWidgetsInput!) {
reorderWidgets(input: $input) {
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
widget {
createdAt
createdBy
id
itemType
lastModified
pinnedItems {
__typename
... on PinnedCardDefinition {
__typename
}
}
}
}
}Variables
{
"input": {
"widgets": [
{
"position": 1.5,
"widgetId": "value"
}
]
}
}Response
{
"data": {
"reorderWidgets": {
"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
reorderWidgets
Reorders multiple widgets on the landing page by updating their positions in bulk.
MUTATION
reorderWidgets(input: ReorderWidgetsInput!): ReorderWidgetsPayload!Arguments
input
required
Returns
errors
widget
[Widget!]
Mutation
mutation ReorderWidgets($input: ReorderWidgetsInput!) {
reorderWidgets(input: $input) {
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
widget {
createdAt
createdBy
id
itemType
lastModified
pinnedItems {
__typename
... on PinnedCardDefinition {
__typename
}
}
}
}
}Variables
{
"input": {
"widgets": [
{
"position": 1.5,
"widgetId": "value"
}
]
}
}Response
{
"data": {
"reorderWidgets": {
"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?