API

System APIs

POST system/applications/{applicationId}/versions/{applicationVersionId}/api-resource-dependencies

Adds an API resource dependency

HTTP method POST
URI https://api.rambase.net/system/applications/{applicationId}/versions/{applicationVersionId}/api-resource-dependencies
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {applicationId} Application Identifier
Integer, minimum 100000
- URI parameter {applicationVersionId} Unique identifier for an application version
Integer, minimum 1
Successful HTTP status code 201
API resource identifier 3578, version 1

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
<APIResourceDependency>
2
     <Verb
Verb

Required/mandatory field

Verb of the API resource

Input must match the following regular expression pattern: ^(GET|PUT|POST|DELETE){1}$

>
{String}</Verb>
3
     <Uri
Uri

Required/mandatory field

API resource URI

>
{String}</Uri>
4
     <APIResource>
5
          <APIResourceId
APIResourceId

Required/mandatory field

API resource identifier

Minimum value: 1

>
{Integer}</APIResourceId>
6
     </APIResource>
7
</APIResourceDependency>
1
{
2
     "aPIResourceDependency": {
3
          "verb
Verb

Required/mandatory field

Verb of the API resource

Input must match the following regular expression pattern: ^(GET|PUT|POST|DELETE){1}$

":
"{String}",
4
          "uri
Uri

Required/mandatory field

API resource URI

":
"{String}",
5
          "aPIResource": {
6
               "aPIResourceId
APIResourceId

Required/mandatory field

API resource identifier

Minimum value: 1

":
"{Integer}"
7
          }
8
     }
9
}

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.

Format:
1
<APIResourceDependency>
2
     <APIResourceDependencyId
APIResourceDependencyId

API resource dependency identifier

>
{Integer}</APIResourceDependencyId>
3
     <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
4
     <Verb
Verb

Verb of the API resource

>
{String}</Verb>
5
     <Uri
Uri

API resource URI

>
{String}</Uri>
6
     <APIResource>
7
          <APIResourceId
APIResourceId

API resource identifier

>
{Integer}</APIResourceId>
8
     </APIResource>
9
</APIResourceDependency>
1
{
2
     "aPIResourceDependency": {
3
          "aPIResourceDependencyId
APIResourceDependencyId

API resource dependency identifier

":
"{Integer}",
4
          "createdAt
CreatedAt

Date and time of creation

":
"{Datetime}",
5
          "verb
Verb

Verb of the API resource

":
"{String}",
6
          "uri
Uri

API resource URI

":
"{String}",
7
          "aPIResource": {
8
               "aPIResourceId
APIResourceId

API resource identifier

":
"{Integer}"
9
          }
10
     }
11
}

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 104445 HTTP 400 API resource dependency already added