Add Request
AddRequest service URL:
http://HOSTNAME/portal-service/request/add?aid=${aid}
where ${aid} is the authorization id for the user logged in. The {aid} is provided by the Authentication service.
For example:
http://HOSTNAME/dws/item/available?aid=YkbOGfBGv6hKLefABkWJP2yYlI8
HTTP method: POST
HTTP Header Content-Type: application/json
HTTP Header User-Agent: ${user-agent}
Standard http clients (browser, http client libraries etc.) will automatically include it's User-Agent value. See Authentication for more information.
AddRequest request body: JSON elements
Request template and examples
The following templates are examples that can be downloaded:
AddRequest response: JSON elements
The response from this service is a JSON string.
- RequestNumber: The request number assigned by Relais.
- ConfirmMessage: As configured for your library.
The following is a sample response for an successful request:
{
"RequestNumber": "REG-10000079",
"ConfirmMessage": "Your request has been submitted (Request Number: REG-10000079)"
}
Errors
The following is a sample response for an unsuccessful request:
{
"Problem":{
"ErrorCode":"PUBAR001",
"ErrorMessage":"Missing parameter :Title is required"
}
}
This service may return the following error codes and messages:
Code | Type | Messages |
---|---|---|
PUBSC001 |
Público | Invalid request |
PUBSC007 | Público | Invalid JSON request |
PUBSC005 | Público | Invalid aid |
PUBSC008 | Público | User group not authorized to access the service |
PUBAR001, PUBAZ001 |
Público |
Missing parameter
|
PUBAR002 | Público | This is a duplicate of a recent request. This request will not be submitted |
PUBAR003 | Público | Invalid parameter |
PUBAR004 | Público | SMTP timeout error |
PRIAR001 | Público | Internal add request error |
PRIAZ001 | Private | Internal authorization error |