{
  "opencollection": "1.0.0",
  "info": {
    "name": "Sync Authentication ChangeIntent API",
    "version": "0.2.0"
  },
  "items": [
    {
      "info": {
        "name": "ChangeIntent",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all ChangeIntents",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sync.sparetech.io/v1/change-intents",
            "params": [
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Only returns intents in the given status."
              },
              {
                "name": "created.gt",
                "value": "2022-12-10",
                "type": "query",
                "description": "A filter based on the object's `createdAt` field. Return results where the field is greater than or equal to this value. Follows the ISO-8601 standard format."
              },
              {
                "name": "created.lt",
                "value": "2022-12-13",
                "type": "query",
                "description": "A filter based on the object's `createdAt` field. Return results where the field is less than or equal to this value. Follows the ISO-8601 standard format."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "A limit on the number of objects to be returned. Limit can range between 1 and 99, and the default is 10."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "A cursor for pagination across multiple pages of results."
              },
              {
                "name": "changes.only",
                "value": "",
                "type": "query",
                "description": "If true, this endpoint only returns fields that have changes as part of the `metadata` property of the `changeIntents` property. This is the default behaviour, mimicking a patch."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Returns a list of ChangeIntents."
        },
        {
          "info": {
            "name": "Retrieve a ChangeIntent",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sync.sparetech.io/v1/change-intents/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              },
              {
                "name": "changes.only",
                "value": "",
                "type": "query",
                "description": "If true, this endpoint only returns fields that have changes as part of the `metadata` property. This is the default behaviour, mimicking a patch."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieves the details of a ChangeIntent that has previously been created."
        },
        {
          "info": {
            "name": "Confirm material change",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sync.sparetech.io/v1/change-intents/:id/confirm",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Confirms the change to the material."
        },
        {
          "info": {
            "name": "Reject material change",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sync.sparetech.io/v1/change-intents/:id/reject",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Marks the intent as rejected by the external system."
        }
      ]
    }
  ],
  "bundled": true
}