NFManagment cannot create subscription

Hello,
I am working on a project that involves calling Free5G’s SBI APIs. More specifically, I am dealing with the Nnrf_NFManagement interface.

When creating HTTP requests I follow Free5GC’s own specifications (https://github.com/free5gc/Nnrf_NFManagement/blob/a680e6aa89ea3b8b7e266b892b05710fddf37581/api/openapi.yaml#L1769-L1771).

The specification requires at least two parameters, nfStatusNotificationUri and subscriptionId - both of type string. Although these parameters are present in the request body, a 400 bad request is still returned.

request: POST /nnrf-nfm/v1/subscriptions

{
    "subscriptionId": "29194d67-23e0-3200-c226-48c24c97dfdc",
    "nfStatusNotificationUri": "somestring"
}

response:

{
    "status": 400,
    "cause": "CREATE_SUBSCRIPTION_ERROR"
}

I wonder what parameters are missing / what’s wrong with the request.

Thanks for your help and greetings,
Chris

Hi @c7h

Your request is the answer that you should be expecting from the NRF.

The request should look like this:

{
  "nfStatusNotificationUri": "string",
  "validityTime": "2022-02-04T21:39:14.855Z",
  "reqNotifEvents": [
    "NF_REGISTERED",
    "string"
  ],
  "plmnId": {
    "mcc": "string",
    "mnc": "string"
  },
  "notifCondition": {
    "monitoredAttributes": [
      "string"
    ],
    "unmonitoredAttributes": [
      "string"
    ]
  },
  "reqNfFqdn": "string",
  "reqSnssais": [
    {
      "sst": 0,
      "sd": "string"
    }
  ]
}

You can check it more in detail here: Swagger UI