Required field can be ignored via the API?

Answered

Comments

2 comments

  • Casper Fabricius

    Yes, that is correct. The API will not automatically select the first value in a required category field. It allows required fields to be left blank.

    0
    Comment actions Permalink
  • Solutions

    Following on from this, I'm finding that when creating items using the PHP API 4.0.1 (PodioItem::create) with app authentication, new items are created even if values are not specified for required RELATIONSHIP fields. Is this also expected behavior? Where is the documentation for how each field type behaves from the API when set required?

    Required relationship fields are still respected in the following situations:
    -New items created in the Podio workspace
    -Editing items created in the Podio workspace do not allow all relationships to be removed
    -Editing items correctly created from the API with a relationship, also do not allow all relationships to be removed

    However, editing items incorrectly created from the API with no relationship, other fields can be edited and the relationship field without any value.

    Chris

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk