Repository navigation
Unable to POST */repositories endpoint #6433
Unanswered
Condoamanti
asked this question in
Q&A
Replies: 1 comment
|
Hey @Condoamanti, the response you see in API call 1 is due to the fact, that the endpoint must be I'm not very familiar with PowerShell, but I think the JSON you pass in the body may be wrong. I believe it's the last comma in your body, e.g. there should not be a comma before the closing curly brace. Consider the following example using curl -XPOST -d '{"repo": "https://github.com/argoproj/argocd-example-apps", "enableLfs": true}' --header "Authorization: Bearer <token>" https://argo-cd-api/api/v1/repositories?upsert=1 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello Everyone,
Looking for some input in relation to an API call to create a repository/application for projects. Currently using GitLabCI for CI/CD, but like the argoCD visual of objects, and ease of comparing if needed.
Was going to do a call from GitLab to create the objects in argoCD, however im getting an odd response as seen on API RESPONSE 1.
If I edit the endpoint uri and remove
/?upsert=falsethen I get the below response at API RESPONSE 2... Seems broke...UPDATE <SCRUBBED> AS REQUIRED
API CALL:
API RESPONSE 1
API RESPONSE 2
All reactions