API

System APIs

PUT system/api/api-operations/{operationId}

Store api operation details for provided identifier

HTTP method PUT
URI https://api.rambase.net/system/api/api-operations/{operationId}
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {operationId} Api operation identifiers
Integer, minimum 100000
Successful HTTP status code 202
API resource identifier 1699, 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.

Format:
1
<ApiOperation
ApiOperation

This field is optional.

>
2
     <Status
Status

Status of the Api Operation

This field is optional.

>
{String}</Status>
3
     <Name
Name

Name of the Api Operation

This field is optional.

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

Description of the Api Operation

This field is optional.

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

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.

This field is optional.

>
{String}</Program>
6
     <ProgramId
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>
7
     <Namespace
Namespace

Namespace of the Api Operation

This field is optional.

>
{String}</Namespace>
8
     <MutexDefinition
MutexDefinition

The mutual exclusion (mutex) definition/formula. Can contain unexpanded parameters.

This field is optional.

>
{String}</MutexDefinition>
9
     <Permission
Permission

This field is optional.

>
10
          <PermissionId
PermissionId

Permission identifier

This field is optional.

>
{Integer}</PermissionId>
11
     </Permission>
12
     <AccessStatements
AccessStatements

This field is optional.

>
13
          <AccessStatement
AccessStatement

This field is optional.

>
14
               <LineNumber
LineNumber

Line number of access statement

This field is optional.

>
{Integer}</LineNumber>
15
               <StatementType
StatementType

Statement type of the access statement (ex. IF, THROW, AND, OR)

This field is optional.

>
{String}</StatementType>
16
               <FieldSource
FieldSource

Source of field (ex. DOC, SYS)

This field is optional.

>
{String}</FieldSource>
17
               <Field
Field

Value of field (ex. DOC, PID )

This field is optional.

>
{String}</Field>
18
               <Operator
Operator

Operator of comparison (ex. EQ, NE, LT, GE)

This field is optional.

>
{String}</Operator>
19
               <ValueSource
ValueSource

Source of value (ex. DOC, SYS, blank)

This field is optional.

>
{String}</ValueSource>
20
               <Value
Value

Value to compare with. If ValueSource is given, Value can be field of source (ex. PID, DOCTYPE)

This field is optional.

>
{String}</Value>
21
               <ParentLineNumber
ParentLineNumber

Reference to parent statement identified with LineNumber

This field is optional.

>
{Integer}</ParentLineNumber>
22
          </AccessStatement>
23
     </AccessStatements>
24
</ApiOperation>
1
{
2
     "apiOperation
ApiOperation

This field is optional.

":
{
3
          "status
Status

Status of the Api Operation

This field is optional.

":
"{String}",
4
          "name
Name

Name of the Api Operation

This field is optional.

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

Description of the Api Operation

This field is optional.

":
"{String}",
6
          "program
Program

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.

This field is optional.

":
"{String}",
7
          "programId
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}",
8
          "namespace
Namespace

Namespace of the Api Operation

This field is optional.

":
"{String}",
9
          "mutexDefinition
MutexDefinition

The mutual exclusion (mutex) definition/formula. Can contain unexpanded parameters.

This field is optional.

":
"{String}",
10
          "permission
Permission

This field is optional.

":
{
11
               "permissionId
PermissionId

Permission identifier

This field is optional.

":
"{Integer}"
12
          },
13
          "accessStatements
AccessStatements

This field is optional.

":
[
14
               {
15
                    "lineNumber
LineNumber

Line number of access statement

This field is optional.

":
"{Integer}",
16
                    "statementType
StatementType

Statement type of the access statement (ex. IF, THROW, AND, OR)

This field is optional.

":
"{String}",
17
                    "fieldSource
FieldSource

Source of field (ex. DOC, SYS)

This field is optional.

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

Value of field (ex. DOC, PID )

This field is optional.

":
"{String}",
19
                    "operator
Operator

Operator of comparison (ex. EQ, NE, LT, GE)

This field is optional.

":
"{String}",
20
                    "valueSource
ValueSource

Source of value (ex. DOC, SYS, blank)

This field is optional.

":
"{String}",
21
                    "value
Value

Value to compare with. If ValueSource is given, Value can be field of source (ex. PID, DOCTYPE)

This field is optional.

":
"{String}",
22
                    "parentLineNumber
ParentLineNumber

Reference to parent statement identified with LineNumber

This field is optional.

":
"{Integer}"
23
               }
24
          ]
25
     }
26
}

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.

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. Fields colored in grey is expandable fields.

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

Format:
1
1

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 100429 HTTP 400 Invalid statement type: {0}
Error 100436 HTTP 400 Invalid access statements
Error 100428 HTTP 400 The operator is not valid: {0}
Error 100427 HTTP 400 ParentLineNumber not found: {0}