Create extra

POST /api/v1/extras
application/json

Body

  • extra object
    Hide extra attributes Show extra attributes object
    • nama_kegiatan string Required

      Minimum length is 4, maximum length is 20.

    • predikat string Required

      Minimum length is 4, maximum length is 20.

    • mulai string Required

      Minimum length is 4, maximum length is 20.

    • berakhir string Required

      Minimum length is 4, maximum length is 20.

Responses

POST /api/v1/extras
curl \
 -X POST http://127.0.0.1:3000//api/v1/extras \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"extra":{"nama_kegiatan":"Pramuka","predikat":"Memuaskan","mulai":"2021-01-01","berakhir":"2021-10-01"}}'
Request example
{
  "extra": {
    "nama_kegiatan": "Pramuka",
    "predikat": "Memuaskan",
    "mulai": "2021-01-01",
    "berakhir": "2021-10-01"
  }
}