Mutation
mutation SetAsDefault($input: SetDefaultOfferInput!) {
setAsDefault(input: $input) {
accountId
createdAt
description
draftDetails {
version
}
environmentId
id
}
}Variables
{
"input": {
"offerId": "string"
}
}Response
{
"data": {
"setAsDefault": {
"accountId": "string",
"createdAt": "value",
"description": "string",
"draftDetails": {
"version": 1
},
"environmentId": "value",
"id": "value"
}
}
}Mutations
setAsDefault
Set offer as default
MUTATION
setAsDefault(input: SetDefaultOfferInput!): Offer!Arguments
input
required
Set default offer input
Returns
accountId
String!
The unique identifier for the account
createdAt
DateTime!
Creation timestamp
description
String
Offer description
draftDetails
Draft details if this offer has a draft version
environmentId
UUID!
The unique identifier for the environment
id
UUID!
Unique identifier for the entity
isDefault
Boolean!
Whether this is the default offer
isLatest
Boolean!
Whether this is the latest version
metadata
JSON
Metadata associated with the entity
name
String!
Offer name
offerId
String!
The unique identifier for the entity
status
Offer status
updatedAt
DateTime!
Last update timestamp
version
Int!
Offer version
Mutation
mutation SetAsDefault($input: SetDefaultOfferInput!) {
setAsDefault(input: $input) {
accountId
createdAt
description
draftDetails {
version
}
environmentId
id
}
}Variables
{
"input": {
"offerId": "string"
}
}Response
{
"data": {
"setAsDefault": {
"accountId": "string",
"createdAt": "value",
"description": "string",
"draftDetails": {
"version": 1
},
"environmentId": "value",
"id": "value"
}
}
}