{
 "openapi": "3.1.0",
 "info": {
  "title": "Extendable Picklists (Platform)",
  "version": "20261030b",
  "description": "The drop-down lists a company can add values to. Add a value under Admin > Configuration Lists with the list key shown here; the form then offers it and the record accepts it."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "picklists": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "list_key": {
      "type": "string",
      "description": "List key",
      "readOnly": true
     },
     "list_name": {
      "type": "string",
      "description": "List name",
      "readOnly": true
     },
     "table_name": {
      "type": "string",
      "description": "Table name",
      "readOnly": true
     },
     "column_name": {
      "type": "string",
      "description": "Column name",
      "readOnly": true
     },
     "builtin_count": {
      "type": "integer",
      "description": "Builtin count",
      "readOnly": true
     },
     "added_count": {
      "type": "integer",
      "description": "Added count",
      "readOnly": true
     },
     "builtin_values": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Builtin values",
      "readOnly": true
     },
     "converted": {
      "type": "boolean",
      "description": "Converted",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/platform/picklists": {
   "get": {
    "summary": "list picklists",
    "operationId": "list_picklists_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create picklists",
    "operationId": "create_picklists_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/picklists/{id}": {
   "get": {
    "summary": "get picklists",
    "operationId": "get_picklists_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change picklists",
    "operationId": "change_picklists_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete picklists",
    "operationId": "delete_picklists_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/platform/picklists/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_picklists_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}