SmartOnboard API - add new attachments property to activity assignment

Description

SmartOnboard API endpoint to get all activity assignment attachments exposes additional property attachments that is ment to replace old attachmentIds in the future.
Attachment structure aligned with candidate attachments

Example of the response:

{
  "attachmentIds": ["17c206e1-01d6-4738-83ca-e6d5f7614382"],
  "attachments": [
    {
      "id": "17c206e1-01d6-4738-83ca-e6d5f7614382",
      "name": "SR Service Mapping - Service Blueprint Final (1).jpg",
      "contentType": "image/jpeg",
      "actions": {
        "download": {
          "url": "https://api.smartrecruiters.com/smartonboard-api/v202205/activity-assignments/b73755a6-298e-4a62-bba2-737efe8a8f78/attachments/17c206e1-01d6-4738-83ca-e6d5f7614382",
          "method": "GET"
        }
      }
    }
  ]
}

Impact

The new property attachments allows users to get file details attached to activity assignments like file name, content type or URL to download attachment.

References