metaspace.projects_client¶
-
class
metaspace.projects_client.
ProjectsClient
(gql)[source]¶ -
-
add_project_external_link
(project_id, provider, link, replace_existing=False)[source]¶ Note that the current user must have the MANAGER role in the project being edited.
- Parameters:
project_id (
str
) –provider (
str
) – Must be a known 3rd party link provider name. Contact us if you’re interested in integrating with METASPACE.link (
str
) –replace_existing – pass True to overwrite existing links from the same provider
- Returns:
The updated list of external links
-
remove_project_external_link
(project_id, provider, link=None)[source]¶ Note that the current user must have the MANAGER role in the project being edited.
- Parameters:
project_id (
str
) –provider (
str
) –link (
Optional
[str
]) – If None, all links from the provider will be removed
- Returns:
The updated list of external links
-