Resource |
Study.Model |
Method |
POST |
Purpose |
Predict the responses for multiple prospects for a study |
Client sends … |
Request | POST model-URI |
Header | Host: host |
Header | Date: date |
Header | Authorization: yosokumo user-identifier:request-digest |
Header | Content-Type: content-type |
Header (optional) | Content-Encoding: content-encoding |
Header (optional) | Content-Length: content-length |
Header (optional) | Content-MD5: content-digest |
Header (optional) | Accept: content-type(s) |
Header (optional) | Accept-Encoding: content-encoding(s) |
Entity | <block document> |
Server returns … |
Success (row block) | Code | 200 OK |
Header | Date: date |
Header | Content-Type: content-type |
Header (conditional) | Content-Encoding: content-encoding |
Header (conditional) | Content-Length: content-length |
Header | Content-MD5: content-digest |
Entity | <block document> |
Success (empty block) | Code | 204 No Content |
Header | Date: date |
• Authorization header malformed |
• Posted document not well-formed |
• Posted document length does not match Content-Length header value |
• Posted document digest does not match Content-MD5 header value |
• Posted document not an empty or row block |
|
Code |
400 Bad Request |
Authorization header missing | Code | 401 Unauthorized |
Header | WWW-Authenticate: yosokumo user:digest |
• Requesting user not recognized |
• Request digest incorrect |
• Requesting user lacks POST model permission for this study |
|
Code |
403 Forbidden |
Requested URI not recognized | Code | 404 Not Found |
• No supported data interchange format listed in Accept header |
• No supported encoding format listed in Accept-Encoding header |
|
Code |
406 Not Acceptable |
• Study referenced in block document conflicts with model-URI |
• Study in stopped state |
|
Code |
409 Conflict |
Block contains more than one million specimens, attributes or cells | Code | 413 Request Entity Too Large |
• Data interchange format of posted document not recognized |
• Encoding of posted document not recognized |
|
Code |
415 Unsupported Format |