Generate API_KEY in OpenProject and copy information.
https://docs.openproject.org/api/work-packages/
This assumes creating a task under PROJECT "TEST" with results like so:
cat << 'EOF' >payload.json { "subject":"My subject", "description": { "format": "textile", "raw": "My raw @textile@ formatted description. _Bye guys!_" }, "_links": { "type": {"href":"/api/v3/types/1"}, "status":{"href":"/api/v3/statuses/1"}, "priority":{"href":"/api/v3/priorities/8"} } } EOF
cat << 'EOF' >op_wp_create.sh #!/bin/bash API_KEY=asfaseq4e134356ewfgdg URL=https://domain/prefix JSONFILE=payload.json PROJECTID=4 curl -u apikey:$API_KEY $URL/api/v3/projects/$PROJECTID/work_packages -d @$JSONFILE --header "Content-Type: application/json" EOF chmod +x op_wp_create.sh ./op_wp_create.sh
Note:
Find PROJECTID via
/api/v3/projects