Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

Add URL Attachment v1

POST
/jderest/file/addurl

Add a URL type media object for the given structure and key.

Request
Supported Media Types
application/json
Header Parameters
jde-AIS-Auth(optional): string
jde-AIS-Auth-Device(optional): string
Body (MediaObjectAddUrlRequest)
Request object for add URL media object service.
Type: object
Request object for add URL media object service.
deviceName(optional): string
environment(optional): string
formName: string
jasserver(optional): string
moKey: array
moStructure: string
password(optional): string
psToken(optional): string
role(optional): string
token(optional): string
urlText: string
username(optional): string
version: stringBack to Top
Response
Supported Media Types
application/json
200 Response
Successful Execution
Body (MediaObjectAddUrlResponse)
Type: object
Response object for Media Object add url service.
saveURL(optional): string
sequence(optional): integer(int32)
urlText(optional): string
400 Response
Bad Request - Invalid JSON Input
403 Response
Authorization Failure
415 Response
Invalid Content-Type Header - Must use application/json
444 Response
Invalid Token
Body (ServiceErrorResponse)
Type: object
Error Response
errorText(optional): string
exception(optional): string
message(optional): string
timeStamp(optional): string
type(optional): string
userDefinedErrorText(optional): string
500 Response
Server Failed to Process Request
Body (ServiceErrorResponse)
Type: object
Error Response
errorText(optional): string
exception(optional): string
message(optional): string
timeStamp(optional): string
type(optional): string
userDefinedErrorText(optional): stringBack to Top
Examples
Example Request

The following shows an example of a media object request to add a URL attachment.
The token value is from a prior call to the token request service to establish a
session.

curl -i -X POST -H "Content-Type:application/json"


http://ais_server_url/file/addurl -d
{
"token":
"044UQauaZB+nqcQZAxRWZwmfCBNpOYFdZJ+BbP5+CcNCFU=MDE5MDA4NDQ3MTQ2NTY1MTY4NzU5NDg1OE1
5RGV2aWNlMTQ4MDcwMTQ4MzM0NA=="
"moStructure": "ABGT",
"moKey": [
"7500"
],
"formName": "P01012_W01012B",
"version": "ZJDE0001",
"urlText": "http://www.testurl.com"
}

Example Response

The following example shows the contents of the response body.

{
"saveURL": "http://www.testurl.com",
"urlText": "http://www.testurl.com",
"sequence": 2
}

You might also like