Update Format Surat

To edit the data in the specified collection with the specified id or parameters. When a JSON object is saved, the object properties are automatically added to the collection you specified.

Method : POST

URL : /surat/format/(ID)?_method=PUT

Body : Form Data

FieldTypeRequired
kodeString✔️
nama_suratString✔️
pemohonString✔️
format_fileFile/RTF✔️
format_field[]String✔️
format_field[]String✔️
requirement[]String✔️
requirement[]String✔️
perangkat_idString✔️

Response : 200 OK

{
"message": "Success Update Format",
"status": 201
}

Response : 422 UNPROCESSABLE CONTENT

{
"error": {
"kode": ["The kode field is required."],
"nama_surat": ["The nama surat field is required."],
"pemohon": ["The pemohon field is required."],
"format_file": ["The format file field is required."],
"format_field": ["The format field field is required."],
"requirement": ["The requirement field is required."],
"perangkat_id": ["The perangkat id field is required."]
}
}

Response : 404 NOT FOUND

Not Found

Response : 500 ERROR

Internal Server Error