Rekamedika Docs
SDM Jadwal Jaga

sdmJadwalJaga.update

POST
/trpc/sdmJadwalJaga.update

Tenant-scoped tRPC mutation sdmJadwalJaga.update. Requires a verified session cookie or an OAuth Bearer token; OAuth callers additionally need the simrs:write scope. Mutations are RBAC-gated server-side (requireRoles) — a broad scope never widens the user's roles.

Authorization

AuthorizationBearer <token>

OAuth 2.0 / OIDC issued by the API itself (better-auth oidcProvider). Dynamic client registration per RFC 7591 at /api/auth/oauth2/register.

In: header

Scope: simrs:write

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

pegawai*string
Length1 <= length
unit*string
Length1 <= length
mulai*string
Match^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})
shift*string

Value in

  • "pagi"
  • "siang"
  • "malam"
  • "oncall"
jamSelesai?string
Match^\d{2}:\d{2}$
id*string
Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/trpc/sdmJadwalJaga.update" \  -H "Content-Type: application/json" \  -d '{    "pegawai": "string",    "unit": "string",    "mulai": "string",    "shift": "pagi",    "id": "string"  }'
{  "result": {    "data": null  }}
{  "error": {    "message": "string",    "code": 0,    "data": {      "code": "string",      "httpStatus": 0,      "path": "string"    }  }}
{  "error": {    "message": "string",    "code": 0,    "data": {      "code": "string",      "httpStatus": 0,      "path": "string"    }  }}
{  "error": {    "message": "string",    "code": 0,    "data": {      "code": "string",      "httpStatus": 0,      "path": "string"    }  }}
{  "error": {    "message": "string",    "code": 0,    "data": {      "code": "string",      "httpStatus": 0,      "path": "string"    }  }}

Is this page helpful?