markInboundEmailsAsRead
Requires permission sales:quote:read.
Marks every unread customer reply on one quote as read. It only affects quotes the caller may open, and it returns whether anything changed. Requires permission to read quotes.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation MarkInboundEmailsAsRead($quoteId: ID!) {
markInboundEmailsAsRead(quoteId: $quoteId)
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation MarkInboundEmailsAsRead($quoteId: ID!) {\n markInboundEmailsAsRead(quoteId: $quoteId)\n}",
"variables": {
"quoteId": "id"
}
}
EOF
Variables:
{
"quoteId": "id"
}
Response:
{
"data": {
"markInboundEmailsAsRead": true
}
}
markInboundEmailsAsRead(
quoteId: ID!
): Boolean!
Arguments
markInboundEmailsAsRead.quoteId ● ID! non-null scalar
The ID of the quote.
Type
Boolean scalar
The Boolean scalar type represents true or false.