ENTERPRISE PROJECT STRUCTURE (EPS), ATTRIBUTES, AND VALUES

Enterprise Project Structure

Table 1. EPS Data Model

Field Type Description
id UUID v4 Unique node identifier
parentId UUID v4 Parent EPS node identifier
name string Node title
key string String code of the EPS node, unique within the space
type string EPS node type
sortOrder integer Sort order within the level
createBy UUID v4 Identifier of the user who created the EPS node
createAt Date EPS node creation time

Table 2. EPS Node Types

Type Description
space Space
facility Facility
project Project
schedule Schedule
version Schedule version

Example: Retrieve the list of nodes available to the user.

shell;

curl -X 'GET' \
  'https://your-org.domain/public-api/eps' \
  -H 'accept: application/json' \
  -H 'x-version: 409' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'
javascript;

const epsPath = 'https://your-org.domain/public-api/eps';

const baseHeaders = {
  Authorization: 'your-api-key',
  'x-tenant-id': '5db13376-ba5c-4fd5-ba7f-dc56347956ad',
  'x-version': '409',
  accept: 'application/json',
};

fetch(epsPath, { headers: baseHeaders })
  .then((response) => {
    if (response.ok) {
      return response.json();
    } else {
      throw new Error(`Error: ${response.status}, ${response.statusText}`);
    }
  })
  .then((epsList) => {
    epsList.forEach((eps) => {
      console.log(eps);
    });
  })
  .catch((error) => {
    console.error(error.message);
  });
python;

# https://www.python-httpx.org/quickstart/#passing-parameters-in-urls
import httpx

epsPath = 'https://your-org.domain/public-api/eps'

baseHeaders = {
    'Authorization': 'your-api-key',
    'x-tenant-id': '5db13376-ba5c-4fd5-ba7f-dc56347956ad',
    'x-version': '409',
    'accept': 'application/json'
}

getEpsListResponse = httpx.get(epsPath, headers=baseHeaders)

if getEpsListResponse.status_code == 200:
    epsList = getEpsListResponse.json()

    for eps in epsList:
        print(f"{eps['id']} -- {eps['name']}", sep='\n')
else:
    print(f'Error: {getEpsListResponse.status_code}, {getEpsListResponse.text}')

Example: Retrieve the list of projects available to the user using OData. Return the name and type fields in the response.

shell;

curl -X 'GET' \
  ''https://your-org.domain/public-api/eps?select=type,name,id&filter=type eq 'project''' \
  -H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
  -H 'x-version: 409' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'

Create a new node in the Enterprise Project Structure.

shell;

curl -X 'POST' \
  'https://your-org.domain/public-api/eps' \
  -H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
  -H 'x-version: 409' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
  -H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
  -d '{
  "type": "facility",
  "name": "Low-Rise Construction",
  "parentId": "5db13376-ba5c-4fd5-ba7f-dc56347956ad"
}'

Example: Modify an existing EPS node.

shell;

curl -X 'PUT' \
  'https://your-org.domain/public-api/eps/36b60d7c-fba9-4fb6-8d5a-a054f2043827' \
  -H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
  -H 'x-version: 409' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
  -H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
  -d '{
    "name": "Low-Rise Construction",
}'

Example: Delete an EPS node.

shell;

curl -X 'DELETE' \
  'https://your-org.domain/public-api/eps/36b60d7c-fba9-4fb6-8d5a-a054f2043827' \
  -H 'accept: */*' \
  -H 'x-version: 409' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'

Attributes

Table 3. EPS Attribute Data Model

Field Type Description
id UUID v4 Unique attribute identifier
label string Attribute title
type string Attribute type
directoryId UUID v4 Directory identifier
directoryAttributeId UUID v4 Directory attribute identifier
editable boolean Flag indicating whether the attribute can be edited

Table 4. EPS Attribute Types

Type Description
date Date in timestamp format
number Floating-point number
string String
money Floating-point number
boolean Boolean represented as 1 or 0

Usage Examples

Example: Retrieve the list of attributes.

curl -X 'GET' \
  'https://your-org.domain/public-api/eps-attributes' \
  -H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
  -H 'x-version: 507' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
  -H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true'

Example: Retrieve the list of attributes of type date using OData.

curl -X 'GET' \
  ''https://your-org.domain/public-api/eps-attributes?filter=type eq 'date''' \
  -H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
  -H 'x-version: 507' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
  -H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true'

Example: Create a new attribute of type date.

curl -X 'POST' \
  'https://your-org.domain/public-api/eps-attributes' \
  -H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
  -H 'x-version: 507' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
  -H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
  -d '{
    "label": "Documentation Release Date",
    "type": "date",
  }'

Example: Create a new attribute of type date from a directory.

curl -X 'POST' \
  'https://your-org.domain/public-api/eps-attributes' \
  -H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
  -H 'x-version: 507' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
  -H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
  -d '{
    "label": "Documentation Release Date",
    "type": "date",
    "directoryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "directoryAttributeId": "5da85f64-5717-4562-b3fc-2c963f66dfdf"
  }'

Example: Rename an existing attribute.

curl -X 'PUT' \
  'https://your-org.domain/public-api/eps-attributes/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
  -H 'x-version: 507' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
  -H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \
  -d '{
    "label": "Documentation Release Date",
  }'

Example: Delete an existing attribute.

curl -X 'DELETE' \
  'https://your-org.domain/public-api/eps-attributes/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
  -H 'accept: */*' \
  -H 'x-version: 507' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'

Attribute Values

Table 5. EPS Attribute Value Data Model

Field Type Description
epsId UUID v4 Unique Enterprise Project Structure identifier
attributeId UUID v4 Enterprise Project Structure attribute identifier
value any Enterprise Project Structure attribute value

Usage Examples

Example: Retrieve attribute values for the specified node.

curl -X 'GET' \
  'https://your-org.domain/public-api/eps-attribute-values?filter=epsId eq 'a3329414-1059-476f-93d5-fd7c1927d966'' \
  -H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
  -H 'x-version: 507' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \

Example: Retrieve the list of values of specific attributes for the specified EPS node.

curl -X 'GET' \
  'https://your-org.domain/public-api/eps-attribute-values?filter=epsId eq 'a3329414-1059-476f-93d5-fd7c1927d966' and (attrId eq '6b59bfc4-52a6-4c5f-bbae-1b3baa2da5c7') ' \
  -H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
  -H 'x-version: 507' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \

Example: Retrieve the list of EPS nodes whose specified attribute equals 'your string'.

curl -X 'GET' \
  'https://your-org.domain/public-api/eps-attribute-values?$filter=attrId eq 'a9e8611b-e874-4324-b901-413b4cbd104e' and value eq 'your string' &select=epsId' \
  -H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
  -H 'x-version: 507' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \

Example: Retrieve the list of EPS nodes whose attribute with identifier 9a0a9e7f-2244-4e56-9772-0293fbaabb41 equals 2 and whose attribute with identifier 22ad98e7-123c-48ec-8c76-69f97a4add00 equals 'your string'.

curl -X 'GET' \
  'https://your-org.domain/public-api/eps-attribute-values?$apply=filter((attrId eq '9a0a9e7f-2244-4e56-9772-0293fbaabb41' and number(value) eq 2) OR (attrId eq '22ad98e7-123c-48ec-8c76-69f97a4add00' and value eq 'your string'))/groupby(epsId, aggregate($count as count))/filter(count eq 2)' \
  -H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
  -H 'x-version: 507' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \

Example: Create a new value for the specified attribute.

curl -X 'PUT' \
  'https://your-org.domain/public-api/eps-attribute-values' \
  -H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
  -H 'x-version: 507' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
  -H 'Content-Type:  application/json' \
  -d '{
    "epsId": "5qa85f64-5717-4562-b3fc-2c963f66afrt",
    "attributeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "value": 90
  }'

Example: Update the value of the specified attribute.

curl -X 'PUT' \
  'https://your-org.domain/public-api/eps-attribute-values' \
  -H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
  -H 'x-version: 507' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
  -H 'Content-Type:  application/json' \
  -d '{
    "epsId": "5qa85f64-5717-4562-b3fc-2c963f66afrt",
    "attributeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "value": 100
  }'

Example: Delete the value of the specified attribute.

curl -X 'PUT' \
  'https://your-org.domain/public-api/eps-attribute-values' \
  -H 'accept: application/json;odata.metadata=minimal;odata.streaming=true' \
  -H 'x-version: 507' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad' \
  -H 'Content-Type:  application/json' \
  -d '{
    "epsId": "5qa85f64-5717-4562-b3fc-2c963f66afrt",
    "attributeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "value": null
  }'

The value field can contain any data type, for example:

Date in milliseconds

"value": 1646132400000

Number

"value": 552

String

"value": "String value"

Boolean

"value": false

Setting the value to null deletes the attribute value.

"value": null

608.0-5d1f26c7