Execute version action
Run an action (for example check-out/check-in) against a document version.
HTTP request
PATCH /api/now/v1/documents/action/{action}/document/{documentSysId}/version/{versionSysId}
Path parameters
| Name | Description |
|---|---|
action | Action |
documentSysId | Document sys_id |
versionSysId | Version sys_id |
Query parameters
None.
Request body
Don't supply a request body for this method.
Response
No response body — a nil error means the action ran.
Example
if err := client.Now().Documents().Action("checkout").Document("{documentSysID}").Version("{versionSysID}").Patch(ctx, nil); err != nil {
log.Fatal(err)
}