DigiOffice API Services Services

<back to all web services

ImportData

Import entity data into DigiOffice (v1)

Requires Authentication
The following routes are available for this service:
PUT/api/importdata
ImportData Parameters:
NameParameterData TypeRequiredDescription
EntityTypebodystringYesEntityname in which the data will be imported
ErrorFieldbodystringNoReports errors with a reference to this field (for example ID)
ContinueOnErrorbodyboolNoShould import continue on errors? (Default true)
RowsbodyList<Row>YesRows to be imported
FixedValuesbodyList<FixedValue>NoAdditional values to be imported on every row
Row Parameters:
NameParameterData TypeRequiredDescription
FieldsformList<ImportField>No
ImportField Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ValueformstringNo
FixedValue Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ValueformstringNo
ImportResult Parameters:
NameParameterData TypeRequiredDescription
TotalRowsformintNo
TotalAddedformintNo
TotalUpdatedformintNo
SuccesfullRowsformintNo
ErrorRowsformintNo
ErrorsformList<string>No

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /api/importdata HTTP/1.1 
Host: test-do-services.klokgroep.nl 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	EntityType: String,
	ErrorField: String,
	ContinueOnError: False,
	Rows: 
	[
		{
			Fields: 
			[
				{
					Name: String,
					Value: String
				}
			]
		}
	],
	FixedValues: 
	[
		{
			Name: String,
			Value: String
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	TotalRows: 0,
	TotalAdded: 0,
	TotalUpdated: 0,
	SuccesfullRows: 0,
	ErrorRows: 0,
	Errors: 
	[
		String
	]
}