Damien TEMPLER
·PS at Memority

Federation APIs usage

Resolved

Hi,

I have a few questions regarding Federation APIs.

I know that if I want to push a new version, I must fill the nextVersion tag.

Do I need to add ALL attributes within newVersion, or can I just add the one I want to update?

e.g.: the segment below instead of a whole nextVersion content (with attributes, authenticationLevel, configuration, etc.)?

"nextVersion": {
        "description": "activated Access Control",
        "accessControlEnabled": true
    },

Federation
2 replies
Best reply by Yanis MILLIER

Hi Damien !
Unfortunately, you'll need to set all the attributes for your next version in order for it to be processed.
Otherwise you'll have an error as follow :

{
  "@type": "validation",
  "errorId": "KIT-6000000E",
  "label": "VALIDATION_ERROR",
  "description": "There were validation errors while processing the request content.",
  "validation": {
    "resourceType": "Federation",
    "resourceId": "APP_BBB00001",
    "errors": [
      {
        "property": "nextVersion.configuration",
        "messageText": "must not be null",
        "message": {
          "key": "javax.validation.constraints.NotNull.message",
          "args": {
            "groups": [],
            "validatedValue": null,
            "message": "{javax.validation.constraints.NotNull.message}",
            "payload": []
          }
        },
        "constraint": "javax.validation.constraints.NotNull"
      }
    ]
  }
}

Hope this helps !

Regards,

View original