Mutation
mutation UpdateSegment($input: UpdateSegmentInput!) {
updateSegment(input: $input) {
empty {
value
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"updateSegment": {
"empty": {
"value": 1
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Mutations
updateSegment
Changes a segment; returns no segment, so read it to see the result. A change to searchCriteria or language on a live segment matches cards again in the background: status is INITIALIZING until it’s ACTIVE. ConflictError: the segment is archived.
MUTATION
updateSegment(input: UpdateSegmentInput!): UpdateSegmentPayload!Arguments
input
required
Returns
empty
errors
Mutation
mutation UpdateSegment($input: UpdateSegmentInput!) {
updateSegment(input: $input) {
empty {
value
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"updateSegment": {
"empty": {
"value": 1
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Was this page helpful?