DIRECTORIES, ATTRIBUTES, AND VALUES

Directories

Table 1. Directory Data Model

Field Type Description
id UUID v4 Unique directory identifier
epsId UUID v4 EPS node identifier
name string Directory name
type string Directory type

Table 2. Directory Types

Type Description
custom General — a directory for storing reference information. Contains no attributes when created.
resource Resource — a directory for storing resource records. Creating the directory automatically creates the directory attributes "Name", "Measure", and "Units/time", and the assignment attributes "Plan", "Actual", and "Distribution".
worktype Physical Volumes — a system directory for storing standard work types. Each company defines which work types to include. The directory is created automatically at the Space level and inherited by child EPS nodes.

Usage Examples

Retrieve the list of directories.

curl -X 'GET' \
  'https://your-org.domain/public-api/directory?epsId=c44b3626-af2d-4472-9e85-9a452162e6e7' \
  -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 directory.

curl -X 'POST' \
  'https://your-org.domain/public-api/directory' \
  -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' \
  -d '{
  "epsId": "c44b3626-af2d-4472-9e85-9a452162e6e7",
  "type": "custom",
  "name": "Responsible Employee"
}'

Modify an existing directory.

curl -X 'PUT' \
  'https://your-org.domain/public-api/directory/aefa1db8-d67b-4478-bf9e-d9058467457c' \
  -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' \
  -d '{
  "name": "Manager"
}'

Delete a directory.

curl -X 'DELETE' \
  'https://your-org.domain/public-api/directory/aefa1db8-d67b-4478-bf9e-d9058467457c' \
  -H 'accept: */*' \
  -H 'x-version: 409' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'

Directory Attributes

Table 3. Directory Attribute Data Model

Field Type Description
id UUID v4 Unique directory attribute identifier
directoryId UUID v4 Directory identifier
type string Attribute type
label string Attribute title

Table 4. Directory Attribute Types

Type Description
date Date
number Number
string String
money Money
name Attribute name
measure Measure
price Cost
intensity Units/time
boolean Boolean

Usage Examples

Retrieve the list of attributes for the specified directory.

curl -X 'GET' \
  'https://your-org.domain/public-api/directory-attributes?directoryId=dbe36399-b6a6-4999-bb10-6d56c0b01e7f' \
  -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 attribute for the specified directory.

curl -X 'POST' \
  'https://your-org.domain/public-api/directory-attributes' \
  -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' \
  -d '{
  "directoryId": "dbe36399-b6a6-4999-bb10-6d56c0b01e7f",
  "label": "Position",
  "type": "string"
}'

Modify an attribute.

curl -X 'PUT' \
  'https://your-org.domain/public-api/directory-attributes/accc1de3-52b6-427b-9bb6-01c267cbe13b' \
  -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' \
  -d '{
  "label": "Department"
}'

Delete an attribute.

curl -X 'DELETE' \
  'https://your-org.domain/public-api/directory-attributes/accc1de3-52b6-427b-9bb6-01c267cbe13b' \
  -H 'accept: */*' \
  -H 'x-version: 409' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'

Assignment Attributes

Table 5. Assignment Attribute Data Model

Field Type Description
id UUID v4 Unique assignment attribute identifier
directoryId UUID v4 Directory identifier
type string Assignment attribute type
label string Assignment attribute title

Table 6. Assignment Attribute Types

Type Description
date Date
number Number
string String
money Money
plan Accepted Plan
fact Actual
start Start
finish Finish
align Distribution
boolean Boolean

Usage Examples

Retrieve the list of assignment attributes for the specified directory.

curl -X 'GET' \
  'https://your-org.domain/public-api/directory-linked-attributes?directoryId=cf48c91c-dc5d-4f8e-9af6-fc401c28175a' \
  -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 assignment attribute for the specified directory.

curl -X 'POST' \
  'https://your-org.domain/public-api/directory-linked-attributes' \
  -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' \
  -d '{
  "directoryId": "dbe36399-b6a6-4999-bb10-6d56c0b01e7f",
  "label": "Curator",
  "type": "string"
}'

Modify an assignment attribute.

curl -X 'PUT' \
  'https://your-org.domain/public-api/directory-linked-attributes/8364fd4e-ec64-4676-ba5b-5a7c91b3610b' \
  -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' \
  -d '{
  "label": "Manager"
}'

Delete an assignment attribute.

curl -X 'DELETE' \
  'https://your-org.domain/public-api/directory-linked-attributes/8364fd4e-ec64-4676-ba5b-5a7c91b3610b' \
  -H 'accept: */*' \
  -H 'x-version: 409' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'

Directory Values

Table 7. Directory Value Data Model

Field Type Description
id UUID v4 Unique directory value identifier
directoryId UUID v4 Directory identifier
level integer Directory value nesting level
sortOrder integer Value sort order
parentId string Unique parent value identifier
values boolean Value

Usage Examples

Retrieve the list of values for the specified directory.

curl -X 'GET' \
  'https://your-org.domain/public-api/directory-values?directoryId=dbe36399-b6a6-4999-bb10-6d56c0b01e7f' \
  -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 value for the specified directory.

curl -X 'POST' \
  'https://your-org.domain/public-api/directory-values' \
  -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' \
  -d '{
  "directoryId": "dbe36399-b6a6-4999-bb10-6d56c0b01e7f",
  "values": {"137b07b1-02b1-4175-80c0-25e82e2e8619": "Ivanov I.I."
  }
}'

Create a new child record for the specified parent value in the directory.

curl -X 'POST' \
  'https://your-org.domain/public-api/directory-values' \
  -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' \
  -d '{
  "directoryId": "dbe36399-b6a6-4999-bb10-6d56c0b01e7f",
  "parentId": "677623f3-c3e4-4bd5-b4c2-a1f318df6d44",
  "values": {"137b07b1-02b1-4175-80c0-25e82e2e8619":"Sidorov S.S."
  }
}'

Modify a directory value.

curl -X 'PUT' \
  'https://your-org.domain/public-api/directory-values/677623f3-c3e4-4bd5-b4c2-a1f318df6d44' \
  -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' \
  -d '{
  "values": {"137b07b1-02b1-4175-80c0-25e82e2e8619": "Sidorov S.S."
  }
}'

Delete a directory value.

curl -X 'DELETE' \
  'https://your-org.domain/public-api/directory-values/677623f3-c3e4-4bd5-b4c2-a1f318df6d44' \
  -H 'accept: */*' \
  -H 'x-version: 409' \
  -H 'Authorization: your-api-key' \
  -H 'x-tenant-id: 5db13376-ba5c-4fd5-ba7f-dc56347956ad'

608.0-5d1f26c7