WebAPI- Changing the state of the request

WebAPI- Changing the state of the request

This method allows to change the state of a request.
 
The method to be used when changing the state of a request:

 PUT {{url}/api/{{tenant}}/{{organization}}/requests/requests/{{companyKey}}/{{requestKey}}/schemaEntityState
 
The parameters on the method are the following:
  1. companyKey: company key
  2. requestKey: key of the request you wish to change states
Json example to change the request state:
  1. "P03"
Simply place the request state key you wish to change.

Example: You wish to change the request state "in progress" to the state "finished". In the json, you must put the state key of the finished request state.
 
To view the request state keys, access: Menu -> Settings -> Requests -> Work Flow.

 When this method is executed successfully, it returns HttpStatusCode.200 OK


    • Related Articles

    • WebAPI - Creating a request

      This method allows to create a request in a simplified manner. The method to be used when creating a request: POST url/api/mytenant/myorganization/Requests/requests Json example for creating a request: { "requestKey": "00001", "description": "Vidro ...
    • WebAPI – Changing a Request state and the service classification

      This method allows to change the request state and, if it is on the final state, it allows to classify the service. The method to be used when changing the state of a request:  POST ...
    • WebAPI – How can I change the work order state?

      This method allows you to change a work order state. The method to be used for changing the work order change is: Post {{url}/api/{{tenant}}/{{organization}}/maintenance/workorders/changeSchemaEntityState/{{companyKey}} The parameters in the method ...
    • WebAPI - Changing the request attribute

      This method allows to change a request field. The method to be used when changing the request attribute:  PUT  {{url}/api/{{tenant}}/{{organization}}/requests/requests/{{companyKey}}/{{requestKey}}/{{atributo}}   The parameters on the method are the ...
    • WebAPI - Changing a requisition attribute

      This method allows changing a requisition. The method to be used when changing a requisition attribute is:  PUT  {{url}/api/{{tenant}}/{{organization}}/requisitions/requisitions/{{company}}/{{requisitionKey}}/{{atributo}} The parameters on the method ...