Work | Request State
Service to manage entities of type 'RequestState'.
This service extends VKSchemaEntityStates.
Overview
URL | api/{tenantKey}/{orgKey}/maintenanceCore/requestStates |
Methods Supported | GET, POST, PUT, DELETE |
All Operations
This service includes the following operations:
- GET:
- POST:
-
PUT:
- PUT Set Custom Attribute RequestState
- PUT Set Custom Attribute RequestWorkOrderState
- PUT Set IsActive RequestState
- PUT Set StartSLA RequestState
- PUT Set EndSLA RequestState
- PUT Set ChangeWOStateTo RequestState
- PUT Set AllowChangeRemarks RequestState
- PUT Set IsCanceledState RequestState
- PUT Set StartDownTime RequestState
- PUT Set DownTimeInfo RequestState
- PUT Set SLAInfo RequestState
- PUT Set CopyJustification RequestState
- PUT Set WorkOrderState RequestWorkOrderState
- DELETE:
All Resources
This service uses the following resources:
- ApiBaseRequestStateRequestWorkOrderStatesResource
- ApiBaseRequestStateResource
- ApiRequestStateRequestWorkOrderStatesResource
- ApiRequestStateResource
- BaseRequestStateRequestWorkOrderStatesResource
- BaseRequestStateResource
- RequestStateResource
- RequestWorkOrderStateResource
- ExtensibilityCustomAttributeValueResource
GET RequestStates (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 RequestStateResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET RequestState 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 RequestStateResource. |
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 RequestState by key
Returns the entity record that matches the specified key.
The following elements are required:
stateKey | (string) State. |
Response:
When successful, the response body contains the entity record. See RequestStateResource. |
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 RequestStates (with VKSchemaEntityState)
Returns the list of all the entity records available. Each record contains both data from the entity and the base entity.
Response:
When successful, the response body contains the list of records available. See BaseRequestStateResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET RequestStates (with VKSchemaEntityState) (paged)
Returns a page of the list of all the entity records available. Each record contains both data from the entity and the base entity.
The following elements are optional:
page | (int) The index of the page of the list that should be returned. This is a query string parameter. |
pageSize | (int) The number of page elements that should be returned (max. is 1000). This is a query string parameter. |
Response:
When successful, the response body contains the list of records available. See BaseRequestStateResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET RequestState (with VKSchemaEntityState) by identifier
Returns the entity record that matches the specified identifier. The record contains both data from the entity and the base entity.
The following elements are required:
id | (string) The record identifier. |
Response:
When successful, the response body contains the entity record. See BaseRequestStateResource. |
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 RequestState (with VKSchemaEntityState) by key
Returns the entity record that matches the specified key. The record contains both data from the entity and the base entity.
The following elements are required:
stateKey | (string) State. |
Response:
When successful, the response body contains the entity record. See BaseRequestStateResource. |
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:
POST RequestStates
Creates a new entity record.
The following elements are required:
requestStateResource | (ApiRequestStateResource) The request body should contain the entity record that should be created. See ApiRequestStateResource. |
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 ApiRequestStateResource. |
Response status codes:
201 | Created. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST RequestStates (with ApiBaseRequestState)
Creates a new entity record. The record shoud contain both data from the entity and the base entity.
The following elements are required:
requestStateResource | (ApiRequestStateResource) The request body should contain the entity record that should be created. See ApiRequestStateResource. |
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 ApiBaseRequestStateResource. |
Response status codes:
201 | Created. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST Request Work Order State
Inserts a new 'Request Work Order State' in the 'Request State'.
The following elements are required:
stateKey | (string) State. |
value | (ApiRequestStateRequestWorkOrderStatesResource) The ApiRequestStateRequestWorkOrderStatesResource instance. See ApiRequestStateRequestWorkOrderStatesResource. |
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 is empty. |
Response status codes:
204 | NoContent. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST Get State Configuration
Gets the state configuration.
The following elements are required:
stateId | (Guid) The state id. |
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 resource of type 'RequestStateResource'. See RequestStateResource. |
Resource URL:
POST Get All Request States
Custom operation 'GetAllRequestStates'.
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 list of resources of type 'RequestStateResource'. See RequestStateResource. |
Resource URL:
PUT Set AllowChangeRemarks RequestState
Updates the value of attribute 'AllowChangeRemarks' in the specified entity record.
The following elements are required:
stateKey | (string) State. |
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. |
Resource URL:
PUT Set ChangeWOStateTo RequestState
Updates the value of attribute 'ChangeWOStateTo' in the specified entity record.
The following elements are required:
stateKey | (string) State. |
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 Set CopyJustification RequestState
Updates the value of attribute 'CopyJustification' in the specified entity record.
The following elements are required:
stateKey | (string) State. |
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. |
Resource URL:
PUT Set DownTimeInfo RequestState
Updates the value of attribute 'DownTimeInfo' in the specified entity record.
The following elements are required:
stateKey | (string) State. |
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 Set EndSLA RequestState
Updates the value of attribute 'EndSLA' in the specified entity record.
The following elements are required:
stateKey | (string) State. |
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. |
Resource URL:
PUT Set IsActive RequestState
Updates the value of attribute 'IsActive' in the specified entity record.
The following elements are required:
stateKey | (string) State. |
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 Set IsCanceledState RequestState
Updates the value of attribute 'IsCanceledState' in the specified entity record.
The following elements are required:
stateKey | (string) State. |
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. |
Resource URL:
PUT Set SLAInfo RequestState
Updates the value of attribute 'SLAInfo' in the specified entity record.
The following elements are required:
stateKey | (string) State. |
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 Set StartDownTime RequestState
Updates the value of attribute 'StartDownTime' in the specified entity record.
The following elements are required:
stateKey | (string) State. |
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. |
Resource URL:
PUT Set StartSLA RequestState
Updates the value of attribute 'StartSLA' in the specified entity record.
The following elements are required:
stateKey | (string) State. |
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. |
Resource URL:
PUT Set WorkOrderState RequestWorkOrderState
Updates the value of attribute 'WorkOrderState' in the specified entity record.
The following elements are required:
stateKey | (string) State. |
lineId | (string) The detail identifier. |
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 Set Custom Attribute RequestState
Updates the value of 'CustomAttribute' in the specified entity record.
The following elements are required:
stateKey | (string) State |
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 Set Custom Attribute RequestWorkOrderState
Updates the value of 'CustomAttribute' in the specified entity record.
The following elements are required:
stateKey | (string) State |
lineId | (string) The detail identifier. |
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:
DELETE Request Work Order State by identifier
Deletes the entity record that matches the specified identifier.
The following elements are required:
stateKey | (string) State. |
lineId | (string) The line identifier. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | NoContent. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
DELETE RequestState 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 RequestState by key
Deletes the entity record that matches the specified key.
The following elements are required:
stateKey | (string) State. |
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:
Resources
ApiBaseRequestStateRequestWorkOrderStatesResource
The following elements are required:
workOrderState | (string) WO State. |
ApiBaseRequestStateResource
The following elements are required:
startSLA | (bool) Start SLA. |
endSLA | (bool) End SLA. |
allowChangeRemarks | (bool) Allow change remarks. |
startDownTime | (bool) Start Down Time. |
copyJustification | (bool) Copy Justification. |
stateKey | (string) State. |
description | (string) Description. |
isInitialState | (bool) Is Initial State. |
isFinalState | (bool) Is Final State. |
schemaEntity | (string) Entity. |
The following elements are optional:
changeWOStateTo | (string) State. |
requestWorkOrderStates | (List of ApiBaseRequestStateRequestWorkOrderStatesResource) Request Work Order States.
See ApiBaseRequestStateRequestWorkOrderStatesResource. |
isCanceledState | (bool) Canceled. |
downTimeInfo | (string) Down Time Info. |
sLAInfo | (string) Information. |
isLockedForChanges | (bool) Is Locked For Changes. |
localizedDescription | (string) Localized Description. |
notificationId | (Guid) Initial Notification. |
ApiRequestStateRequestWorkOrderStatesResource
The following elements are required:
workOrderState | (string) WO State. |
ApiRequestStateResource
The following elements are required:
startSLA | (bool) Start SLA. |
endSLA | (bool) End SLA. |
allowChangeRemarks | (bool) Allow change remarks. |
startDownTime | (bool) Start Down Time. |
copyJustification | (bool) Copy Justification. |
stateKey | (string) State. |
The following elements are optional:
changeWOStateTo | (string) State. |
requestWorkOrderStates | (List of ApiRequestStateRequestWorkOrderStatesResource) Request Work Order States.
See ApiRequestStateRequestWorkOrderStatesResource. |
isCanceledState | (bool) Canceled. |
downTimeInfo | (string) Down Time Info. |
sLAInfo | (string) Information. |
BaseRequestStateRequestWorkOrderStatesResource
The following elements are required:
workOrderState | (string) WO State. |
BaseRequestStateResource
The following elements are required:
startSLA | (bool) Start SLA. |
endSLA | (bool) End SLA. |
allowChangeRemarks | (bool) Allow change remarks. |
startDownTime | (bool) Start Down Time. |
copyJustification | (bool) Copy Justification. |
stateKey | (string) State. |
description | (string) Description. |
isInitialState | (bool) Is Initial State. |
isFinalState | (bool) Is Final State. |
schemaEntity | (string) Entity. |
The following elements are optional:
changeWOStateTo | (string) State. |
requestWorkOrderStates | (List of BaseRequestStateRequestWorkOrderStatesResource) Request Work Order States.
See BaseRequestStateRequestWorkOrderStatesResource. |
isCanceledState | (bool) Canceled. |
downTimeInfo | (string) Down Time Info. |
sLAInfo | (string) Information. |
isLockedForChanges | (bool) Is Locked For Changes. |
localizedDescription | (string) Localized Description. |
notificationId | (Guid) Initial Notification. |
RequestStateResource
The following elements are required:
startSLA | (bool) Start SLA. |
endSLA | (bool) End SLA. |
allowChangeRemarks | (bool) Allow change remarks. |
startDownTime | (bool) Start Down Time. |
copyJustification | (bool) Copy Justification. |
stateKey | (string) State. |
The following elements are optional:
changeWOStateTo | (string) State. |
requestWorkOrderStates | (List of RequestWorkOrderStateResource) Request Work Order States.
See RequestWorkOrderStateResource. |
isCanceledState | (bool) Canceled. |
downTimeInfo | (string) Down Time Info. |
sLAInfo | (string) Information. |
RequestWorkOrderStateResource
The following elements are required:
workOrderState | (string) WO State. |
ExtensibilityCustomAttributeValueResource
The following elements are required:
value | (object) The custom attribute value. |