Step 1: Prepare the JSON Request Body

DISTRIBUTION: How to create a Release Bundle with selected files using the REST API command

AuthorFullName__c
Ino Choi
articleNumber
000005786
ft:sourceType
Salesforce
FirstPublishedDate
2023-06-15T07:07:41Z
lastModifiedDate
2023-06-14
VersionNumber
1
To create a Release Bundle with selected files based on a property, you need to construct a JSON request body. Here's an example of the JSON structure:
{
  "name": "my-release-bundle",
  "version": "1.0",
  "sign_immediately": true,
  "release_notes": {
    "syntax": "plain_text",
    "content": "Version 1.0 to create a bundle using the REST API command"
  },
  "spec": {
    "queries": [
      {
        "aql": "items.find({ \"repo\" : \"example-repo-local\"}, {\"@key\": \"value\"})",
        "query_name": "query-1",
        "mappings": [
          {
            "input": "regex",
            "output": "$1/$2"
          }
        ]
      }
    ]
  }
}