The rules area has 2 methods on the client. Each takes one object of path, query and body arguments and an optional CallOptions, and returns a promise of the response body. A refused call rejects with OverlaneApiError (see the SDK index).
rulesGet
The rules text the project’s task payloads use
- Request:
GETon/v1/tenants/{tenantId}/projects/{projectId}/rules
rulesGet(args: { tenantId: string; projectId: string }, options?: CallOptions): Promise<ProjectRules>rulesPut
Set the rules text the project’s task payloads use (the text of the rules source file)
- Request:
PUTon/v1/tenants/{tenantId}/projects/{projectId}/rules
rulesPut(args: { tenantId: string; projectId: string; body: SetRulesRequest }, options?: CallOptions): Promise<ProjectRules>