Valuekeep Developers - Web API Reference

Business Core | Entity State Transition History

Service to manage entities of type 'VKEntittyStateTransitionHistory'.

Overview


URL api/{tenantKey}/{orgKey}/businessCore/vKEntittyStateTransitionHistories
Methods Supported GET, POST, PUT, DELETE

All Operations

This service includes the following operations:

All Resources

This service uses the following resources:

GET Operations

GET VKEntittyStateTransitionHistories (odata)

Returns a page of the list of all the entity records available.

The following elements are optional:

opts (ODataQueryOptions) OData query option.

Response:

When successful, the response body contains the list of records available. See VKEntittyStateTransitionHistoryResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /businessCore/vKEntittyStateTransitionHistories/odata

GET VKEntittyStateTransitionHistory by identifier

Returns the entity record that matches the specified identifier.

The following elements are required:

id (string) The record identifier.

Response:

When successful, the response body contains the entity record. See VKEntittyStateTransitionHistoryResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /businessCore/vKEntittyStateTransitionHistories/{id}

GET VKEntittyStateTransitionHistory by key

Returns the entity record that matches the specified key.

The following elements are required:

key (string) Key.
entityNaturalKey (string) Entity Natural.
dateTransition (DateTimeOffset) Date Transition.

Response:

When successful, the response body contains the entity record. See VKEntittyStateTransitionHistoryResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /businessCore/vKEntittyStateTransitionHistories/{key}/{entityNaturalKey}/{dateTransition}

GET Get State Transitions

Custom operation 'GetStateTransitions'.

The following elements are required:

schemaEntityKey (string) SchemaEntityKey.
entityNaturalKey (string) EntityNaturalKey.

Response:

When successful, the response body contains a list of resources of type 'StateTransitionResource'. See StateTransitionResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /businessCore/vKEntittyStateTransitionHistories/getStateTransitions/{schemaEntityKey}/{entityNaturalKey}

POST Operations

POST VKEntittyStateTransitionHistories

Creates a new entity record.

The following elements are required:

vKEntittyStateTransitionHistoryResource (ApiVKEntittyStateTransitionHistoryResource) The request body should contain the entity record that should be created.
See ApiVKEntittyStateTransitionHistoryResource.

The following elements are optional:

customAttributes (JSON Document) A key-value pair in JSON format that represents the extensibility custom attributes for this entity.
The key should be the custom attribute name prefixed with "custom_", e.g. "custom_attributeName".
While the "customAttributes" element is optional, please notice that specific custom attributes might be marked as required.

Response:

When successful, the response body contains the new entity record identifier. The resource header location property contains the URL for the new entity record. See ApiVKEntittyStateTransitionHistoryResource.

Response status codes:

201 Created. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /businessCore/vKEntittyStateTransitionHistories

POST Register State Transition

Registers the state transition history record.

The following elements are required:

schemaEntityId (Guid) SchemaEntityId.
entityNaturalKey (string) EntityNaturalKey.
previousStateId (Guid) PreviousStateId.
newStateId (Guid) NewStateId.
dateTransition (DateTimeOffset) DateTransition.
justification (string) Justification.
stateJustificationKey (string) StateJustificationKey.
stateJustificationTypeKey (string) StateJustificationTypeKey.

The following elements are optional:

customAttributes (JSON Document) A key-value pair in JSON format that represents the extensibility custom attributes for this entity.
The key should be the custom attribute name prefixed with "custom_", e.g. "custom_attributeName".
While the "customAttributes" element is optional, please notice that specific custom attributes might be marked as required.

Response:

When successful, the response body contains a unique identifier.

Resource URL:

POST /businessCore/vKEntittyStateTransitionHistories/registerStateTransition/{schemaEntityId}/{entityNaturalKey}/{previousStateId}/{newStateId}

PUT Operations

PUT Set DateTransition VKEntittyStateTransitionHistory

Updates the value of attribute 'DateTransition' in the specified entity record.

The following elements are required:

key (string) Key.
entityNaturalKey (string) Entity Natural.
dateTransition (DateTimeOffset) Date Transition.
value (DateTimeOffset) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /businessCore/vKEntittyStateTransitionHistories/{key}/{entityNaturalKey}/{dateTransition}/dateTransition

PUT Set EntityNaturalKey VKEntittyStateTransitionHistory

Updates the value of attribute 'EntityNaturalKey' in the specified entity record.

The following elements are required:

key (string) Key.
entityNaturalKey (string) Entity Natural.
dateTransition (DateTimeOffset) Date Transition.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /businessCore/vKEntittyStateTransitionHistories/{key}/{entityNaturalKey}/{dateTransition}/entityNaturalKey

PUT Set IsActive VKEntittyStateTransitionHistory

Updates the value of attribute 'IsActive' in the specified entity record.

The following elements are required:

key (string) Key.
entityNaturalKey (string) Entity Natural.
dateTransition (DateTimeOffset) Date Transition.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

PUT /businessCore/vKEntittyStateTransitionHistories/{key}/{entityNaturalKey}/{dateTransition}/isActive

PUT Set Justification VKEntittyStateTransitionHistory

Updates the value of attribute 'Justification' in the specified entity record.

The following elements are required:

key (string) Key.
entityNaturalKey (string) Entity Natural.
dateTransition (DateTimeOffset) Date Transition.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /businessCore/vKEntittyStateTransitionHistories/{key}/{entityNaturalKey}/{dateTransition}/justification

PUT Set Key VKEntittyStateTransitionHistory

Updates the value of attribute 'Key' in the specified entity record.

The following elements are required:

key (string) Key.
entityNaturalKey (string) Entity Natural.
dateTransition (DateTimeOffset) Date Transition.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /businessCore/vKEntittyStateTransitionHistories/{key}/{entityNaturalKey}/{dateTransition}/key

PUT Set NewState VKEntittyStateTransitionHistory

Updates the value of attribute 'NewState' in the specified entity record.

The following elements are required:

key (string) Key.
entityNaturalKey (string) Entity Natural.
dateTransition (DateTimeOffset) Date Transition.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /businessCore/vKEntittyStateTransitionHistories/{key}/{entityNaturalKey}/{dateTransition}/newState

PUT Set PreviousState VKEntittyStateTransitionHistory

Updates the value of attribute 'PreviousState' in the specified entity record.

The following elements are required:

key (string) Key.
entityNaturalKey (string) Entity Natural.
dateTransition (DateTimeOffset) Date Transition.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /businessCore/vKEntittyStateTransitionHistories/{key}/{entityNaturalKey}/{dateTransition}/previousState

PUT Set SchemaEntity VKEntittyStateTransitionHistory

Updates the value of attribute 'SchemaEntity' in the specified entity record.

The following elements are required:

key (string) Key.
entityNaturalKey (string) Entity Natural.
dateTransition (DateTimeOffset) Date Transition.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /businessCore/vKEntittyStateTransitionHistories/{key}/{entityNaturalKey}/{dateTransition}/schemaEntity

PUT Set StateJustification VKEntittyStateTransitionHistory

Updates the value of attribute 'StateJustification' in the specified entity record.

The following elements are required:

key (string) Key.
entityNaturalKey (string) Entity Natural.
dateTransition (DateTimeOffset) Date Transition.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /businessCore/vKEntittyStateTransitionHistories/{key}/{entityNaturalKey}/{dateTransition}/stateJustification

PUT Set StateJustificationType VKEntittyStateTransitionHistory

Updates the value of attribute 'StateJustificationType' in the specified entity record.

The following elements are required:

key (string) Key.
entityNaturalKey (string) Entity Natural.
dateTransition (DateTimeOffset) Date Transition.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /businessCore/vKEntittyStateTransitionHistories/{key}/{entityNaturalKey}/{dateTransition}/stateJustificationType

PUT Set Custom Attribute VKEntittyStateTransitionHistory

Updates the value of 'CustomAttribute' in the specified entity record.

The following elements are required:

key (string) Key
entityNaturalKey (string) Entity Natural
dateTransition (DateTimeOffset) Date Transition
customAttributeName (string) The custom attribute name.
value (ExtensibilityCustomAttributeValueResource) The request body should contain the new value for the custom attribute.
See ExtensibilityCustomAttributeValueResource.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

PUT /businessCore/vKEntittyStateTransitionHistories/{key}/{entityNaturalKey}/{dateTransition}/{customAttributeName}

DELETE Operations

DELETE VKEntittyStateTransitionHistory by identifier

Deletes the entity record that matches the specified identifier.

The following elements are required:

id (string) The record identifier.

Response:

When successful, the response body is empty.

Response status codes:

204 Deleted. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /businessCore/vKEntittyStateTransitionHistories/{id}

DELETE VKEntittyStateTransitionHistory by key

Deletes the entity record that matches the specified key.

The following elements are required:

key (string) Key.
entityNaturalKey (string) Entity Natural.
dateTransition (DateTimeOffset) Date Transition.

Response:

When successful, the response body is empty.

Response status codes:

204 Deleted. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /businessCore/vKEntittyStateTransitionHistories/{key}/{entityNaturalKey}/{dateTransition}

Resources


ApiVKEntittyStateTransitionHistoryResource

The following elements are required:

key (string) Key.
entityNaturalKey (string) Entity Natural.
dateTransition (DateTimeOffset) Date Transition.
newState (string) New State.
previousState (string) Previous State.
schemaEntity (string) Entity.

The following elements are optional:

justification (string) Justification.
stateJustification (string) State Justification.
stateJustificationType (string) State Justification Type.
employeeDescription (string) Employee Description.


StateTransitionResource

The following elements are required:

dateTransition (DateTimeOffset) Date Transition.
entityNaturalKey (string) Entity Natural.
key (string) Key.
newState (string) New State.
previousState (string) Previous State.
schemaEntity (string) Entity.

The following elements are optional:

justification (string) Justification.
stateJustification (string) State Justification.
stateJustificationType (string) State Justification Type.
employeeDescription (string) Employee Description.


VKEntittyStateTransitionHistoryResource

The following elements are required:

key (string) Key.
entityNaturalKey (string) Entity Natural.
dateTransition (DateTimeOffset) Date Transition.
newState (string) New State.
previousState (string) Previous State.
schemaEntity (string) Entity.

The following elements are optional:

justification (string) Justification.
stateJustification (string) State Justification.
stateJustificationType (string) State Justification Type.
employeeDescription (string) Employee Description.


ExtensibilityCustomAttributeValueResource

The following elements are required:

value (object) The custom attribute value.