.. _administrator_restfulsimplifiedassignmentgroup_details_create: ============================================================================= POST /administrator/restfulsimplifiedassignmentgroup/ ============================================================================= Create a assignment group. The underlying data model where the item is created is defined in :class:`devilry.apps.core.models.AssignmentGroup`. The :ref:`simplified` that the server forwards this request to is :meth:`devilry.apps.administrator.simplified.simplifiedassignmentgroup.SimplifiedAssignmentGroup.create`. ******** Request ******** Example ################ .. code-block:: javascript POST /administrator/restfulsimplifiedassignmentgroup/ { is_open: true, id: 15, parentnode: 15, name: "My example value" } Required request parameters ########################### The following request parameters are encoded as a JSON object and sent as the request body as shown in the example above. is_open -------------------------------------------------- Actual location of the field: :class:`devilry.apps.core.models.AssignmentGroup` About the field: If this is checked, the group can add deliveries. Type Boolean id -------------------------------------------------- Actual location of the field: :class:`devilry.apps.core.models.AssignmentGroup` About the field: Autogenerated identifier. Type Integer parentnode -------------------------------------------------- Actual location of the field: :class:`devilry.apps.core.models.Assignment` About the field: Autogenerated identifier. Type Integer name -------------------------------------------------- Actual location of the field: :class:`devilry.apps.core.models.AssignmentGroup` About the field: An optional name for the group. Typically used a project name on project assignments. Type String ************** Response ************** On success ########## Example ---------------- .. code-block:: javascript 201 CREATED { is_open: true, id: 15, parentnode: 15, name: "My example value", id: 15 } Success response details ------------------------ As long as the assignment group is created without an error, the response is *HTTP 201* with the requested data in the body. The result always contains the request data with the *id* field added, however some values may have been changed due to logic performed on the server before saving. On error ######## On errors, we respond with one of the :ref:`restful_api_error_statuscodes`.