Discussions
Trouble posting to multi instance panel source
Hi,
We are trying to post to a multi-instance panel source, however, we keep getting a 400 error. Please note that we are on iMIS version 20.2.65.9955. We are able to do GET calls on this panel source fine, but are unable to do any POST calls. Can you please assist?
The body we are posting is below.
{
"$type":"Asi.Soa.Core.DataContracts.GenericEntityData, Asi.Contracts",
"EntityTypeName":"AO_SecondaryPatrol",
"PrimaryParentEntityTypeName":"Party",
"Identity":{
"$type":"Asi.Soa.Core.DataContracts.IdentityData, Asi.Contracts",
"EntityTypeName":"AO_SecondaryPatrol",
"IdentityElements":{
"$type":"System.Collections.ObjectModel.Collection1[[System.String, mscorlib]], mscorlib", "$values":[ "197018" ] } }, "PrimaryParentIdentity":{ "$type":"Asi.Soa.Core.DataContracts.IdentityData, Asi.Contracts", "EntityTypeName":"Party", "IdentityElements":{ "$type":"System.Collections.ObjectModel.Collection
1[[System.String, mscorlib]], mscorlib",
"$values":[
"197018"
]
}
},
"Properties": {
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyDataCollection, Asi.Contracts",
"$values": [
{
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
"Name": "PartyId",
"Value": "197018"
},
{
"$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
"Name": "PatrollerMemberId",
"Value": "258317"
}
]
}
}
)
}
Kind regards,
Julie