Mutation
mutation UpdateEndpoint($input: UpdateEndpointInput!) {
updateEndpoint(input: $input) {
endpoint {
activeContent
apiVersion {
allowedOrigins
applications {
__typename
}
authentication
cardDefinitions {
__typename
}
clusters {
__typename
}
createdAt
}
apiVersionId
cardDefinitions {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
totalCount
}
description
displayName
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"contentSelection": {
"filters": [
{
"segmentDefinitionId": "string"
}
],
"id": "string",
"properties": [
{
"id": "string"
}
],
"relations": [
{
"alias": "string",
"cardinality": "PLURAL",
"id": "string",
"target": {}
}
]
},
"description": "string",
"destinationId": "id",
"displayName": "string",
"id": "id",
"versionId": "id"
}
}Response
{
"data": {
"updateEndpoint": {
"endpoint": {
"activeContent": "value",
"apiVersion": {
"allowedOrigins": [
"value"
],
"applications": {
"__typename": "ApplicationsConnection"
},
"authentication": "PROTECTED",
"cardDefinitions": {
"__typename": "CardDefinitionsConnection"
},
"clusters": {
"__typename": "ClustersConnection"
},
"createdAt": "value"
},
"apiVersionId": "id",
"cardDefinitions": {
"edges": [
{
"__typename": "CardDefinitionsEdge"
}
],
"nodes": [
{
"__typename": "CardDefinition"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": 1
},
"description": "string",
"displayName": "string"
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Mutations
updateEndpoint
Replaces an endpoint’s content, label and note, and returns the endpoint. While the version is published or publishing, the new content goes to pendingContent until applyPendingVersionChanges, and removing card properties, relations or facets, or changing aliases or a relation’s cardinality, fails with ConflictError; on other versions it replaces activeContent. Also fails with ConflictError when a newly added segment is SCHEDULED or ARCHIVED, and with ValidationError when a changed card property has pending changes on its card definition.
MUTATION
updateEndpoint(input: UpdateEndpointInput!): UpdateEndpointPayload!Arguments
input
required
Returns
endpoint
errors
Mutation
mutation UpdateEndpoint($input: UpdateEndpointInput!) {
updateEndpoint(input: $input) {
endpoint {
activeContent
apiVersion {
allowedOrigins
applications {
__typename
}
authentication
cardDefinitions {
__typename
}
clusters {
__typename
}
createdAt
}
apiVersionId
cardDefinitions {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
totalCount
}
description
displayName
}
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
}
}Variables
{
"input": {
"contentSelection": {
"filters": [
{
"segmentDefinitionId": "string"
}
],
"id": "string",
"properties": [
{
"id": "string"
}
],
"relations": [
{
"alias": "string",
"cardinality": "PLURAL",
"id": "string",
"target": {}
}
]
},
"description": "string",
"destinationId": "id",
"displayName": "string",
"id": "id",
"versionId": "id"
}
}Response
{
"data": {
"updateEndpoint": {
"endpoint": {
"activeContent": "value",
"apiVersion": {
"allowedOrigins": [
"value"
],
"applications": {
"__typename": "ApplicationsConnection"
},
"authentication": "PROTECTED",
"cardDefinitions": {
"__typename": "CardDefinitionsConnection"
},
"clusters": {
"__typename": "ClustersConnection"
},
"createdAt": "value"
},
"apiVersionId": "id",
"cardDefinitions": {
"edges": [
{
"__typename": "CardDefinitionsEdge"
}
],
"nodes": [
{
"__typename": "CardDefinition"
}
],
"pageInfo": {
"__typename": "PageInfo"
},
"totalCount": 1
},
"description": "string",
"displayName": "string"
},
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
]
}
}
}Was this page helpful?