API

Quality management APIs

POST quality/diagrams/{qualityDiagramId}/embedded-medias/{embeddedMediaId}/shapes

Creates a diagram's embedded shape

HTTP method POST
URI https://api.rambase.net/quality/diagrams/{qualityDiagramId}/embedded-medias/{embeddedMediaId}/shapes
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {qualityDiagramId} Identifier of the diagram
Integer, minimum 100000
- URI parameter {embeddedMediaId} Embedded media identifier
Integer, minimum 100000
Successful HTTP status code 201
API resource identifier 6800, version 5

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
<Shape>
2
     <Title
Title

Title of the shape

This field is optional.

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

Height of the shape. Values between 0 and 1 where 1 is 100% of the height of the frame

Minimum value: 0

This field is optional.

>
{Decimal}</Height>
4
     <Width
Width

Width of the shape. Values between 0 and 1 where 0 is zero width and 1 is 100% of the frame

Minimum value: 0

This field is optional.

>
{Decimal}</Width>
5
     <Top
Top

Vertical position of the top left corner of the shape. Values from 0 to 1 - height, where 0 is in the very top and 1-height is to the bottom

This field is optional.

>
{Decimal}</Top>
6
     <Left
Left

Horizontal position of the shape between 0 and 1 - width where 0 is leftmost and 1 - width is rightmost position

This field is optional.

>
{Decimal}</Left>
7
     <Rotation
Rotation

Rotation of the shape in degrees

Minimum value: 0

This field is optional.

>
{Decimal}</Rotation>
8
     <Scale
Scale

Scale of the shape

Minimum value: 0

This field is optional.

>
{Decimal}</Scale>
9
     <ShowBorder
ShowBorder

True if borders on the shapes should be rendered

Default value: False

This field is optional.

>
{Boolean}</ShowBorder>
10
     <Type
Type

Required/mandatory field

Type of the shape. Possible values: arrow, cross, ellipse, rectangle, text

Applicable domain values can be found here

>
{Integer}</Type>
11
     <Color
Color

This field is optional.

>
12
          <HexColor
HexColor

Hex color id. Ex. #112233

Input must match the following regular expression pattern: ^#[0-9a-fA-F]{6}$

This field is optional.

>
{String}</HexColor>
13
          <ColorReference
ColorReference

This field is optional.

>
14
               <ColorId
ColorId

Color identifier

Minimum value: 100000

This field is optional.

>
{Integer}</ColorId>
15
          </ColorReference>
16
     </Color>
17
     <Link
Link

This field is optional.

>
18
          <LinkId
LinkId

Link identifier

Minimum value: 100000

This field is optional.

>
{Integer}</LinkId>
19
     </Link>
20
</Shape>
1
{
2
     "shape": {
3
          "title
Title

Title of the shape

This field is optional.

":
"{String}",
4
          "height
Height

Height of the shape. Values between 0 and 1 where 1 is 100% of the height of the frame

Minimum value: 0

This field is optional.

":
"{Decimal}",
5
          "width
Width

Width of the shape. Values between 0 and 1 where 0 is zero width and 1 is 100% of the frame

Minimum value: 0

This field is optional.

":
"{Decimal}",
6
          "top
Top

Vertical position of the top left corner of the shape. Values from 0 to 1 - height, where 0 is in the very top and 1-height is to the bottom

This field is optional.

":
"{Decimal}",
7
          "left
Left

Horizontal position of the shape between 0 and 1 - width where 0 is leftmost and 1 - width is rightmost position

This field is optional.

":
"{Decimal}",
8
          "rotation
Rotation

Rotation of the shape in degrees

Minimum value: 0

This field is optional.

":
"{Decimal}",
9
          "scale
Scale

Scale of the shape

Minimum value: 0

This field is optional.

":
"{Decimal}",
10
          "showBorder
ShowBorder

True if borders on the shapes should be rendered

Default value: False

This field is optional.

":
"{Boolean}",
11
          "type
Type

Required/mandatory field

Type of the shape. Possible values: arrow, cross, ellipse, rectangle, text

Applicable domain values can be found here

":
"{Integer}",
12
          "color
Color

This field is optional.

":
{
13
               "hexColor
HexColor

Hex color id. Ex. #112233

Input must match the following regular expression pattern: ^#[0-9a-fA-F]{6}$

This field is optional.

":
"{String}",
14
               "colorReference
ColorReference

This field is optional.

":
{
15
                    "colorId
ColorId

Color identifier

Minimum value: 100000

This field is optional.

":
"{Integer}"
16
               }
17
          },
18
          "link
Link

This field is optional.

":
{
19
               "linkId
LinkId

Link identifier

Minimum value: 100000

This field is optional.

":
"{Integer}"
20
          }
21
     }
22
}

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
<Shape>
2
     <ShapeId
ShapeId

Embedded media shape identifier

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

Title of the shape

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

Height of the shape. Values between 0 and 1 where 1 is 100% of the height of the frame

>
{Decimal}</Height>
5
     <Width
Width

Width of the shape. Values between 0 and 1 where 0 is zero width and 1 is 100% of the frame

>
{Decimal}</Width>
6
     <Top
Top

Vertical position of the top left corner of the shape. Values from 0 to 1 - height, where 0 is in the very top and 1-height is to the bottom

>
{Decimal}</Top>
7
     <Left
Left

Horizontal position of the shape between 0 and 1 - width where 0 is leftmost and 1 - width is rightmost position

>
{Decimal}</Left>
8
     <Rotation
Rotation

Rotation of the shape in degrees

>
{Decimal}</Rotation>
9
     <Scale
Scale

Scale of the shape

>
{Decimal}</Scale>
10
     <ShowBorder
ShowBorder

True if borders on the shapes should be rendered

>
{Boolean}</ShowBorder>
11
     <Type
Type

Type of the shape. Possible values: arrow, cross, ellipse, rectangle, text

Possible domain values can be found here

>
{Integer}</Type>
12
     <Color>
13
          <HexColor
HexColor

Hex color id. Ex. #112233

>
{String}</HexColor>
14
          <ColorReference>
15
               <ColorId
ColorId

Color identifier

>
{Integer}</ColorId>
16
               <Status
Status

Color status

Possible domain values can be found here

>
{Integer}</Status>
17
               <Title
Title

Title of the color

>
{String}</Title>
18
               <HexColor
HexColor

Hex color id. Ex. #112233

>
{String}</HexColor>
19
               <ColorScheme
ColorScheme

ColorScheme that is either Document, Media or Diagram

Possible domain values can be found here

>
{String}</ColorScheme>
20
               <ColorLink
ColorLink

Color reference

>
{String}</ColorLink>
21
          </ColorReference>
22
     </Color>
23
     <Link>
24
          <LinkId
LinkId

Link identifier

>
{Integer}</LinkId>
25
     </Link>
26
</Shape>
1
{
2
     "shape": {
3
          "shapeId
ShapeId

Embedded media shape identifier

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

Title of the shape

":
"{String}",
5
          "height
Height

Height of the shape. Values between 0 and 1 where 1 is 100% of the height of the frame

":
"{Decimal}",
6
          "width
Width

Width of the shape. Values between 0 and 1 where 0 is zero width and 1 is 100% of the frame

":
"{Decimal}",
7
          "top
Top

Vertical position of the top left corner of the shape. Values from 0 to 1 - height, where 0 is in the very top and 1-height is to the bottom

":
"{Decimal}",
8
          "left
Left

Horizontal position of the shape between 0 and 1 - width where 0 is leftmost and 1 - width is rightmost position

":
"{Decimal}",
9
          "rotation
Rotation

Rotation of the shape in degrees

":
"{Decimal}",
10
          "scale
Scale

Scale of the shape

":
"{Decimal}",
11
          "showBorder
ShowBorder

True if borders on the shapes should be rendered

":
"{Boolean}",
12
          "type
Type

Type of the shape. Possible values: arrow, cross, ellipse, rectangle, text

Possible domain values can be found here

":
"{Integer}",
13
          "color": {
14
               "hexColor
HexColor

Hex color id. Ex. #112233

":
"{String}",
15
               "colorReference": {
16
                    "colorId
ColorId

Color identifier

":
"{Integer}",
17
                    "status
Status

Color status

Possible domain values can be found here

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

Title of the color

":
"{String}",
19
                    "hexColor
HexColor

Hex color id. Ex. #112233

":
"{String}",
20
                    "colorScheme
ColorScheme

ColorScheme that is either Document, Media or Diagram

Possible domain values can be found here

":
"{String}",
21
                    "colorLink
ColorLink

Color reference

":
"{String}"
22
               }
23
          },
24
          "link": {
25
               "linkId
LinkId

Link identifier

":
"{Integer}"
26
          }
27
     }
28
}

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: