API

Quality management APIs

PUT quality/diagrams/{qualityDiagramId}/embedded-medias/{embeddedMediaId}/shapes/{shapeId}

Updates the diagram's embedded shape

HTTP method PUT
URI https://api.rambase.net/quality/diagrams/{qualityDiagramId}/embedded-medias/{embeddedMediaId}/shapes/{shapeId}
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
- URI parameter {shapeId} Embedded media shape identifier
Integer, minimum 1
Successful HTTP status code 200
API resource identifier 6802, 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
<Shape
Shape

This field is optional.

>
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

This field is optional.

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

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

Applicable domain values can be found here

This field is optional.

>
{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
Shape

This field is optional.

":
{
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

This field is optional.

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

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

Applicable domain values can be found here

This field is optional.

":
"{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.

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: