MCPcopy
hub / github.com/directus/directus / createFlow

Function createFlow

sdk/src/rest/commands/create/flows.ts:40–49  ·  view source on GitHub ↗
(
		item: NestedPartial<DirectusFlow<Schema>>,
		query?: TQuery,
	)

Source from the content-addressed store, hash-verified

38 */
39export const createFlow =
40 <Schema, TQuery extends Query<Schema, DirectusFlow<Schema>>>(
41 item: NestedPartial<DirectusFlow<Schema>>,
42 query?: TQuery,
43 ): RestCommand<CreateFlowOutput<Schema, TQuery>, Schema> =>
44 () => ({
45 path: `/flows`,
46 params: query ?? {},
47 body: JSON.stringify(item),
48 method: 'POST',
49 });

Callers 3

sync.sb.test.tsFile · 0.90
webhook.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected