Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #6236

Closed
Open
Created Feb 03, 2014 by Administrator@rootOwner

API create user returns not found

Created by: gaspa

Hi, I'm trying to use the /api/v3/users url to create users, but it returns: Status code: 404 and body: {"message":"404 Not Found"}

The call is done through python-gitlab and curl, both of them returns the same. Example fo the curl call: curl -X POST --data 'username=gaspa&password=pippo&email=[email protected]&name=Andrea%20Gasparini' --header "PRIVATE-TOKEN: my_private_token" "http://host/api/v3/users" {"message":"404 Not Found"}

(Yes, I'm using an admin account.)

Note that a GET on the same URL works fine $ curl --header "PRIVATE-TOKEN: my_private_token" "http://host/api/v3/users" 2 [{"id":1,"username":"root","email":"[email protected]","name":"Administrator","bio":null,"skype":"","l inkedin":"","twitter":"","theme_id":2,"color_scheme_id":1,"state":"active","created_at":"2014-02-02T2 2:19:03.741Z","extern_uid":null,"provider":null,"is_admin":true,"can_create_group":true,"can_create_p roject":true}]

Assignee
Assign to
Time tracking