You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tooling.apache.org by "dave2wave (via GitHub)" <gi...@apache.org> on 2026/05/12 17:31:32 UTC

[GH] #921 - add endpoint to create/update project data (tooling-trusted-releases)

dave2wave commented on code in PR #1238:
URL: https://github.com/apache/tooling-trusted-releases/pull/1238#discussion_r3228505942


##########
atr/api/__init__.py:
##########
@@ -857,6 +857,69 @@ async def policy_update(
     ).model_dump(mode="json"), 200
 
 
+@api.typed
+@jwtoken.require
+@quart_schema.security_scheme([{"BearerAuth": []}])
+@quart_schema.validate_response(models.api.ProjectConfigResults, 200)
+async def project_config_upsert(
+    _project_config: Literal["project/config"],
+    data: models.api.ProjectConfigArgs,
+) -> DictResponse:
+    """
+    URL: POST /project/config
+
+    Upsert a project's full configuration.
+
+    Creates a project if it on by the specified key does not yet exist.
+    Otherwise, updates all specified fields for an existing project.
+    The caller must be a committee member of the specified committee,
+    and for an existing project committee_key must match the current value.

Review Comment:
   When we implement #139 we will need to share a PAT with GitBox to allow asfyaml to access this api.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org