Period
Manage periods for entities, allowing you to view and update periods associated with a specific entity.
You can retrieve current periods and update them as needed.
- Version
- 1.0.0
- OpenAPI version
- 3.0.0
Operations
Section titled “Operations” GET /period/view/{id}
Retrieve the periods of the entity identified by the given ID.
Path Parameters
Section titled “Path Parameters ”The ID of the entity
Responses
Section titled “ Responses ”The periods for the entity
Current entity periods response
object
Current entity type
ACTION
Current entity label
Base safety (4 hours)
Owned entity periods
object
Unique identifier for the period
example-period-id
Additional data, unused
object
Start period date (default -infinitive)
2017-01-01 00:00:00
End period date (default +infinitive)
2019-09-26 00:00:00
Unique identifier for entity
example-action-id
Entity label
Base safety (4 hours)
Entity type
ACTION
The list of all child (direct and not-direct) periods indexed by child entity_id
object
Child entity_id
object
Parent entity_id
example-action-id
Parent entity_type
ACTION
Start period date (default -infinitive)
2017-01-01 00:00:00
End period date (default +infinitive)
2019-09-26 00:00:00
Unique identifier for entity
example-action-subscription-id
Entity label
Jon Snow on Base safety (4 hours)
Entity type
ACTION_SUBSCRIPTION
Nesting level
0
The list of all parent (direct and not-direct) periods indexed by parent entity_id
object
Parent entity_id
object
Unique identifier for parent entity
example-office-id
Parent entity_type
OFFICE
Parent entity label
San Jose central office
Start period date (default -infinitive)
2017-01-01 00:00:00
End period date (default +infinitive)
2019-09-26 00:00:00
Unique identifier for current entity
example-action-id
Current entity type
ACTION
Nesting level
0
Example
{ "entity_type": "ACTION", "entity_name": "Base safety (4 hours)", "owned": [ { "period_id": "example-period-id", "data": null, "start_date": "2017-01-01 00:00:00", "end_date": "2019-09-26 00:00:00", "entity_id": "example-action-id", "entity_name": "Base safety (4 hours)", "entity_type": "ACTION" } ], "child": { "example-action-subscription-id": [ { "dep_id": "example-action-id", "dep_type": "ACTION", "start_date": "2017-01-01 00:00:00", "end_date": "2019-09-26 00:00:00", "entity_id": "example-action-subscription-id", "entity_name": "Jon Snow on Base safety (4 hours)", "entity_type": "ACTION_SUBSCRIPTION", "level": "0" } ] }, "parent": { "example-office-id": [ { "dep_id": "example-office-id", "dep_type": "OFFICE", "dep_name": "San Jose central office", "start_date": "2017-01-01 00:00:00", "end_date": "2019-09-26 00:00:00", "entity_id": "example-action-id", "entity_type": "ACTION", "level": "0" } ] }}
update
Section titled “update” PUT /period/update/{id}
Update the periods of the entity identified by the given ID.
Path Parameters
Section titled “Path Parameters ”The ID of the entity
Request Body
Section titled “Request Body ”The periods to update
Update entity periods request body
object
A period to write
object
Unique identifier for the period
example-period-id
Start period date (default -infinitive)
2017-01-01 00:00:00
End period date (default +infinitive)
2019-09-26 00:00:00
Example
{ "periods": [ { "period_id": "example-period-id", "start_date": "2017-01-01 00:00:00", "end_date": "2019-09-26 00:00:00" } ]}
Update entity periods request body
object
A period to write
object
Unique identifier for the period
example-period-id
Start period date (default -infinitive)
2017-01-01 00:00:00
End period date (default +infinitive)
2019-09-26 00:00:00
Responses
Section titled “ Responses ”The updated action
Update entity periods response body
object
Example
{ "done": "true"}
Update entity periods response body
object
Example
{ "done": "true"}