Resource blocks
Get all resource blocks
Returns all resource blocks (out of order blocks or internal use blocks). Note this operation uses Pagination and supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/resourceBlocks/getAll
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
EnterpriseIds
array of string
optional, max 1000 items
Unique identifiers of the Enterprises. If not specified, the operation returns data for all enterprises within scope of the Access Token.
ResourceBlockIds
array of string
optional, max 1000 items
Unique identifiers of the requested Resource blocks.
AssignedResourceIds
array of string
optional, max 1000 items
Unique identifiers of the requested Assigned Resources.
Resource block extent
Inactive
bool
required
Whether the response should contain inactive entities.
Response
ResourceBlocks
array of Resource block
required
The resource blocks colliding with the interval or matching the Id parameters.
Resource block
Id
string
required
Unique identifier of the block.
IsActive
bool
required
Whether the block is still active.
StartUtc
string
required
Start of the block in UTC timezone in ISO 8601 format.
EndUtc
string
required
End of the block in UTC timezone in ISO 8601 format.
CreatedUtc
string
required
Creation date and time of the block in UTC timezone in ISO 8601 format.
UpdatedUtc
string
required
Last update date and time of the block in UTC timezone in ISO 8601 format.
Name
string
required
Name of the resource block.
Notes
string
optional
Note describing the resource block.
Resource block type
OutOfOrder
InternalUse
Add resource block
Adds a new resource block to the specified resource for a defined period of time.
Request
[PlatformAddress]/api/connector/v1/resourceBlocks/add
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
Resource block parameters
Name
string
required
Name of the resource block.
StartUtc
string
required
Start of the interval in UTC timezone in ISO 8601 format.
EndUtc
string
required
End of the interval in UTC timezone in ISO 8601 format.
Notes
string
optional
Note describing the resource block.
Response
Delete resource blocks
Removes specified resource blocks from the resources.
Request
[PlatformAddress]/api/connector/v1/resourceBlocks/delete
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
Response
Last updated
Was this helpful?