Update Employee Portraits
Upload portraits for one or more employees. Per-employee validationErrors flag any individual failures.
Request
API key of the unit.
Array of UpdateEmployeePortrait records — one per employee to update.
Portrait payload for a single employee, used by wsdlUpdateEmployeePortraits.
Badge number of the employee whose portrait is being uploaded.
Base64-encoded image to use as the employee's portrait.
Returned in the response only. Array of error strings if the update failed for this employee; empty array on success.
curl -X POST 'https://api.quinyx.com/FlexForceWebServices.php' \
-H 'Content-Type: text/xml; charset=utf-8' \
-H 'SOAPAction: "uri:FlexForce/wsdlUpdateEmployeePortraits"' \
--data @- <<'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="https://api.quinyx.com/soap/FlexForce">
<soap:Body>
<tns:wsdlUpdateEmployeePortraits>
<apiKey xsi:type="xsd:string">string</apiKey>
<employeePortraits xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:UpdateEmployeePortrait[1]">
<item xsi:type="tns:UpdateEmployeePortrait">
<badgeNo xsi:type="xsd:string">string</badgeNo>
<portrait xsi:type="xsd:string">string</portrait>
<validationErrors xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[1]">
<item xsi:type="xsd:string">string</item>
</validationErrors>
</item>
</employeePortraits>
</tns:wsdlUpdateEmployeePortraits>
</soap:Body>
</soap:Envelope>
EOFResponse
Array of UpdateEmployeePortrait records reflecting the saved state.
Portrait payload for a single employee, used by wsdlUpdateEmployeePortraits.
Badge number of the employee whose portrait is being uploaded.
Base64-encoded image to use as the employee's portrait.
Returned in the response only. Array of error strings if the update failed for this employee; empty array on success.
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="https://api.quinyx.com/soap/FlexForce">
<soap:Body>
<tns:wsdlUpdateEmployeePortraitsResponse>
<return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:UpdateEmployeePortrait[1]">
<item xsi:type="tns:UpdateEmployeePortrait">
<badgeNo xsi:type="xsd:string">string</badgeNo>
<portrait xsi:type="xsd:string">string</portrait>
<validationErrors xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[1]">
<item xsi:type="xsd:string">string</item>
</validationErrors>
</item>
</return>
</tns:wsdlUpdateEmployeePortraitsResponse>
</soap:Body>
</soap:Envelope>