PUT api/Profile/Validate

The first method in the new profile enrollment process, check that all the signatures in the profile are consistent enough. Always make sure that the profile is valid before calling the 'Enroll' method. When not valid the 'ProfileValidation' result will sugest which index in the signatures array to replace with more consistent signature before re-checking the profile validation

Request Information

URI Parameters

None.

Body Parameters

The profile to validate

ProfileModel
NameDescriptionTypeAdditional information
Signatures

Array of H5 row format of the signatures

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "Signatures": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<ProfileModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WN.Concord.MOBioServer.WebAPI.Models">
  <Signatures xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Signatures>
</ProfileModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ProfileValidation results

JsonResultOfProfileValidation
NameDescriptionTypeAdditional information
Content

ProfileValidation

None.

SerializerSettings

JsonSerializerSettings

None.

Encoding

Encoding

None.

Request

HttpRequestMessage

None.

Response Formats

application/json, text/json

Sample:

Sample not available.