{
  "opencollection": "1.0.0",
  "info": {
    "name": "IO.Common Accounts UniqueItemStatuses API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://identity.scanbro.com/connect/authorize",
      "accessTokenUrl": "https://identity.scanbro.com/connect/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "UniqueItemStatuses",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get a paged list of unique item statuses visible to the current account:\r\nglobal rows plus the caller's own. Tenant-primary / admin callers\r\n(no account context) see all rows.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/UniqueItemStatuses",
            "params": [
              {
                "name": "Filter",
                "value": "",
                "type": "query"
              },
              {
                "name": "Page",
                "value": "",
                "type": "query"
              },
              {
                "name": "PageSize",
                "value": "",
                "type": "query"
              },
              {
                "name": "SortColumn",
                "value": "",
                "type": "query"
              },
              {
                "name": "SortOrder",
                "value": "",
                "type": "query"
              },
              {
                "name": "filterAccountId",
                "value": "",
                "type": "query",
                "description": "Optional additional filter: restrict results to rows with this exact `AccountId`. Applied on top of the visibility rule; never exposes rows outside the caller's visibility."
              },
              {
                "name": "genericStatus",
                "value": "",
                "type": "query",
                "description": "Optional generic status category filter."
              },
              {
                "name": "Account",
                "value": "",
                "type": "query",
                "description": "Account"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://identity.scanbro.com/connect/authorize",
              "accessTokenUrl": "https://identity.scanbro.com/connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get a paged list of unique item statuses visible to the current account:\r\nglobal rows plus the caller's own. Tenant-primary / admin callers\r\n(no account context) see all rows."
        },
        {
          "info": {
            "name": "Create a new unique item status.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/UniqueItemStatuses",
            "params": [
              {
                "name": "Account",
                "value": "",
                "type": "query",
                "description": "Account"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://identity.scanbro.com/connect/authorize",
              "accessTokenUrl": "https://identity.scanbro.com/connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create a new unique item status."
        },
        {
          "info": {
            "name": "Get a single unique item status by id.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/UniqueItemStatuses/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique item status id."
              },
              {
                "name": "Account",
                "value": "",
                "type": "query",
                "description": "Account"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://identity.scanbro.com/connect/authorize",
              "accessTokenUrl": "https://identity.scanbro.com/connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get a single unique item status by id."
        },
        {
          "info": {
            "name": "Update an existing unique item status. `AccountId` is immutable.",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{{baseUrl}}/v1/UniqueItemStatuses/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique item status id."
              },
              {
                "name": "Account",
                "value": "",
                "type": "query",
                "description": "Account"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://identity.scanbro.com/connect/authorize",
              "accessTokenUrl": "https://identity.scanbro.com/connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update an existing unique item status. `AccountId` is immutable."
        },
        {
          "info": {
            "name": "Soft-delete a unique item status. Blocked if any active `Operation`\r\nreferences the status via `IssueItemStatusId` or `ReceiveItemStatusId`.",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/v1/UniqueItemStatuses/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique item status id."
              },
              {
                "name": "Account",
                "value": "",
                "type": "query",
                "description": "Account"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://identity.scanbro.com/connect/authorize",
              "accessTokenUrl": "https://identity.scanbro.com/connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Soft-delete a unique item status. Blocked if any active `Operation`\r\nreferences the status via `IssueItemStatusId` or `ReceiveItemStatusId`."
        }
      ]
    }
  ],
  "bundled": true
}