Top Menu

Jump to content
    Global modules

    Global modules

    • Home
    • Projects
    • Activity
    • Work packages
    • Gantt charts
    • Calendars
    • Team planners
    • Boards
    • News
    Home
    Home
Help
    Getting started
    • Introduction video
  • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support
  • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation

User menu

Sign in
Forgot your password?

or sign in with your existing account

OpenProject ID Google

Side Menu

Collapse project menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Expand project menu
Development
  1. OpenProject Community
  2. OpenProject
  3. Forums
  4. Development
  5. Problem create work package with custom field - apiv3

Problem create work package with custom field - apiv3

Added by Tony Dietrich about 7 years ago

I try to create a work package via APIv3. I have configured a simple tracker: only a custom field and the subject. The custom field is required. Field definition from schemas request:

"customField4":    {
      "type": "String",
      "name": "Instanz",
      "required": true,
      "hasDefault": false,
      "writable": true,
      "visibility": "default",
      "maxLength": 1024
   },

The content of the post request is:

{
"customField4":"Test",
"subject":"Test"
}

I get allways this response:

{"_type":"Error","errorIdentifier":"urn:openproject-org:api:v3:errors:PropertyConstraintViolation","message":"Instanz muss ausgefüllt werden.","_embedded":{"details":{"attribute":"customField4"}}}

Loading...