Create new process

Description

Creates a new process

Endpoint

/path/process

Method

POST

Access Level Rules

Minimum Access Level

edit+ on parent folder or account holder in root.

Processing Units

Processing units

1

Parameters

NameDescriptionRequiredDefault

name

The name of the new process.

true

process

A JSON with properties "parametersExample", "parametersDescription", "gitUrl" and "gitFile". "parametersExample" should be an array with example parameters for the gitFile. "parametersDescription" should be an array of strings describing the content of the parameters of the gitFile. "gitUrl" should be a string with the url of the git to run. "gitFile" should be the file to run as a process.

true

parentId

The id of the parent folder of the new path.

If omitted the new path is placed in your myDrive root.

false

Default null.

publicAccess

Public access object with properties "hidden" and "accessTier" "accessTier" must be between "none" and "edit" and "hidden" must be a boolean.

false

Default {accessTier:"none", hidden:true}.

metadata

A JSON with property "description" with the description of the file.

false

Default null.

Example request:

{
  name: 'test process',
  metadata: { description: 'test description' },
  publicAccess: {hidden:true, accessTier:'view'},
  process: {
    parametersExample: [5, 2],
    parametersDescripption: ["first number to multiply", "second number to multiply"],
    gitUrl: "https://github.com/multiplier/multiplication",
    gitFile: "multiply.py",
  },
};

Last updated