Skip to content

REST API - "Get Project" only works on public projects #740

@Christopher-Hayes

Description

@Christopher-Hayes

Description

I noticed a quirk with the newly documented /api/projects/:id (Projects - Get project) REST API endpoint.

  1. It returns a 401 if you use any kind of authentication, even on public projects.
  2. It works on public projects if you omit the Authorization header.

Which means—you can never use this endpoint on private projects since it 401s if you try to use authentication.

The 401 response when you include authentication is: { "error": "Token does not have required scope" }. That response shows regardless of whether you have access to the private project or not.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions