Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-44137

No group update webservice (core_groups_update_group)

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a group with a name that is not 'group1'
      2. Execute the WS request, replacing the wstoken, id (id of the group) and the URL of your moodle instance

        curl 'http://[YOUR_MOODLE_URL]/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=core_group_update_groups&groups[0][id]=GROUP_ID_HERE&groups[0][name]=group2&wstoken=WEB_SERVICE_TOKEN_HERE'

        It won't return anything unless you get an error

      1.  
        Check that the name of the group has changed to 'group2'
      Show
      Create a group with a name that is not 'group1' Execute the WS request, replacing the wstoken, id (id of the group) and the URL of your moodle instance curl 'http://[YOUR_MOODLE_URL]/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=core_group_update_groups&groups [0] [id] =GROUP_ID_HERE&groups [0] [name] =group2&wstoken=WEB_SERVICE_TOKEN_HERE' It won't return anything unless you get an error   Check that the name of the group has changed to 'group2'
    • Workaround:
      Hide

      The edit button is below the issue title, above the "details" section.

      Show
      The edit button is below the issue title, above the "details" section.
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_34_STABLE, MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull Master Branch:
      MDL-44137_add_update-groups_webservice

      Description

      Hi,

      for some reason there is no service for updating an exsting group.

      If you'd like, I can implement it and send a pull request.

        Attachments

          Activity

            People

            Assignee:
            robynstar Robynstar
            Reporter:
            alendit Dimitri Vorona
            Peer reviewer:
            Daniel Neis Araujo
            Integrator:
            Damyon Wiese
            Tester:
            Damyon Wiese
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Dec/18