Discussions

Ask a Question
Back to All

Multiple files of the same category when creating application via /v1/recruiting/applications

Hello,
I'm getting a report from the recruiting team they can only see one file from the category other.

The applications are created with a request body of:

{
  "job_position_id": "123456",
  "recruiting_channel_id": 123,
  "first_name": "First name",
  "last_name": "Last name",
  "email": "[email protected]",
  "files": [
    {
      "extension": "txt",
      "mimetype": "text/plain",
      "original_filename": "CV.txt",
      "uuid": "f250383e-2945-41b4-b79c-a8456a8454fd",
      "size": 105,
      "category": "cv"
    },
    {
      "extension": "png",
      "mimetype": "image/png",
      "original_filename": "some-image.png",
      "uuid": "21847740-6488-4f5d-b6cd-ec874c306ebf",
      "size": 129343,
      "category": "other"
    },
    {
      "extension": "png",
      "mimetype": "image/png",
      "original_filename": "some-other-image.png",
      "uuid": "5085bed1-ffcc-46b2-a2c8-22772ccc2b9d",
      "size": 58609,
      "category": "other"
    },
    {
      "extension": "png",
      "mimetype": "image/png",
      "original_filename": "a-third-image.png",
      "uuid": "50623574-8ffa-4d3d-843b-d22c48517dfc",
      "size": 15489,
      "category": "other"
    }
  ],
  "attributes": [
    { "id": "gender", "value": "male" }
  ]
}

According to the recruiters the only file of category other which shows up in the Personio UI is a-third-image.png, so the last one in the list.

When using the request builder from https://developer.personio.de/reference/post_v1-recruiting-applications to provide multiple other files, your documentation suggests the following payload:

{
     "files": [
          {
               "uuid": "abc",
               "original_filename": "abc.jpg",
               "category": "other"
          },
          {
               "uuid": "cba",
               "original_filename": "cba.jpg",
               "category": "other"
          }
     ]
}

I don't see how the request could be faulty especially since the application is created and a 201 is returned from the endpoint.

Thanks in advance for any hint on what could be going wrong!