Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

https://docs.openproject.org/api/projects/#projects-project-create-form

cat << 'EOF' >payload.json
{
  "identifier": "new_project_identifier",
  "name": "New project name",
  "customField35": "Text custom field value"
}
EOF
cat << 'EOF' >op_project_create.sh
#!/bin/bash

API_KEY=asfaseq4e134356ewfgdg
URL=https://domain/prefix
JSONFILE=payload.json
API=/api/v3/projects
curl -u apikey:$API_KEY $URL/$API -d @$JSONFILE --header "Content-Type: application/json"
EOF
chmod +x op_project_create.sh
./op_project_create.sh
  • No labels