Add URL Attachment v1

post

/jderest/file/addurl

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

Request

Supported Media Types
Header Parameters
Body ()
Request object for add URL media object service.
Root Schema : MediaObjectAddUrlRequest
Type: object
Request object for add URL media object service.
Show Source
  • An identifier for the device making the service call. If not provided, the requesting IP address is used.
  • Specify the environment to use for login. If not specified, the default environment configured for the AIS Server will be used.
  • The name of the form the media object is associated with (for example W01012A).
  • The HTML (JAS) Server to use for login. If not specified, the default HTML Server configured for the AIS Server will be used.
  • moKey
    An array of media object key values. You must pass the values in the same order that they appear in the data structure. The key values will be converted into the bar delimited key of the media object record stored in the F00165 table.
  • The media object data structure name, for example GT0801 or ABGT, which is a key to the F00165 table where media objects are stored.
  • The JD Edwards EnterpriseOne password, which is required if other authentication methods are not being used.
  • Used for logging in with psToken. Primarily used by the HTML Server to establish a session with the AIS Server.
  • The role to use for login. If not specified, the default role configured for the AIS Server will be used.
  • The AIS token, which is required if other authentication methods are not being used.
  • The URL (for example http://www.myurl.com).
  • JD Edwards EnterpriseOne username, which is required if other authentication methods are not being used.
  • The version of the application the media object is associated with (for example ZJDE0001).
Nested Schema : moKey
Type: array
An array of media object key values. You must pass the values in the same order that they appear in the data structure. The key values will be converted into the bar delimited key of the media object record stored in the F00165 table.
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful Execution
Body ()
Root Schema : MediaObjectListResponse
Type: object
MediaObjectListResponse is the output of the media object list operation.
Show Source
Nested Schema : mediaObjects
Type: array
The list of media object items.
Show Source
Nested Schema : MediaObjectListItem
Type: object
MediaObjectListItem is an individual media object within the response returned from the list operation.
Show Source
Nested Schema : moKey
Type: array
An array of media object key values. You must pass the values in the same order that they appear in the data structure. The key values will be converted into the bar delimited key of the media object record stored in the F00165 table.
Show Source

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 ()
Root Schema : ServiceErrorResponse
Type: object
Error Response
Show Source

500 Response

Server Failed to Process Request
Body ()
Root Schema : ServiceErrorResponse
Type: object
Error Response
Show Source
Back 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=MDE5MDA4NDQ3MTQ2NTY1MTY4NzU5NDg1OE15RGV2aWNlMTQ4MDcwMTQ4MzM0NA=="
    "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
}
        
Back to Top