/config/{app}/flows/{flow}/copy

Creates a new flow by copying an existing flow. The name attribute in the request specifies the name of the new flow. This endpoint cannot be used to overwrite an existing flow.

This endpoint includes the following methods:

  • GET


GET

Authentication

This endpoint supports Basic authentication. 

How to Create an Authentication String

Base URL

The base URL for this endpoint is your Janrain Configuration API domain followed by /config/ followed by your application ID. For example, if you are in the US region and your application ID is htb8fuhxnf8e38jrzub3c7pfrr, then your base URL would be:


https://v1.api.us.janrain.com/config/htb8fuhxnf8e38jrzub3c7pfrr

Allowed regions are:

  • us 
  • eu 
  • au 
  • sa 
  • cn
  • sg

Request Example (application/json)


{
  "name": "myCoolFlow"
}                                                            

Sample Request (curl)

This command copies the standard flow associated with the application htb8fuhxnf8e38jrzub3c7pfrr, and creates a new flow named documentation:


curl -X POST \
  https://v1.api.us.janrain.com/config/htb8fuhxnf8e38jrzub3c7pfrr/flows/standard/copy \
  -H 'Authorization: Basic aW1fYV...NfbXk=' \
  -H 'Content-Type: application/json' \
  -d '{
	"name": "documentation"
}'

      Running this command in Postman

Responses

201 Created

Successfully created a new flow.

Response Headers

Location string

The location of the newly-created flow.

Example: Location: /config/v86cchggr5cdvbfh7ydk8s63zz/flows/myCoolFlow

Response Example (application/json)


{
  "_self": "/config/v86cchggr5cdvbfh7ydk8s63zz/flows/myCoolFlow",
  "name": "myCoolFlow",
  "version": "2015111705580676795"
}
                                                            

404 Not Found

Capture application could not be found. Please check the value and try again.

Response Example (application/json)


{
  "errors": "Flow not found."
}