| POST | /documenti/{Id}/azioni/cambio-stato |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | path | int | Yes | ID del documento |
| NuovoStato | body | string | No | ID numerico dello stato (es. 10 per ANNULLATO) o stringa mnemonica |
| NoteGiustificative | body | string | Yes | Motivazione del cambio di stato |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Success | form | bool | No | |
| ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /documenti/{Id}/azioni/cambio-stato HTTP/1.1
Host: gemma.api.kerberos.energy
Accept: application/json
Content-Type: application/json
Content-Length: length
{"id":0,"nuovoStato":"String","noteGiustificative":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"success":false,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}