# Approval Rule and Approval Flow Messages

## GraphQL partial SDLs

This is a graphql reference page. In the llms.txt variant, those components link to the shared partial SDL key list instead of trying to resolve inline GraphQL reference content.

Fetch all available partial SDL keys first:

```text
GET https://docs.commercetools.com/apis/rest/content/by-id?id=ctp:gql-sphere:returnTypesList
```

Then fetch the one or more relevant partial SDL with a key from that list by calling the same endpoint with a schema ID:

```text
GET https://docs.commercetools.com/apis/rest/content/by-id?id=ctp:gql-sphere:schema:<key>
```

The response body is a JSON object keyed by the requested content ID. For example, the key-list request returns a `ctp:gql-sphere:returnTypesList` field and a schema request returns a `ctp:gql-sphere:schema:<key>` field.

**GraphQL output types for Messages that represent a change or an action performed on an Approval Rule or Approval Flow.**

Each type on this page implements [MessagePayload](/api/graphql/messages.md#messagepayload) and is returned in the `payload` field of a [Message](/api/graphql/messages.md#message). For when each Message is generated, see [Approval Rule and Approval Flow Messages](/api/projects/messages/approval-rule-approval-flow-messages.md).

## Approval Rule Messages

### ApprovalRuleCreated

[fetch SDL for type ApprovalRuleCreated](#graphql-partial-sdls).

### ApprovalRuleStatusSet

[fetch SDL for type ApprovalRuleStatusSet](#graphql-partial-sdls).

### ApprovalRuleNameSet

[fetch SDL for type ApprovalRuleNameSet](#graphql-partial-sdls).

### ApprovalRuleDescriptionSet

[fetch SDL for type ApprovalRuleDescriptionSet](#graphql-partial-sdls).

### ApprovalRuleKeySet

[fetch SDL for type ApprovalRuleKeySet](#graphql-partial-sdls).

### ApprovalRulePredicateSet

[fetch SDL for type ApprovalRulePredicateSet](#graphql-partial-sdls).

### ApprovalRuleApproversSet

[fetch SDL for type ApprovalRuleApproversSet](#graphql-partial-sdls).

### ApprovalRuleRequestersSet

[fetch SDL for type ApprovalRuleRequestersSet](#graphql-partial-sdls).

## Approval Flow Messages

### ApprovalFlowCreated

[fetch SDL for type ApprovalFlowCreated](#graphql-partial-sdls).

### ApprovalFlowApproved

[fetch SDL for type ApprovalFlowApproved](#graphql-partial-sdls).

### ApprovalFlowRejected

[fetch SDL for type ApprovalFlowRejected](#graphql-partial-sdls).

### ApprovalFlowCompleted

[fetch SDL for type ApprovalFlowCompleted](#graphql-partial-sdls).

## Related pages

- [Area overview page with navigation](/api.md)
- [Previous page: REST](/api/projects/messages/approval-rule-approval-flow-messages.md)
- [Search documentation and API specs](/search.md)