Mutation
mutation ReorderPin($input: ReorderPinInput!) {
reorderPin(input: $input) {
clientMutationId
errors
pin {
id
list
position
target {
__typename
... on CustomOnboardingPointerPin {
__typename
}
}
}
pins {
id
list
position
target {
__typename
... on CustomOnboardingPointerPin {
__typename
}
}
}
}
}Variables
{
"input": {
"pinId": "id"
}
}Response
{
"data": {
"reorderPin": {
"clientMutationId": "string",
"errors": [
"string"
],
"pin": {
"id": "id",
"list": "FEATURED",
"position": 1,
"target": {
"__typename": "CustomOnboardingPointerPin"
}
},
"pins": [
{
"id": "id",
"list": "FEATURED",
"position": 1,
"target": {
"__typename": "CustomOnboardingPointerPin"
}
}
]
}
}
}Mutations
reorderPin
Reorder a pin within one of a Network’s curated lists. Pass exactly one of
atTop, atBottom, or atItemId (the ID of a sibling pin to insert above).
Required scope: host:write:network_settings
MUTATION
reorderPin(input: ReorderPinInput!): ReorderPinPayloadArguments
input
required
Parameters for ReorderPin
Returns
clientMutationId
String
A unique identifier for the client performing the mutation.
errors
[String!]!
pin
The reordered pin. Null only when a user-correctable error is returned.
pins
[Pin!]!
The full pin list this write landed in, post-write, in curator-set order.
Mutation
mutation ReorderPin($input: ReorderPinInput!) {
reorderPin(input: $input) {
clientMutationId
errors
pin {
id
list
position
target {
__typename
... on CustomOnboardingPointerPin {
__typename
}
}
}
pins {
id
list
position
target {
__typename
... on CustomOnboardingPointerPin {
__typename
}
}
}
}
}Variables
{
"input": {
"pinId": "id"
}
}Response
{
"data": {
"reorderPin": {
"clientMutationId": "string",
"errors": [
"string"
],
"pin": {
"id": "id",
"list": "FEATURED",
"position": 1,
"target": {
"__typename": "CustomOnboardingPointerPin"
}
},
"pins": [
{
"id": "id",
"list": "FEATURED",
"position": 1,
"target": {
"__typename": "CustomOnboardingPointerPin"
}
}
]
}
}
}