Skip to main content
Feedback

X-Flow-save

This extension allows you to perform save operations using your OpenAPI document.

Example

1  x-flow-save:
2 path: /users/{user_id}/playlists
3 operation: Post
4 parameters:
5 user_id: $User.UserID

Properties

PropertyDescription
pathThe path representing the relative endpoint called to perform the save operation.
operationThe HTTP method used to make the request.
parametersThe parameters included in the request. In this example, a special feature is being used where the same format of $User.UserID is used to request that the user ID passed from Flow should be mapped to the user_id required in the URL. Note: The $User referred to is the Flow system value $User.

The following parameters are supported:

1   "$user.userid" => UserId,
2 "$user.email" => Email,
3 "$user.firstname" => FirstName,
4 "$user.lastname" => UserId,
5 "$user.directoryid" => DirectoryId,
6 "$user.directoryname" => DirectoryName,
7 "$user.primarygroupid" => PrimaryGroupId,
8 "$user.primarygroupname" => PrimaryGroupName,
9 "$user.roleid" => RoleId,
10 "$user.rolename" => RoleName

The following example demonstrates where to place the x-flow-save schema extension when the request body is defined with the request.

"/users/{user_id}/playlists":
post:
operationId: endpoint-create-playlist
parameters:
- description: UserId
in: path
name: user_id
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
x-flow-type:
name: CreatePlaylistRequest
x-flow-save:
path: /users/{user_id}/playlists
operation: Post
parameters:
user_id: $User.UserID
On this Page