Platform | Draft
Service to manage entities of type 'Draft'.
Overview
| URL | api/{tenantKey}/{orgKey}/corePatterns/drafts |
| Methods Supported | GET, POST, PUT, DELETE |
All Operations
This service includes the following operations:
- GET:
- POST:
-
PUT:
- PUT Set IsActive Draft
- PUT Set DraftId Draft
- PUT Set Key Draft
- PUT Set Title Draft
- PUT Set Description Draft
- PUT Set Type Draft
- PUT Set ControllerName Draft
- PUT Set ParentId Draft
- PUT Set OperationType Draft
- PUT Set State Draft
- PUT Set ProcessColor Draft
- PUT Set ProcessCaption Draft
- PUT Set ModuleName Draft
- PUT Set ServiceName Draft
- PUT Set Operation Draft
- PUT Set OperationName Draft
- PUT Set RoleKey Draft
- DELETE:
All Resources
This service uses the following resources:
GET Drafts
Returns the list of all the entity records available.
Response:
| When successful, the response body contains the list of records available. See DraftResource. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET Drafts (paged)
Returns a page of the list of all the entity records available.
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 DraftResource. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET Draft 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 DraftResource. |
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 Draft by key
Returns the entity record that matches the specified key.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
Response:
| When successful, the response body contains the entity record. See DraftResource. |
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 Print Draft by identifier
Prints the specified entity record.
The following elements are required:
| id | (string) The record identifier. |
The following elements are optional:
| template | (string) The report template that should be used. This is a query string parameter. |
Response:
| When successful, the response body contains a stream with the printed file. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 404 | NotFound. The specified resord does not exist. |
Resource URL:
GET Print Draft by key
Prints the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
The following elements are optional:
| template | (string) The report template that should be used. This is a query string parameter. |
Response:
| When successful, the response body contains a stream with the printed file. |
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 Original Print DraftOriginal by identifier
Prints the specified entity record.
The following elements are required:
| id | (string) The record identifier. |
The following elements are optional:
| template | (string) The report template that should be used. This is a query string parameter. |
Response:
| When successful, the response body contains a stream with the printed file. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 404 | NotFound. The specified resord does not exist. |
Resource URL:
GET Original Print Draft by key
Prints the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
The following elements are optional:
| template | (string) The report template that should be used. This is a query string parameter. |
Response:
| When successful, the response body contains a stream with the printed file. |
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 Get Total Drafts
Get the total drafts.
The following elements are required:
| operation | (string) The operation. |
| state | (string) The state. |
Response:
| When successful, the response body contains an item of type 'number'. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET Get Drafts From Group Ex
Custom operation 'GetDraftsFromGroupEx'.
The following elements are required:
| minDate | (DateTimeOffset) The min date. |
| maxDate | (DateTimeOffset) The max date. |
| operation | (string) The operation. |
| state | (string) The state. |
| maxSize | (int) The maxsize number. |
Response:
| When successful, the response body contains a list of resources of type 'DraftDataResource'. See DraftDataResource. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET Get All Drafts Time Groups Ex
Custom operation 'GetAllDraftsTimeGroupsEx'.
The following elements are required:
| operation | (string) The operation. |
| state | (string) The state. |
Response:
| When successful, the response body contains a list of resources of type 'DraftsGroupData'. See DraftsGroupData. |
Response status codes:
| 200 | OK. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST Drafts
Creates a new entity record.
The following elements are required:
| draftResource | (ApiDraftResource) The request body should contain the entity record that should be created. See ApiDraftResource. |
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 ApiDraftResource. |
Response status codes:
| 201 | Created. The operation was completed successfully. |
| 400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST Delete Drafts From Group
Custom operation 'DeleteDraftsFromGroup'.
The following elements are required:
| minDate | (DateTimeOffset) The min date. |
| maxDate | (DateTimeOffset) The max date. |
| operation | (string) The operation. |
| openedDraftKey | (Guid) The key for the opened draft. |
Response:
| When successful, the response body is empty. |
Resource URL:
POST Clear All Drafts
Custom operation 'ClearAllDrafts'.
The following elements are required:
| openDraftKey | (Guid) OpenDraftKey. |
Response:
| When successful, the response body is empty. |
Resource URL:
PUT Set ControllerName Draft
Updates the value of attribute 'ControllerName' in the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| 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 Description Draft
Updates the value of attribute 'Description' in the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| 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 DraftId Draft
Updates the value of attribute 'DraftId' in the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| value | (Guid) 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 Draft
Updates the value of attribute 'IsActive' in the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| 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 Key Draft
Updates the value of attribute 'Key' in the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| 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 ModuleName Draft
Updates the value of attribute 'ModuleName' in the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| 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 Operation Draft
Updates the value of attribute 'Operation' in the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| 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 OperationName Draft
Updates the value of attribute 'OperationName' in the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| 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 OperationType Draft
Updates the value of attribute 'OperationType' in the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| 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 ParentId Draft
Updates the value of attribute 'ParentId' in the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| value | (Guid) 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 ProcessCaption Draft
Updates the value of attribute 'ProcessCaption' in the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| 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 ProcessColor Draft
Updates the value of attribute 'ProcessColor' in the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| 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 RoleKey Draft
Updates the value of attribute 'RoleKey' in the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| 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 ServiceName Draft
Updates the value of attribute 'ServiceName' in the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| 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 State Draft
Updates the value of attribute 'State' in the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| 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 Title Draft
Updates the value of attribute 'Title' in the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| 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 Type Draft
Updates the value of attribute 'Type' in the specified entity record.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| 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:
DELETE Draft 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 Draft by key
Deletes the entity record that matches the specified key.
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
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
ApiDraftResource
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| controllerName | (string) The controller name for the draft. |
| operation | (string) The draft's operation. |
| timestamp | (string) The draft's timestamp. |
| url | (string) The draft's url. |
The following elements are optional:
| title | (string) The title for the draft. |
| description | (string) The description for the draft. |
| parentId | (Guid) The draft's parent identifier. |
| operationType | (string) The draft's operation type. |
| state | (string) The draft's state. |
| processColor | (string) The draft's process color. |
| processCaption | (string) The draft's process caption. |
| moduleName | (string) The draft's module name. |
| serviceName | (string) The draft's service name. |
| operationName | (string) The draft's operation name. |
| roleKey | (string) Role. |
DraftDataResource
The following elements are required:
| key | (string) The key for the draft. |
| draftId | (Guid) The draft identifier. |
| timestamp | (string) The draft's timestamp. |
| url | (string) The draft's url. |
The following elements are optional:
| processCaption | (string) The draft's process caption. |
| processColor | (string) The draft's process color. |
| description | (string) The description for the draft. |
| title | (string) The title for the draft. |
DraftResource
The following elements are required:
| draftId | (Guid) The draft identifier. |
| key | (string) The key for the draft. |
| type | (string) The draft's object type. |
| controllerName | (string) The controller name for the draft. |
| operation | (string) The draft's operation.
(fk) Allowed value: the natural key of a record of type Operation. These records are accessibly through the Operations service. |
| timestamp | (string) The draft's timestamp. |
| url | (string) The draft's url. |
The following elements are optional:
| title | (string) The title for the draft. |
| description | (string) The description for the draft. |
| parentId | (Guid) The draft's parent identifier. |
| operationType | (string) The draft's operation type. |
| state | (string) The draft's state. |
| processColor | (string) The draft's process color. |
| processCaption | (string) The draft's process caption. |
| moduleName | (string) The draft's module name. |
| serviceName | (string) The draft's service name. |
| operationName | (string) The draft's operation name. |
| roleKey | (string) Role. |
DraftsGroupData
The following elements are required:
| caption | (string) The caption for the draft group. |
| total | (int) The draft group's total. |
| from | (DateTimeOffset) The inicial date. |
| to | (DateTimeOffset) The end date. |