PUT | /customers/{customerId}/batchfiledefinitions/{id} | Updates an existing batch file definition for a given customer. Fails if this user does not have access to this customer or if the batch file definition doesn't exist. |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CustomerId | path | Guid | Yes | The Customer Id. |
Id | path | int | Yes | The Batch File Definition Id. |
BatchTypeId | body | int | Yes | The Batch Type Id. |
BatchFileTypeId | body | int | Yes | The Batch File Type Id. |
BatchFileLayoutTypeId | body | int | Yes | The Batch File Layout Type Id. |
Name | body | string | Yes | The name of the batch file definition. |
FileName | body | string | Yes | The file name of the batch file definition. |
Folder | body | string | Yes | The folder of the batch file definition. |
Delimiter | body | int | No | The delimiter used in the batch file definition. |
DateCreated | body | DateTime | No | The date/time the definition was created. |
CreatedById | body | Guid | No | The creator of the batch file definition. |
IsActive | body | bool | Yes | Whether the batch file definition is active or not. |
HotlistLineAppenderId | body | int | No | The hotlist line appender id. |
BatchFileDefinitionFields | body | List<CustomerBatchFileDefinitionField> | No | An array of objects representing the fields of the batch file definition. |
ScofflawImportProcessId | body | int | Yes | The Scofflaw Batch Process Type Id. |
BatchFileQueryFilter | body | CustomerBatchFileQueryFilter | No | An object containing batch file query filters. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | int | No | |
BatchFileDefinitionId | form | int | No | |
Name | form | string | No | |
Description | form | string | No | |
Length | form | int | No | |
Quoted | form | bool | No | |
FieldIndex | form | int | No | |
CreatedById | form | Guid | No | |
DateCreated | form | DateTime | No | |
BatchFileDefinitionFieldConverters | form | List<BatchFileDefinitionFieldConverter> | No | |
FieldValueLiteral | form | string | No | |
BatchFileActualColumnTypeId | form | int? | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | int | No | |
Name | form | string | No | |
ClassName | form | string | No | |
Description | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | int | No | |
BatchFileId | form | int | No | |
HasPayCreditCC | form | bool | No | |
HasPayCashCP | form | bool | No | |
HasPayDebitDC | form | bool | No | |
HasPayCheckingEC | form | bool | No | |
HasPayECash | form | bool | No | |
HasFineParking3 | form | bool | No | |
HasFinePropertyTax12 | form | bool | No | |
HasFineRedLight13 | form | bool | No | |
HasFineSpeeding23 | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /customers/{customerId}/batchfiledefinitions/{id} HTTP/1.1
Host: api.paylock.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"customerId":"00000000000000000000000000000000","id":0,"batchTypeId":0,"batchFileTypeId":0,"batchFileLayoutTypeId":0,"name":"String","fileName":"String","folder":"String","delimiter":0,"dateCreated":"\/Date(-62135596800000-0000)\/","createdById":"00000000000000000000000000000000","isActive":false,"hotlistLineAppenderId":0,"batchFileDefinitionFields":[{"id":0,"batchFileDefinitionId":0,"name":"String","description":"String","length":0,"quoted":false,"fieldIndex":0,"createdById":"00000000000000000000000000000000","dateCreated":"\/Date(-62135596800000-0000)\/","batchFileDefinitionFieldConverters":[{"id":0,"name":"String","className":"String","description":"String"}],"fieldValueLiteral":"String","batchFileActualColumnTypeId":0}],"scofflawImportProcessId":0,"batchFileQueryFilter":{"id":0,"batchFileId":0,"hasPayCreditCC":false,"hasPayCashCP":false,"hasPayDebitDC":false,"hasPayCheckingEC":false,"hasPayECash":false,"hasFineParking3":false,"hasFinePropertyTax12":false,"hasFineRedLight13":false,"hasFineSpeeding23":false}}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length 0