System APIs
Creates a new Api Operation
HTTP method | POST |
URI | https://api.rambase.net/system/api/api-operations |
Supported formats | Xml, Html, Json (ex. $format=json) |
Successful HTTP status code | 201 |
API resource identifier | 1698, version 14 |
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.
Name
Required/mandatory field
Name of the Api Operation
>{String}</Name>Description
Description of the Api Operation
This field is optional.
>{String}</Description>Program
Required/mandatory field
Program (COS/RES) of this operation. Using RES requires that the operation is explicitly defined as a resource. ProgramNumber should match the resource number of the explicitly defined resource.
>{String}</Program>ProgramId
If Program is COS, then this number is a COS. If Program is RES, then this number is the explicitly defined operation resource.
This field is optional.
>{Integer}</ProgramId>Namespace
Namespace of the Api Operation
This field is optional.
>{String}</Namespace>MutexDefinition
The mutual exclusion (mutex) definition/formula. Can contain unexpanded parameters.
This field is optional.
>{String}</MutexDefinition>Permission
This field is optional.
>PermissionId
Permission identifier
This field is optional.
>{Integer}</PermissionId>AccessStatements
This field is optional.
>AccessStatement
This field is optional.
>LineNumber
Line number of access statement
This field is optional.
>{Integer}</LineNumber>StatementType
Statement type of the access statement (ex. IF, THROW, AND, OR)
This field is optional.
>{String}</StatementType>FieldSource
Source of field (ex. DOC, SYS)
This field is optional.
>{String}</FieldSource>Field
Value of field (ex. DOC, PID )
This field is optional.
>{String}</Field>Operator
Operator of comparison (ex. EQ, NE, LT, GE)
This field is optional.
>{String}</Operator>ValueSource
Source of value (ex. DOC, SYS, blank)
This field is optional.
>{String}</ValueSource>Value
Value to compare with. If ValueSource is given, Value can be field of source (ex. PID, DOCTYPE)
This field is optional.
>{String}</Value>ParentLineNumber
Reference to parent statement identified with LineNumber
This field is optional.
>{Integer}</ParentLineNumber>Name
Required/mandatory field
Name of the Api Operation
": "{String}",Description
Description of the Api Operation
This field is optional.
": "{String}",Program
Required/mandatory field
Program (COS/RES) of this operation. Using RES requires that the operation is explicitly defined as a resource. ProgramNumber should match the resource number of the explicitly defined resource.
": "{String}",ProgramId
If Program is COS, then this number is a COS. If Program is RES, then this number is the explicitly defined operation resource.
This field is optional.
": "{Integer}",Namespace
Namespace of the Api Operation
This field is optional.
": "{String}",MutexDefinition
The mutual exclusion (mutex) definition/formula. Can contain unexpanded parameters.
This field is optional.
": "{String}",Permission
This field is optional.
": {PermissionId
Permission identifier
This field is optional.
": "{Integer}"AccessStatements
This field is optional.
": [LineNumber
Line number of access statement
This field is optional.
": "{Integer}",StatementType
Statement type of the access statement (ex. IF, THROW, AND, OR)
This field is optional.
": "{String}",FieldSource
Source of field (ex. DOC, SYS)
This field is optional.
": "{String}",Field
Value of field (ex. DOC, PID )
This field is optional.
": "{String}",Operator
Operator of comparison (ex. EQ, NE, LT, GE)
This field is optional.
": "{String}",ValueSource
Source of value (ex. DOC, SYS, blank)
This field is optional.
": "{String}",Value
Value to compare with. If ValueSource is given, Value can be field of source (ex. PID, DOCTYPE)
This field is optional.
": "{String}",ParentLineNumber
Reference to parent statement identified with LineNumber
This field is optional.
": "{Integer}"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. |
$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.
ApiOperationId
Api operation identifiers
>{Integer}</ApiOperationId>ApiOperationId
Api operation identifiers
": "{Integer}"
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 101015 HTTP 404 | Permission not found |
Error 101420 HTTP 404 | Setting definition not found |
Error 100428 HTTP 400 | The operator is not valid: {0} |
Error 100427 HTTP 400 | ParentLineNumber not found: {0} |