Start a build with the API - "Project not found or access denied."

adrian.iftode's Avatar

adrian.iftode

17 Apr, 2024 02:40 PM

Basically:

 curl -H "Content-type: application/json" -H "Authorization: Bearer XXXX"-d '{"accountName": "adrianiftode", "projectSlug": "fluentassertions-web", "branch": "fixes/explicitely-reference-newtonsoft-in-sample-projects"}' https://ci.appveyor.com/api/builds

responds with {"message":"Project not found or access denied."}

However

 curl https://ci.appveyor.com/api/projects/adrianiftode/fluentassertions-web
  -H "Authorization: Bearer XXX"

looks fine

Is there an issue with the endpoint?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac