Skip to content

Problem: POST /repositories returns a 404 Not Found error #3680

@Tealk

Description

@Tealk

Issue

I am unable to create repositories via the API, as I consistently encounter a 404 error; however, retrieving the repositories functions correctly.

curl -i -X 'POST' \
  'http://raw.githubusercontent.com/api/project/1/repositories' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer xxx' \
  -d '{
  "name": "TestRepo",
  "project_id": 1,
  "git_url": "https://git.rollenspiel.monster/ansible-playbooks/test.git",
  "git_branch": "main",
  "ssh_key_id": 0
}'
HTTP/2 404 
server: nginx
date: Sun, 01 Mar 2026 20:38:07 GMT
content-type: application/json
content-length: 0

Originally posted by @Tealk in #3675

Impact

Other

Installation method

Package

Database

Postgres

Browser

Firefox

Semaphore Version

2.17.15-5a3c68a-1772230846

Ansible Version

Logs & errors

No response

Manual installation - system information

Linux ansible 6.12.57+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.57-1 (2025-11-05) x86_64 GNU/Linux

Configuration

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions