Projects
albert.collections.projects.ProjectCollection
Bases: BaseCollection
Manage Projects in the Albert platform.
A Project is the top-level container for a piece of R&D work. It groups the formulations designed for that work, the Project's Worksheet (1:1 with the project), the Tasks run against it, and the inventory it references. Projects are the entry point most workflows start from: you create a project, then build formulas and run tasks inside it.
Every project is identified by a Project ID (format PRO..., e.g.
"PRO123"). A project always has a description (which doubles as its
display name) and a ProjectClass
controlling its access level (private, shared, or confidential).
This collection is accessed as client.projects.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
AlbertSession
|
The authenticated Albert session used for API calls. |
required |
Attributes:
| Name | Type | Description |
|---|---|---|
base_path |
str
|
The base API route for project requests. |
Methods:
| Name | Description |
|---|---|
create |
Create a new project. |
get_by_id |
Get a single project by its ID. |
update |
Update an existing project. |
delete |
Delete a project by its ID. |
reactivate |
Reactivate a soft-deleted project by its ID. |
search |
Fast, lightweight search returning partial projects (best for lookups). |
get_all |
Same filters as search, but returns fully populated projects (slower). |
document_search |
Search documents (attachments) linked to a project. |
set_reference_formula |
This promotes a formula to a designated reference type that can be easily referenced within a project. Reference formulas can be of any type defined in |
link_reference_formula |
Links a formula from another project into this project for comparison. In order to link a formula to a project, that formula must be set as a reference formula. |
get_all_reference_formulas |
Get all reference formula designations, with optional filters. |
update_reference_formula_type |
Update the type designation of an existing reference formula. |
delete_reference_formula |
Delete a reference formula designation from a project. |
star |
Star (pin, favorite) a project for the current user. |
unstar |
Remove a project from the current user's starred (pinned, favorited) projects. |
get_starred |
Get the current user's starred (pinned, favorited) projects. |
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
AlbertSession
|
The authenticated Albert session used for API calls. |
required |
Source code in src/albert/collections/projects.py
create
Create a new project.
Use this to register a new R&D container. Only description is
required; it doubles as the project's display name. Optionally set
locations, project_class (defaults to private), metadata, and
other fields on the Project first.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project
|
Project
|
The project to create. |
required |
Returns:
| Type | Description |
|---|---|
Project
|
The newly created project, populated with its assigned Project ID. |
Source code in src/albert/collections/projects.py
get_by_id
Get a single project by its ID.
To find projects without knowing their IDs, use search or
get_all.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
ProjectId
|
The Project ID (format |
required |
Returns:
| Type | Description |
|---|---|
Project
|
The fully populated project. |
Source code in src/albert/collections/projects.py
update
Update an existing project.
Retrieve the project (e.g. with
get_by_id), modify the updatable fields, then pass it
here. Only the fields listed in Notes are applied.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project
|
Project
|
The project carrying the desired changes. Its |
required |
Returns:
| Type | Description |
|---|---|
Project
|
The updated project. |
Notes
The following fields can be updated: description, grid,
metadata, state, acl.
Source code in src/albert/collections/projects.py
delete
delete(*, id: ProjectId) -> None
Delete a project by its ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
ProjectId
|
The Project ID (format |
required |
Returns:
| Type | Description |
|---|---|
None
|
|
Source code in src/albert/collections/projects.py
reactivate
Reactivate a soft-deleted project by its ID.
Restores a project previously deleted with
delete. The project's
tasks and worksheets are restored with it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
ProjectId
|
The Project ID (format |
required |
Returns:
| Type | Description |
|---|---|
Project
|
The reactivated project. |
Source code in src/albert/collections/projects.py
star
Star (pin, favorite) a project for the current user.
Starring a project adds it to the current user's starred projects list. If the project is already starred, this method leaves it starred.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
ProjectId
|
The Project ID (format |
required |
Returns:
| Type | Description |
|---|---|
Project
|
The fully populated starred Project. |
Source code in src/albert/collections/projects.py
unstar
unstar(*, id: ProjectId) -> None
Remove a project from the current user's starred (pinned, favorited) projects.
If the project is not starred, this method does nothing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
ProjectId
|
The Project ID (format |
required |
Returns:
| Type | Description |
|---|---|
None
|
|
Source code in src/albert/collections/projects.py
get_starred
Get the current user's starred (pinned, favorited) projects.
Yields fully populated Project entities
belonging to the current user's starred list.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
max_items
|
int
|
Maximum number of projects to return in total. If None, returns all starred projects. |
None
|
Returns:
| Type | Description |
|---|---|
Iterator[Project]
|
An iterator of fully populated Project entities. |
Source code in src/albert/collections/projects.py
search
search(
*,
text: str | None = None,
status: list[str] | None = None,
market_segment: list[str] | None = None,
application: list[str] | None = None,
technology: list[str] | None = None,
created_by: list[str] | None = None,
location: list[str] | None = None,
program: list[str] | None = None,
technical_lead: list[str] | None = None,
from_created_at: str | None = None,
to_created_at: str | None = None,
updated_by: str | list[str] | None = None,
from_updated_at: str | None = None,
to_updated_at: str | None = None,
facet_field: str | None = None,
facet_text: str | None = None,
contains_field: list[str] | None = None,
contains_text: list[str] | None = None,
linked_to: str | None = None,
my_project: bool | None = None,
my_role: list[str] | None = None,
metadata_filters: dict[str, Any] | None = None,
additional_field: list[str] | None = None,
custom_fields: dict[str, Any] | None = None,
formula_access: list[str] | None = None,
linked_to_grid: str | None = None,
source_field: list[str] | None = None,
order_by: OrderBy = DESCENDING,
sort_by: str | None = None,
offset: int | None = None,
max_items: int | None = None,
) -> Iterator[ProjectSearchItem]
Search for projects matching the given filters.
This is the fast way to find projects: it returns lightweight, partial
(unhydrated) ProjectSearchItem results
and is best for lookups, counts, and pulling IDs. To retrieve fully
detailed Project entities, use
get_all instead (slower, one full fetch per result).
All filters are optional; with no arguments this iterates over all projects you can access.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
Full-text search query. |
None
|
status
|
list[str]
|
Filter by project statuses. |
None
|
market_segment
|
list[str]
|
Filter by market segment. |
None
|
application
|
list[str]
|
Filter by application. |
None
|
technology
|
list[str]
|
Filter by technology tags. |
None
|
created_by
|
list[str]
|
Filter by creator. Accepts user display name(s) or UserId(s) (e.g.
|
None
|
location
|
list[str]
|
Filter by location(s). |
None
|
program
|
list[str]
|
Filter by project program (custom field). |
None
|
technical_lead
|
list[str]
|
Filter by technical lead (custom field). |
None
|
from_created_at
|
str
|
Only include projects created on or after this date, formatted as
|
None
|
to_created_at
|
str
|
Only include projects created on or before this date, formatted as
|
None
|
updated_by
|
str or list[str]
|
Filter by user(s) who last updated the project. Accepts UserId(s)
only (e.g. |
None
|
from_updated_at
|
str
|
Only include projects updated on or after this date (ISO 8601). |
None
|
to_updated_at
|
str
|
Only include projects updated on or before this date (ISO 8601). |
None
|
facet_field
|
str
|
Facet field to filter on. |
None
|
facet_text
|
str
|
Facet text to search for. |
None
|
contains_field
|
list[str]
|
Fields to search inside. |
None
|
contains_text
|
list[str]
|
Values to search for within the |
None
|
linked_to
|
str
|
Entity ID the project is linked to. |
None
|
my_project
|
bool
|
If True, return only projects owned by current user. |
None
|
my_role
|
list[str]
|
User roles to filter by. |
None
|
metadata_filters
|
dict[str, Any]
|
Filter by custom field (metadata) values. Warning Do not use this for application, technology, program, technical lead, or market segment. Use their corresponding query parameters instead. |
None
|
additional_field
|
list[str]
|
Request additional columns from the search index. |
None
|
custom_fields
|
dict[str, Any]
|
Filter by custom field values. |
None
|
formula_access
|
list[str]
|
Filter by formula access level. |
None
|
linked_to_grid
|
str
|
Text for linked-to dropdown search in grid/report flows. |
None
|
source_field
|
list[str]
|
Restrict which fields are returned in the response. |
None
|
order_by
|
OrderBy
|
Sort order. Default is DESCENDING. |
DESCENDING
|
sort_by
|
str
|
Field to sort by. |
None
|
max_items
|
int
|
Maximum number of items to return in total. If None, fetches all available items. |
None
|
Returns:
| Type | Description |
|---|---|
Iterator[ProjectSearchItem]
|
An iterator of matching partial (unhydrated) project results. |
Source code in src/albert/collections/projects.py
473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 | |
document_search
document_search(
*,
linked_to: SearchProjectId,
text: str | None = None,
source_field: list[str] | None = None,
additional_field: list[str] | None = None,
search_field: list[str] | None = None,
order_by: OrderBy = DESCENDING,
sort_by: str | None = None,
offset: int | None = None,
max_items: int | None = None,
) -> Iterator[DocumentSearchItem]
Search for documents (attachments) linked to a project.
Each result is a lightweight
DocumentSearchItem describing an
attachment (name, MIME type, size, uploader) rather than the file itself.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
linked_to
|
SearchProjectId
|
The project to filter documents by (format |
required |
text
|
str
|
Full-text search query for document names. |
None
|
source_field
|
list[str]
|
Restrict which fields are returned in the response. |
None
|
additional_field
|
list[str]
|
Request additional columns from the search index. |
None
|
search_field
|
list[str]
|
Restrict which fields the |
None
|
order_by
|
OrderBy
|
Sort order. Default is DESCENDING. |
DESCENDING
|
sort_by
|
str
|
Field to sort by (for example |
None
|
max_items
|
int
|
Maximum number of items to return in total. If None, fetches all. |
None
|
Returns:
| Type | Description |
|---|---|
Iterator[DocumentSearchItem]
|
Matching document search results. |
Source code in src/albert/collections/projects.py
get_all
get_all(
*,
text: str | None = None,
status: list[str] | None = None,
market_segment: list[str] | None = None,
application: list[str] | None = None,
technology: list[str] | None = None,
created_by: list[str] | None = None,
location: list[str] | None = None,
program: list[str] | None = None,
technical_lead: list[str] | None = None,
from_created_at: str | None = None,
to_created_at: str | None = None,
updated_by: str | list[str] | None = None,
from_updated_at: str | None = None,
to_updated_at: str | None = None,
facet_field: str | None = None,
facet_text: str | None = None,
contains_field: list[str] | None = None,
contains_text: list[str] | None = None,
linked_to: str | None = None,
my_project: bool | None = None,
my_role: list[str] | None = None,
metadata_filters: dict[str, Any] | None = None,
additional_field: list[str] | None = None,
custom_fields: dict[str, Any] | None = None,
formula_access: list[str] | None = None,
linked_to_grid: str | None = None,
source_field: list[str] | None = None,
order_by: OrderBy = DESCENDING,
sort_by: str | None = None,
offset: int | None = None,
max_items: int | None = None,
) -> Iterator[Project]
Get fully populated projects matching optional filters.
Accepts the same filters as search, but yields complete
Project entities by fetching each
match individually via get_by_id. This is convenient but slower;
prefer search when you only need IDs or a few summary fields.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
Full-text search query. |
None
|
status
|
list[str]
|
Filter by project statuses. |
None
|
market_segment
|
list[str]
|
Filter by market segment. |
None
|
application
|
list[str]
|
Filter by application. |
None
|
technology
|
list[str]
|
Filter by technology tags. |
None
|
created_by
|
list[str]
|
Filter by creator. Accepts user display name(s) or UserId(s) (e.g.
|
None
|
location
|
list[str]
|
Filter by location(s). |
None
|
program
|
list[str]
|
Filter by project program (custom field). |
None
|
technical_lead
|
list[str]
|
Filter by technical lead (custom field). |
None
|
from_created_at
|
str
|
Only include projects created on or after this date, formatted as
|
None
|
to_created_at
|
str
|
Only include projects created on or before this date, formatted as
|
None
|
updated_by
|
str or list[str]
|
Filter by user(s) who last updated the project. Accepts UserId(s)
only (e.g. |
None
|
from_updated_at
|
str
|
Only include projects updated on or after this date (ISO 8601). |
None
|
to_updated_at
|
str
|
Only include projects updated on or before this date (ISO 8601). |
None
|
facet_field
|
str
|
Facet field to filter on. |
None
|
facet_text
|
str
|
Facet text to search for. |
None
|
contains_field
|
list[str]
|
Fields to search inside. |
None
|
contains_text
|
list[str]
|
Values to search for within the |
None
|
linked_to
|
str
|
Entity ID the project is linked to. |
None
|
my_project
|
bool
|
If True, return only projects owned by current user. |
None
|
my_role
|
list[str]
|
User roles to filter by. |
None
|
metadata_filters
|
dict[str, Any]
|
Filter by custom field (metadata) values. |
None
|
additional_field
|
list[str]
|
Request additional columns from the search index. |
None
|
custom_fields
|
dict[str, Any]
|
Filter by custom field values. |
None
|
formula_access
|
list[str]
|
Filter by formula access level. |
None
|
linked_to_grid
|
str
|
Text for linked-to dropdown search in grid/report flows. |
None
|
source_field
|
list[str]
|
Restrict which fields are returned in the response. |
None
|
order_by
|
OrderBy
|
Sort order. Default is DESCENDING. |
DESCENDING
|
sort_by
|
str
|
Field to sort by. |
None
|
max_items
|
int
|
Maximum number of items to return in total. If None, fetches all available items. |
None
|
Returns:
| Type | Description |
|---|---|
Iterator[Project]
|
An iterator of fully populated Project entities. Preserves |
Source code in src/albert/collections/projects.py
726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 | |
set_reference_formula
set_reference_formula(
*,
project_id: ProjectId,
sheet_id: WorksheetId,
inventory_id: InventoryId,
reference_formula_type: ReferenceFormulaType | str,
) -> ReferenceFormula
Set a formula in this project as a reference formula.
Corresponds to the "Set as Reference Formula" action in the worksheet column menu. Flags an existing formula column in the project worksheet as a named comparison point (e.g. Original commercial formula, Leading experimental candidate, Final outcome, or Control) during reformulation projects.
At the point of designation, the formula column's ingredients and process design sections are locked by default in the worksheet to prevent accidental edits while the reference designation is active. Experimental results can still be recorded normally. To edit composition, unlock the formula column first.
Once the project's dataset is synced via
update_dataset,
the designated formula appears as a reference column in Target Overview and a
reference bar in Compare Formula Data.
This operation is not idempotent: designating a formula that is already
designated in the specified sheet returns an error. To update an existing
designation's role, call
update_reference_formula_type.
To remove the designation, call
delete_reference_formula.
Example
from albert import Albert
from albert.resources.projects import ReferenceFormulaType
client = Albert()
rf = client.projects.set_reference_formula(
project_id="PRO123",
sheet_id="WKS456",
inventory_id="INV123-001",
reference_formula_type=ReferenceFormulaType.ORIGINAL,
)
rf.reference_formula_type
# 'Original'
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project_id
|
ProjectId
|
The project ID (format |
required |
sheet_id
|
WorksheetId
|
The sheet ID where the formula is designated (format |
required |
inventory_id
|
InventoryId
|
The inventory ID of the formula (format |
required |
reference_formula_type
|
ReferenceFormulaType | str
|
The reference formula designation, such as |
required |
Returns:
| Type | Description |
|---|---|
ReferenceFormula
|
The newly created reference formula designation. |
Source code in src/albert/collections/projects.py
905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 | |
link_reference_formula
link_reference_formula(
*,
project_id: ProjectId,
parent_project_id: ProjectId,
inventory_id: InventoryId,
reference_formula_type: ReferenceFormulaType | str,
) -> ReferenceFormula
Link a reference formula from another project.
Corresponds to the "Link Reference Formula" action on the project homepage and Target Overview picker. Designates an external formula from another project (such as a commercial product to reformulate, a competitive benchmark, or an external control) as a reference formula on this project without duplicating records or losing historical performance data.
The caller must have view/read access to the source project (parent_project_id)
at the time of designation. The parent_project_id must differ from the host
project_id, and a formula can be linked at most once per project.
When a reference formula from another project is linked, Albert incorporates the
source project's full dataset into the smart dataset scope upon sync
(update_dataset)
to support inverse design machine learning (Breakthrough). However, only the
specifically designated reference formula columns are surfaced in Target
Overview and Compare Formula Data.
Historical performance results from the source project populate against this project's targets automatically whenever test conditions match. If the formula has not been measured against a target, Target Overview renders it as unmeasured rather than broken or missing data.
In the web UI, a linked reference formula's type cannot be changed in place (it
must be unlinked and relinked), although
update_reference_formula_type
supports in-place programmatic updates.
Example
from albert import Albert
from albert.resources.projects import ReferenceFormulaType
client = Albert()
rf = client.projects.link_reference_formula(
project_id="PRO123",
parent_project_id="PRO456",
inventory_id="INV456-001",
reference_formula_type=ReferenceFormulaType.CONTROL,
)
rf.is_external_formula
# True
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project_id
|
ProjectId
|
The host project ID (format |
required |
parent_project_id
|
ProjectId
|
The source project ID where the formula originates (format |
required |
inventory_id
|
InventoryId
|
The inventory ID of the external formula (format |
required |
reference_formula_type
|
ReferenceFormulaType | str
|
The reference formula designation, such as |
required |
Returns:
| Type | Description |
|---|---|
ReferenceFormula
|
The newly linked reference formula designation. |
Source code in src/albert/collections/projects.py
983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 | |
get_all_reference_formulas
get_all_reference_formulas(
*,
project_id: ProjectId | None = None,
sheet_id: WorksheetId | None = None,
linked_only: bool = False,
max_items: int | None = None,
) -> Iterator[ReferenceFormula]
Get all reference formula designations, with optional filters.
Results are returned as a lazily paginated iterator.
When project_id is omitted, lists reference formula designations
tenant-wide across all accessible projects.
When project_id is provided:
* By default, returns all reference formulas on that project (both in-project
worksheet designations and cross-project linked formulas).
* If sheet_id is provided, filters to formulas designated in that specific
worksheet sheet.
* If linked_only=True, returns only cross-project linked reference formulas
(corresponding to the linked reference formulas list on the project homepage).
sheet_id and linked_only are mutually exclusive and require project_id.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project_id
|
ProjectId
|
The project ID to filter by. If omitted, lists reference formulas tenant-wide. |
None
|
sheet_id
|
WorksheetId
|
Filter designations to a specific sheet. Requires |
None
|
linked_only
|
bool
|
When |
False
|
max_items
|
int
|
Maximum number of reference formulas to yield. Defaults to |
None
|
Returns:
| Type | Description |
|---|---|
Iterator[ReferenceFormula]
|
An iterator of matching reference formula designations. |
Source code in src/albert/collections/projects.py
1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 | |
update_reference_formula_type
update_reference_formula_type(
*,
project_id: ProjectId,
inventory_id: InventoryId,
reference_formula_type: ReferenceFormulaType | str,
sheet_id: WorksheetId | None = None,
expected_type: ReferenceFormulaType | str | None = None,
) -> ReferenceFormula
Update the type designation of an existing reference formula.
Changes the designated role of a reference formula (for example, promoting a promising candidate from Leading to Final, or changing a designation).
Pass sheet_id to update an in-project worksheet designation. If sheet_id
is omitted, updates the cross-project linked designation. Note that while the
web UI requires unlinking and relinking cross-project formulas to change their
type, this SDK method supports in-place type updates for both shapes.
When expected_type is specified, the update only succeeds if the current
type on the server matches; otherwise, a 409 conflict error is raised.
Example
from albert import Albert
from albert.resources.projects import ReferenceFormulaType
client = Albert()
rf = client.projects.update_reference_formula_type(
project_id="PRO123",
sheet_id="WKS456",
inventory_id="INV123-001",
reference_formula_type=ReferenceFormulaType.LEADING,
expected_type=ReferenceFormulaType.ORIGINAL,
)
rf.reference_formula_type
# 'Leading'
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project_id
|
ProjectId
|
The project ID (format |
required |
inventory_id
|
InventoryId
|
The inventory ID of the formula (format |
required |
reference_formula_type
|
ReferenceFormulaType | str
|
The new reference formula designation. |
required |
sheet_id
|
WorksheetId
|
The sheet ID where the formula is designated. If omitted, updates the cross-project linked reference formula. |
None
|
expected_type
|
ReferenceFormulaType | str
|
The expected current type. If provided, guards against concurrent updates. |
None
|
Returns:
| Type | Description |
|---|---|
ReferenceFormula
|
The updated reference formula designation. |
Notes
The only patchable attribute on reference formulas is
referenceFormulaType.
Source code in src/albert/collections/projects.py
1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 | |
delete_reference_formula
delete_reference_formula(
*,
project_id: ProjectId,
inventory_id: InventoryId,
sheet_id: WorksheetId | None = None,
) -> None
Delete a reference formula designation from a project.
Removes the reference formula designation from the project.
For in-project formulas (when sheet_id is provided), removing the designation
unlocks the formula column in the worksheet and reverts it to a regular formula
column. For cross-project formulas (when sheet_id is omitted), unlinks the
formula from Target Overview and the project homepage.
Removing a designation does NOT delete the underlying formula inventory item or its recorded experimental results. Furthermore, unlinking a reference formula does not remove the source project's historical data from the smart dataset scope.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project_id
|
ProjectId
|
The project ID (format |
required |
inventory_id
|
InventoryId
|
The inventory ID of the formula (format |
required |
sheet_id
|
WorksheetId
|
The sheet ID where the formula is designated. If omitted, deletes the cross-project linked reference formula. |
None
|
Returns:
| Type | Description |
|---|---|
None
|
|