Skip to main content
← Data, API & Backend
Data, API & Backend Solved February 18, 2024 · 14 replies

problem with patch a photo

Archived from the Bravo community forum (2021–2026). Some answers may refer to older versions of Bravo.

Hello I am trying to make a system where my students can change theyr profile photo with a patch request but every time give me an error how can I resolve that ??? here is a screenshot of the error

14 replies

Stéphan February 19, 2024

To better understand the reason for the issue, you can refer to status code 422 in the documentation.

Could you please show us the JSON used for the POST and PATCH requests?

andrea February 20, 2024

@Stéphan N'GUISSAN

{

"records": [

{

"id": "${recordsid}",

"fields": {

"foto studente": [

{

"url": "${fotostudenteurl}"

}

]

}

}

]

}

Marielle Ibias Bravo team February 21, 2024

@andrea Borrelli please share more details to us. a screenshot of the debugger from Bravo Vision or from the API request.

andrea February 21, 2024

@Marielle Ibias hy here is a picture that explain what happen everything I upload a picture from my iPhone

andrea February 21, 2024

@Marielle Ibias THIS IS THE JSON BODY

{

"records": [

{

"id": "${recordsid}",

"fields": {

"foto studente": [

{

"url": "${fotostudenteurl}"

}

]

}

}

]

}

Marielle Ibias Bravo team February 22, 2024

@andrea Borrelli have you checked if the variables names in the “Selected data” in the api requests, match with the other variable names in other requests?

Please check this guide as reference: Variables

andrea February 24, 2024

@Marielle Ibias Hi Marielle thank you for all the help everything now is fine 👍👍👍👍👍

Marielle Ibias Bravo team February 26, 2024

@andrea Borrelli Nice to hear! How did you solve it? Please feel free to share to help other users understand :) Thank you!

andrea February 27, 2024

@Marielle Ibias I just change the name the variable name ……..so I checked that the variables was exactly the same name :)))))))

Wrote something in this thread and want it removed? Request removal

Still stuck?

Ask the community on Discord

This archive is read-only. New questions, office hours and product updates now happen in the Bravo Discord.

Join the Discord