Mutation
mutation CreateOffer($input: CreateOfferInput!) {
createOffer(input: $input) {
accountId
createdAt
description
draftDetails {
version
}
environmentId
id
}
}Variables
{
"input": {
"name": "string",
"offerId": "string"
}
}Response
{
"data": {
"createOffer": {
"accountId": "string",
"createdAt": "value",
"description": "string",
"draftDetails": {
"version": 1
},
"environmentId": "value",
"id": "value"
}
}
}Mutations
createOffer
Create new offer - only creates first version of new offers
MUTATION
createOffer(input: CreateOfferInput!): Offer!Arguments
input
required
Create offer input - only creates first version of new offers
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 CreateOffer($input: CreateOfferInput!) {
createOffer(input: $input) {
accountId
createdAt
description
draftDetails {
version
}
environmentId
id
}
}Variables
{
"input": {
"name": "string",
"offerId": "string"
}
}Response
{
"data": {
"createOffer": {
"accountId": "string",
"createdAt": "value",
"description": "string",
"draftDetails": {
"version": 1
},
"environmentId": "value",
"id": "value"
}
}
}