Mutation
mutation CreatePoll($input: CreatePollInput!) {
createPoll(input: $input) {
clientMutationId
errors
poll {
answerCount
answerType
answerers {
avatarUrl
badges {
__typename
}
conversations {
__typename
}
customFieldResponses {
__typename
}
dailyVisitStreak {
__typename
}
directMessages {
__typename
}
}
answers {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
}
assets {
aspectRatio
assetStyle
contentType
fileSize
id
imageUrl
}
body
}
}
}Variables
{
"input": {
"pollType": "HOT_COLD",
"spaceId": "id",
"title": "string"
}
}Response
{
"data": {
"createPoll": {
"clientMutationId": "string",
"errors": [
"string"
],
"poll": {
"answerCount": 1,
"answerType": "string",
"answerers": [
{
"avatarUrl": "string",
"badges": [
{
"__typename": "Badge"
}
],
"conversations": {
"__typename": "PublicConversationConnection"
},
"customFieldResponses": {
"__typename": "MemberCustomFieldResponseConnection"
},
"dailyVisitStreak": {
"__typename": "DailyVisitStreak"
},
"directMessages": {
"__typename": "PrivateConversationConnection"
}
}
],
"answers": {
"edges": [
{
"__typename": "PollAnswerEdge"
}
],
"nodes": [
{
"__typename": "PollAnswer"
}
],
"pageInfo": {
"__typename": "PageInfo"
}
},
"assets": [
{
"aspectRatio": 1.5,
"assetStyle": "string",
"contentType": "string",
"fileSize": "string",
"id": "id",
"imageUrl": "string"
}
],
"body": "string"
}
}
}
}Mutations
createPoll
Create a new poll or question in a space
MUTATION
createPoll(input: CreatePollInput!): CreatePollPayloadArguments
input
CreatePollInput!
required
Parameters for CreatePoll
Returns
clientMutationId
String
A unique identifier for the client performing the mutation.
errors
[String!]!
poll
Mutation
mutation CreatePoll($input: CreatePollInput!) {
createPoll(input: $input) {
clientMutationId
errors
poll {
answerCount
answerType
answerers {
avatarUrl
badges {
__typename
}
conversations {
__typename
}
customFieldResponses {
__typename
}
dailyVisitStreak {
__typename
}
directMessages {
__typename
}
}
answers {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
}
assets {
aspectRatio
assetStyle
contentType
fileSize
id
imageUrl
}
body
}
}
}Variables
{
"input": {
"pollType": "HOT_COLD",
"spaceId": "id",
"title": "string"
}
}Response
{
"data": {
"createPoll": {
"clientMutationId": "string",
"errors": [
"string"
],
"poll": {
"answerCount": 1,
"answerType": "string",
"answerers": [
{
"avatarUrl": "string",
"badges": [
{
"__typename": "Badge"
}
],
"conversations": {
"__typename": "PublicConversationConnection"
},
"customFieldResponses": {
"__typename": "MemberCustomFieldResponseConnection"
},
"dailyVisitStreak": {
"__typename": "DailyVisitStreak"
},
"directMessages": {
"__typename": "PrivateConversationConnection"
}
}
],
"answers": {
"edges": [
{
"__typename": "PollAnswerEdge"
}
],
"nodes": [
{
"__typename": "PollAnswer"
}
],
"pageInfo": {
"__typename": "PageInfo"
}
},
"assets": [
{
"aspectRatio": 1.5,
"assetStyle": "string",
"contentType": "string",
"fileSize": "string",
"id": "id",
"imageUrl": "string"
}
],
"body": "string"
}
}
}
}⌘I