Applications

Update application profile

Changed on

Updates an existing application profile with new configuration (admin access required)

put/api/applications/application

Request

  • The document declares no server URL.
  • Auth
    socaAuth (a scheme the document does not define) and socaToken (a scheme the document does not define)

Headers

X-EDH-USERstring required

SOCA username for authentication (must be admin)

X-EDH-TOKENstring required

SOCA authentication token

Request body application/x-www-form-urlencoded

application_idstring required

ID of the application profile to update

profile_namestring

Updated name for the application profile

submit_job_formstring

Updated HTML form for job submission

submit_job_scriptstring

Updated job submission script template

submit_job_interpreterstring

Updated script interpreter

thumbnail_b64string base64

Updated base64 encoded thumbnail image

Example request

{
  "application_id": "1",
  "profile_name": "ANSYS Fluent 2024",
  "submit_job_form": "<form><input name='cores' type='number' /></form>",
  "submit_job_script": "#!/bin/bash module load ansys/2024 fluent -g",
  "submit_job_interpreter": "bash",
  "thumbnail_b64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg=="
}

Response

Application profile updated successfully

successboolean
messagestring

Example response

{
  "success": true,
  "message": "Application updated successfully"
}

Changes

    • info

      the endpoint scheme security socaAuth AND socaToken was added to the API

    • info

      the endpoint scheme security edhAuth AND edhToken was removed from the API

    • info

      removed the non-success response with the status

    • info

      the endpoint scheme security edhAuth AND edhToken was added to the API

    • info

      the endpoint scheme security socaAuth AND socaToken was removed from the API