Skip to main content

API: Error Creating User Association

Error: 'evidenceType' and 'object' must be specified when creating a binding.

Written by Petr Pech

Request:

{
"winstrom": {
"@version": "1.0",
"faktura-vydana": [
{
"id": "ext:RNT:2429273",
"uzivatelske-vazby": [
{
"vazbaTyp": "code:ODPOCET",
"evidenceType": "faktura-vydana",
"object": "ext:RNT:12400246"
}
]
}
]
}
}

Response:

{
"winstrom": {
"@version": "1.0",
"success": "false",
"stats": {
"created": "0",
"updated": "0",
"deleted": "0",
"skipped": "0",
"failed": "1"
},
"results": [
{
"request-id": "ext:RNT:2429273",
"errors": [
{
"message": "Při vytváření vazby je nutno zadat 'evidenceType' a 'object'. [ext:RNT:2429273]",
"for": "uzivatelske-vazby",
"path": "faktura-vydana[id=ext:RNT:2429273].uzivatelske-vazby",
"messageCode": "vazbyChybiElementy"
}
]
}
]
}
}

If you are receiving this error even though evidenceType is filled in, the objects you are trying to link do not exist (in the example above, issued invoices).

Did this answer your question?