When updating an assignment, send then same XML as when creating an assignment, but also add the xml node <id>, containing the ID of the assignment that should be updated. The ID for an assignment can be found in the returned URL when successfully calling the CREATE web service (previously described). The ID is the last, numeric portion of that URL.
<?xml version=""1.0"" encoding=""UTF-8""?>
<text>We are looking for a C# developer</text>
The Brainville API will respond to the HTTP POST in the following manner:
If the post was successful, the response will be the URL to the posted assignment. For example: https://www.brainville.com/Market/RequisitionSearchResult/Details/6020
Bad XML – If the XML is malformed, a HTTP Status 400 (Bad Request) will be returned.
Missing/incorrect data – If the XML is correct, but the data inside it is wrong (for example, a required value is missing, out of range or of the wrong type), a message with HTTP Status 200 (OK) will be returned. The message will begin with “ERROR:”, then followed by a text describing the specific error.