Create Format Surat

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

Method : POST

URL : /surat/format

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 Create 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 : 500 ERROR

Internal Server Error