API

System APIs

POST system/automated-flow-actions/{automatedFlowActionId}/parameters

Create parameter for an automated flow action

HTTP method POST
URI https://api.rambase.net/system/automated-flow-actions/{automatedFlowActionId}/parameters
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {automatedFlowActionId} Automated flow action identifier
Integer, minimum 100000
Successful HTTP status code 201
API resource identifier 4477, version 4

The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.

Format:
1
<AutomatedFlowActionParameter>
2
     <Title
Title

Descriptive name of the parameter

This field is optional.

>
{String}</Title>
3
     <Key
Key

Key of the parameter. The key used to reference the value when the action is executed.

This field is optional.

>
{String}</Key>
4
     <Description
Description

Description of the parameter

This field is optional.

>
{String}</Description>
5
     <Datatype
Datatype

Required/mandatory field

Datatype of the parameter.

Applicable domain values can be found here

>
{String}</Datatype>
6
     <DefaultValue
DefaultValue

Default value of the parameter

This field is optional.

>
{String}</DefaultValue>
7
     <IsOptional
IsOptional

True if the parameter is optional, meaning it is not required for the action to run

Default value: False

This field is optional.

>
{Boolean}</IsOptional>
8
     <SortIndex
SortIndex

Sort order of the parameter

Minimum value: 0

This field is optional.

>
{Integer}</SortIndex>
9
     <ValueRestrictions
ValueRestrictions

This field is optional.

>
10
          <MinimumValue
MinimumValue

Minimum allowed value of parameter. This field can only be set on datatype with a numeric type.

This field is optional.

>
{Decimal}</MinimumValue>
11
          <MaximumValue
MaximumValue

Maximum allowed value of parameter. This field can only be set on datatype with a numeric type.

This field is optional.

>
{Decimal}</MaximumValue>
12
          <DomainValueList
DomainValueList

This field is optional.

>
13
               <Object
Object

Object/archive/context of the values

This field is optional.

>
{String}</Object>
14
               <Field
Field

Fieldname of the DOV

This field is optional.

>
{String}</Field>
15
          </DomainValueList>
16
     </ValueRestrictions>
17
</AutomatedFlowActionParameter>
1
{
2
     "automatedFlowActionParameter": {
3
          "title
Title

Descriptive name of the parameter

This field is optional.

":
"{String}",
4
          "key
Key

Key of the parameter. The key used to reference the value when the action is executed.

This field is optional.

":
"{String}",
5
          "description
Description

Description of the parameter

This field is optional.

":
"{String}",
6
          "datatype
Datatype

Required/mandatory field

Datatype of the parameter.

Applicable domain values can be found here

":
"{String}",
7
          "defaultValue
DefaultValue

Default value of the parameter

This field is optional.

":
"{String}",
8
          "isOptional
IsOptional

True if the parameter is optional, meaning it is not required for the action to run

Default value: False

This field is optional.

":
"{Boolean}",
9
          "sortIndex
SortIndex

Sort order of the parameter

Minimum value: 0

This field is optional.

":
"{Integer}",
10
          "valueRestrictions
ValueRestrictions

This field is optional.

":
{
11
               "minimumValue
MinimumValue

Minimum allowed value of parameter. This field can only be set on datatype with a numeric type.

This field is optional.

":
"{Decimal}",
12
               "maximumValue
MaximumValue

Maximum allowed value of parameter. This field can only be set on datatype with a numeric type.

This field is optional.

":
"{Decimal}",
13
               "domainValueList
DomainValueList

This field is optional.

":
{
14
                    "object
Object

Object/archive/context of the values

This field is optional.

":
"{String}",
15
                    "field
Field

Fieldname of the DOV

This field is optional.

":
"{String}"
16
               }
17
          }
18
     }
19
}

The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.

$access_token String, optional After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time.
$db String, optional Set the database/company for the request
$useMinimumVersion Integer, optional Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information.
$showDomainDescriptions Boolean, optional Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false.
$lang String, optional Specifies the language used in the response, following the 3-letter ISO-639-1 [lll]

Read more about filters and sorting on how to use filter parameters and named filters.

Read more about filters and sorting on how to use sortable parameters

Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields.

Please note that some fields may be removed from the response, based on user roles/duties/permissions.

Format:
1
<AutomatedFlowActionParameter>
2
     <AutomatedFlowActionParameterId
AutomatedFlowActionParameterId

Automated flow action parameter identifier

>
{Integer}</AutomatedFlowActionParameterId>
3
     <Title
Title

Descriptive name of the parameter

>
{String}</Title>
4
     <Key
Key

Key of the parameter. The key used to reference the value when the action is executed.

>
{String}</Key>
5
     <Description
Description

Description of the parameter

>
{String}</Description>
6
     <Datatype
Datatype

Datatype of the parameter.

Possible domain values can be found here

>
{String}</Datatype>
7
     <DefaultValue
DefaultValue

Default value of the parameter

>
{String}</DefaultValue>
8
     <IsOptional
IsOptional

True if the parameter is optional, meaning it is not required for the action to run

>
{Boolean}</IsOptional>
9
     <SortIndex
SortIndex

Sort order of the parameter

>
{Integer}</SortIndex>
10
     <ValueRestrictions>
11
          <MinimumValue
MinimumValue

Minimum allowed value of parameter. This field can only be set on datatype with a numeric type.

>
{Decimal}</MinimumValue>
12
          <MaximumValue
MaximumValue

Maximum allowed value of parameter. This field can only be set on datatype with a numeric type.

>
{Decimal}</MaximumValue>
13
          <RegularExpression
RegularExpression

A regular expression used to restrict possible values for this parameter.

>
{String}</RegularExpression>
14
          <DomainValueList>
15
               <Object
Object

Object/archive/context of the values

>
{String}</Object>
16
               <Field
Field

Fieldname of the DOV

>
{String}</Field>
17
          </DomainValueList>
18
     </ValueRestrictions>
19
</AutomatedFlowActionParameter>
1
{
2
     "automatedFlowActionParameter": {
3
          "automatedFlowActionParameterId
AutomatedFlowActionParameterId

Automated flow action parameter identifier

":
"{Integer}",
4
          "title
Title

Descriptive name of the parameter

":
"{String}",
5
          "key
Key

Key of the parameter. The key used to reference the value when the action is executed.

":
"{String}",
6
          "description
Description

Description of the parameter

":
"{String}",
7
          "datatype
Datatype

Datatype of the parameter.

Possible domain values can be found here

":
"{String}",
8
          "defaultValue
DefaultValue

Default value of the parameter

":
"{String}",
9
          "isOptional
IsOptional

True if the parameter is optional, meaning it is not required for the action to run

":
"{Boolean}",
10
          "sortIndex
SortIndex

Sort order of the parameter

":
"{Integer}",
11
          "valueRestrictions": {
12
               "minimumValue
MinimumValue

Minimum allowed value of parameter. This field can only be set on datatype with a numeric type.

":
"{Decimal}",
13
               "maximumValue
MaximumValue

Maximum allowed value of parameter. This field can only be set on datatype with a numeric type.

":
"{Decimal}",
14
               "regularExpression
RegularExpression

A regular expression used to restrict possible values for this parameter.

":
"{String}",
15
               "domainValueList": {
16
                    "object
Object

Object/archive/context of the values

":
"{String}",
17
                    "field
Field

Fieldname of the DOV

":
"{String}"
18
               }
19
          }
20
     }
21
}

List of available operations/actions for this resource.
See the operations documentation for more information about API operations.

Possible error codes the response might return:

Error 105791 HTTP 400 Parameter key is required
Error 106809 HTTP 400 Parameter title is required
Error 106808 HTTP 400 Sort index has to be a positive integer
Error 105794 HTTP 400 A parameter with that name already exists
Error 106591 HTTP 400 A boolean can only have a default value of 'true' or 'false'
Error 106592 HTTP 400 A boolean can not have a minimum, maximum, domain value or regex restrictions
Error 106593 HTTP 400 A string value can not have a minimum, maximum or domain value restriction
Error 106594 HTTP 400 A number value can only have a number as default value
Error 106595 HTTP 400 A number value can not have a domain value or regex restriction
Error 106828 HTTP 400 Minimum value can not be larger than maximum value
Error 106829 HTTP 400 Default value can not me lower than minimum value
Error 106830 HTTP 400 Default value can not be larger than the maximum value
Error 106599 HTTP 400 Domain value object and field is required for parameters with datatype DOV
Error 106597 HTTP 400 A domain value can not have a minimum, maximum or regex restriction
Error 106600 HTTP 400 Default value does not exists in DOV