Skip to main content
Version: main

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

NameDescription
actionAction
documentSysIdDocument sys_id
versionSysIdVersion 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)
}
Was this page helpful?