3.3.1. Create flow


POST /buckets/{bucketId}/flows

Description

Creates a flow in the given bucket. The flow id is created by the server and populated in the returned entity.

Parameters

Type Name Description Schema

Path

bucketId required

The bucket identifier

string

Body

body required

The details of the flow to create.

VersionedFlow

Responses

HTTP Code Description Schema

200

successful operation

VersionedFlow

400

NiFi Registry was unable to complete the request because it was invalid. The request should not be retried without modification.

No Content

401

Client could not be authenticated.

No Content

403

Client is not authorized to make this request.

No Content

404

The specified resource could not be found.

No Content

409

NiFi Registry was unable to complete the request because it assumes a server state that is not valid.

No Content

Consumes

  • application/json

Produces

  • application/json

Security

Type Name

apiKey

Authorization

Example HTTP request

Request path


/buckets/string/flows
      

Request body

{
  "link" : {
    "href" : "string",
    "params" : {
      "string" : "string"
    }
  },
  "identifier" : "string",
  "name" : "string",
  "description" : "string",
  "bucketIdentifier" : "string",
  "bucketName" : "string",
  "createdTimestamp" : 0,
  "modifiedTimestamp" : 0,
  "type" : "string",
  "permissions" : {
    "canRead" : true,
    "canWrite" : true,
    "canDelete" : true
  },
  "versionCount" : 0,
  "revision" : {
    "clientId" : "string",
    "version" : 0,
    "lastModifier" : "string"
  }
}

Example HTTP response

Response 200


         {
  "link" : {
    "href" : "string",
    "params" : {
      "string" : "string"
    }
  },
  "identifier" : "string",
  "name" : "string",
  "description" : "string",
  "bucketIdentifier" : "string",
  "bucketName" : "string",
  "createdTimestamp" : 0,
  "modifiedTimestamp" : 0,
  "type" : "string",
  "permissions" : {
    "canRead" : true,
    "canWrite" : true,
    "canDelete" : true
  },
  "versionCount" : 0,
  "revision" : {
    "clientId" : "string",
    "version" : 0,
    "lastModifier" : "string"
  }
}