Write a script source (admin)
Parses the JavaScript without executing it, writes the file and commits it.
/api/objects/{name}/scripts/{kind}Parses the JavaScript without executing it, writes the file and commits it.
Authorization
bearerAuth API key present in auth.source (or resolved by an AuthResolver).
In: header
Path Parameters
Object name from objects/<name>/schema.json.
Script kind.
Value in
- "server"
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/objects/string/scripts/server" \ -H "Content-Type: application/json" \ -d '{ "source": "string" }'{ "ok": true, "committed": true, "version": "string"}Read a script source GET
`server` requires a role listed in `adapters.rest.adminRoles`.
Workflow status for a record GET
Returns the record's workflow instance state, current node, the actions available to the caller, and the caller's open workitems. Requires the object to declare `objects/<name>/workflow.json` (otherwise `404`).