about.id 2 for "Voided Check"about.id 6 for "Driver’s License" and additionally adding a principal.id so that we can provide additional detail to which principal this driver's license belongs.IMPORTANT Again it is important to mention that principal.idis needed if theabout.owneris true. See our Attachment About endpoint.
Authorization: Bearer ********************[
{
"attachment": {
"id": 1916
},
"about": [2
]
},
{
"attachment": {
"id": 1915
},
"about": [6],
"principal": {
"id": 744
}
}
]curl --location --request PUT '/api/boarding-application/607/documents' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"attachment": {
"id": 1916
},
"about": [2
]
},
{
"attachment": {
"id": 1915
},
"about": [6],
"principal": {
"id": 744
}
}
]'[
{
"attachment": {
"id": 1915
},
"about": [
6
],
"principal": {
"id": 744
}
},
{
"attachment": {
"id": 1916
},
"about": [
2
],
"principal": {
"id": null
}
}
]